Skip to main content

Installation

Current published release: v0.1.10 (verified July 12, 2026).
The unpinned go get github.com/mishrasanjeev/grantex-go command follows Go’s module-version resolution. Keep the exact version above in reproducible builds. See Release Status before upgrading.

Requirements

  • Go 1.26.1+, matching this module’s go.mod directive

Configuration

Known v0.1.10 limitations

  • Registration returns agentId, while Agent.ID expects id; derive the ID from the returned DID.
  • Registration sends optional zero values; updates cannot set status or send an explicit empty scopes array. Provide registration fields explicitly and use REST for those updates.
  • The typed audit payload omits required fields; use the REST or CLI audit-write workaround.
  • AuditEntry omits DeveloperID, and the SDK advertises Since, Until, Page, and PageSize audit filters that the API ignores.
  • Agent and audit list structs expose Total, Page, and PageSize, but the API returns only agents or entries; use the slice length for this release.
  • List helpers do not URL-encode reserved characters in filter values; avoid them or issue a REST request with a net/url-encoded query.
Repository source on main corrects all documented v0.1.10 Agent/Audit contract gaps, removes unsupported audit filters, and URL-encodes query values, with API-shaped regression coverage. No corrected module tag has been published. The pinned v0.1.10 install and workarounds remain the supported public-release guidance.

Quick Start

In v0.1.10, the API’s agentId response does not populate Agent.ID because that SDK field expects id. This example derives the ID from the returned did:grantex:<agentId> value. Remove the workaround only after upgrading to a release that corrects the response mapping.

Available Resources

Standalone Functions

Error Handling

Last modified on July 14, 2026