Skip to main content

codespar mandate

Create and manage consumer mandates (the agent's allowance / wallet)

1 min read
View MarkdownEdit on GitHub

codespar mandate

Create and manage consumer mandates (the agent's allowance / wallet)

2 comandos. Esta página é gerada da árvore de --help da CLI publicada, então ela descreve o que você instala, não o que está em main.

codespar mandate create

Create a consumer mandate via the directed-pay

codespar mandate create [options]
opçãoo que faz
-c, --consumer <id>Consumer id (its derived wallet funds usdc-onchain
--agent <id>Agent id the mandate authorizes
--purpose <text>Human purpose, signed into the mandate
-p, --payee <list>Allowlisted payee(s): x402 URL / EVM address / Pix
--cap <minor>Total cap in minor units (legacy single-currency;
--per-tx-cap <minor>Per-transaction cap in minor units (legacy
--slot <spec>Wallet slot CURRENCY:RAIL:CAP:PER_TX_CAP
--currency <code>Mandate currency for the legacy single-currency path
--rail <rail>Funding rail (usdc-onchain, pix-consent, card-token,
--ttl <seconds>Mandate lifetime in seconds (default: "86400")
--pin-kind <kind>Allowlist entry kind: merchant-id, pix-key, mcc
--provider-token <token>Rail provider token (defaults to a placeholder for

codespar mandate verify

Verify a V3 mandate presentation token offline

codespar mandate verify [options] <token>
opçãoo que faz
--agent-pubkey <hex>Raw 32-byte Ed25519 agent public key (hex). Forces
--issuer-pubkey <hex>Raw 32-byte Ed25519 issuer public key (hex). Forces
--issuer-did <did>Issuer DID for network mode (default: did:web derived
codespar mandate | CodeSpar