Installation
Published release:github.com/mishrasanjeev/grantex-go@v0.3.0. The tag,
public Go proxy, clean module install, standard tests, and race tests were
verified before this page was updated.
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.moddirective
Configuration
Version
v0.3.0 adds typed EVM payment responses and authenticated principal/agent
reservation reconciliation for Base USDC custody.
It retains bounded refresh lost-response recovery from v0.2.1 and the corrected
Agent/Audit contracts and ES256 DPoP wallet clients from v0.2.0. It does not add
an automatic x402 HTTP payment-and-retry wrapper; applications must implement
their merchant HTTP flow.
Quick Start
Available Resources
Use
NewPrincipalPrepaidWalletClient for human wallet, assignment, reload,
policy, approval, activity, and stop operations. Use
NewAgentPrepaidWalletClient with GenerateDPoPKey for assigned-wallet listing,
payment authorization, and reload requests. Both constructors reject remote
plain-HTTP wallet endpoints; check their returned errors. See Agent Wallet
Governance.