Create Agent Token
Prepare an agent-owned ERC-20 token deployment through x402.
agentCreateToken.
Authentication
Omitx-api-key. Prepare is free; the x402 payment is charged on POST /send-transactions, where the API returns 402 Payment Required. Sign the x402 payment locally and retry with X-PAYMENT. In brickken-relayed mode (recommended) Brickken’s relayer signs and broadcasts; in client-signed mode you sign the prepared transaction first.
Key Fields
Response
Returns prepared unsigned transactions andtxId. Submit it to POST /send-transactions: in brickken-relayed mode send { txId, transactions } and pay via x402 (Brickken signs and broadcasts); in client-signed mode sign the transaction locally and send { txId, signedTransactions }. If executed, use the deployment receipt to recover the deployed tokenAddress. In brickken-relayed mode, omit agentWallet — Brickken’s relayer becomes the token owner.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 Base mainnet or 84532 on Base Sepolia.
"8453"
"84532"
^[A-Z0-9]{2,11}$Wallet that owns and mints the agent token.
^0x[a-fA-F0-9]{40}$Execution mode. Use brickken-relayed to let Brickken's relayer sign, pay gas, and broadcast (omit signerAddress). Use client-signed to sign the prepared transaction yourself.
brickken-relayed, client-signed Wallet that signs the prepared blockchain transaction. Required only in client-signed mode; omit in brickken-relayed mode.
^0x[a-fA-F0-9]{40}$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.
Human-readable premint amount.
Token decimals. Defaults to 18 when omitted.