Set Agent Wallet
Prepare an ERC-8004 operational wallet update through x402.
agentSetWallet.
Authentication
Omitx-api-key. If the API returns 402 Payment Required, sign the x402 payment locally and retry with X-Payment.
Key Fields
| Parameter | Required | Description |
|---|---|---|
chainId | Yes | Target chain ID. Decimal and hex values are accepted. |
signerAddress | Yes | Wallet that signs the prepared transaction. |
newWallet | Yes | New operational wallet address. |
deadline | Yes | Signature deadline. |
signature | Yes | Authorization signature for the wallet update. |
agentUuid or agentId | Usually | Agent identifier from registration or the on-chain agent ID. |
Response
Returns prepared unsigned transactions andtxId. Sign the transaction locally, then submit it with POST /send-transactions.Authorizations
Base64-encoded x402 payment payload. Supported for x402-eligible agentic methods on /x402/... facades, /prepare-transactions, and eligible /send-transactions retries.
Body
Target operation chain ID. Use 8453 on production Base or 11155111 on sandbox Sepolia.
"8453"
Wallet that signs the prepared blockchain transaction.
^0x[a-fA-F0-9]{40}$New operational agent wallet address.
^0x[a-fA-F0-9]{40}$Signature deadline.
Agent wallet authorization signature.
Optional explicit gas limit.
Optional explicit nonce when managing nonces manually.
Optional private RPC URL override.
Optional owner attribution email.
Alias for ownerEmail where supported.
Stored tokenized agent UUID returned by agentRegister.
On-chain ERC-8004 agent ID.