Register SAP Agent With Local Signer
sap_payments_register_agentRegister your local SAP agent on-chain using your own wallet signer. Pays a 0.1 SOL protocol fee and verifies the agent account exists.
Instructions
Canonical local non-custodial SAP registry write for hosted and local users. Use this after hosted sap_register_agent returns hosted_local_signer_required, or directly instead of raw sap_register_agent. It registers the active local SAP MCP profile wallet as an on-chain SAP agent with the local signer; OOBE never receives keypair bytes. This tool does not pay a hosted x402 fee because it runs locally through sap_payments. After confirmation it enforces the source-level expected 0.1 SOL SAP protocol registration fee against the protocol treasury. success is true only when the agent account exists and the protocol fee invariant is verified. Requires confirm: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Required public display name for the SAP agent. Keep it stable enough for explorers and humans. | |
| agentId | No | Optional stable lowercase agent id, for example solking. This is separate from the on-chain agent PDA. | |
| confirm | No | Must be true. Confirms the user wants the local signer to submit this SAP registry transaction. | |
| pricing | No | Optional pricing tiers advertised by the agent. Use tokenType usdc + settlementMode x402 for pay.sh/x402 agent commerce. | |
| agentUri | No | Optional public HTTPS/IPFS/Arweave/Kommodo URI for the agent profile metadata or profile page. Never use local desktop file paths. | |
| protocols | No | Required protocol tags the agent supports, for example sap, mcp, jupiter, pyth, metaplex, sns, x402, payments. | |
| description | No | Required public description of what the agent does, which protocols it can use, and its safety/trust boundaries. | |
| metadataUri | No | Alias for agentUri. Prefer a public JSON metadata document containing name, description, image, external_url, attributes, sap, metaplex, sns, and x402 fields. | |
| capabilities | No | Required capability list. Prefer object form for production; strings are accepted as shorthand. | |
| x402Endpoint | No | Optional public x402 discovery/payment endpoint, usually https://host/.well-known/x402 for external agent services. | |
| confirmationTimeoutMs | No | Optional local confirmation wait in milliseconds. Defaults to 90000 so the tool can distinguish confirmed registration from an expired/not-landed transaction. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes | Agent registration fields submitted on-chain. | |
| audit | Yes | Agent-readable proof that the write was local, non-custodial, and did not use hosted x402. | |
| profile | No | Active local SAP MCP profile used for registration when available. | |
| success | Yes | Whether the full SAP registration lifecycle completed: agent account confirmed and protocol fee invariant verified. | |
| signature | Yes | Solana transaction signature returned by the SAP SDK. | |
| protocolFee | Yes | Verification of the SAP protocol registration fee credited to the protocol treasury in the landed transaction. | |
| agentRegistered | Yes | Whether the SAP agent account was found on-chain, even if protocolComplete is false. | |
| signerPublicKey | Yes | Public key of the local SAP MCP signer that registered the agent. | |
| protocolComplete | Yes | True only when the agent account is confirmed and the expected protocol fee invariant is verified from transaction metadata. | |
| confirmationStatus | Yes | Final local confirmation result: confirmed, finalized, processed, expired, missing, or failed. |