This path uses explicit
client-signed execution. Your wallet signs the x402 payment and the blockchain transaction, while Brickken broadcasts the signed operation. It gives you ownership of the agent identity and token, but requires both Base Sepolia ETH for gas and Circle USDC for x402 payments.Outcome
At the end, your terminal will show:- a confirmed ERC-8004 agent registration and
agentUuid; - the stored agent profile read back through the Agentic API;
- a confirmed agent-owned ERC-20 deployment and
tokenAddress; - x402 settlement metadata for the executed operations.
Estimated time
Allow 15–20 minutes for setup, faucet funding, two x402 payments, and confirmation on Base Sepolia.Prerequisites
1
Install the pinned CLI
Use the version validated for this programme:
2
Create a dedicated Base Sepolia wallet
Set
BRICKKEN_PRIVATE_KEY and the corresponding address in WALLET. Use a testnet-only key and never commit the .env file.3
Fund x402 payments
Get Circle USDC on Base Sepolia from the Circle faucet. The payment asset, amount, recipient, and timeout are quoted live by x402; do not hardcode them.
4
Fund transaction gas
Get Base Sepolia ETH from one of the sources in the official Base faucet list. Client-signed mode uses your wallet to pay gas.
- Image:
https://docs.brickken.com/images/build-programme/hello-world-agent.svg - Service endpoint:
https://docs.brickken.com/downloads/build-programme/agent-card.json
Setup
Clone or download the example directory, then run:Run
Execute the pinned CLI workflow:What the script does
brickken agent registerprepares and executes an ERC-8004 registration on Base Sepolia with--execution-mode client-signed.- The script captures
agentUuidand the blockchain transaction hash, then polls the Base Sepolia RPC until the receipt succeeds. brickken agent inforeads the stored profile. Without an API key, this getter uses x402 with the configured wallet.brickken create-tokendeploys an ERC-20 with the same wallet passed as--signer-addressand--agent-wallet.- The CLI waits for the deployment receipt and exposes
tokenAddress; the script checks the x402 settlement and address format.
Expected output
The script writes JSON files underout/ and prints a summary similar to:
Verification
Inspect the sanitized fields inout/register-output.json, out/agent-info-output.json, and out/create-token-output.json:
prepared.info.agentUuidexists;- the registration receipt has status
0x1; - the registration send includes successful x402 settlement metadata;
- the profile read returns the same agent reference;
sent.successistruefor token deployment;tokenAddressis a 40-hex-character address;tokenReceipt.statusis0x1andtokenTxHashidentifies the deployment receipt;sent._x402.settlement.successistrue.
Troubleshooting
Security
- Use a disposable Base Sepolia wallet and keep the private key in an environment variable or secret manager.
- Review the live x402 quote before approving each payment; the CLI reads the amount, asset, recipient, and timeout from the challenge.
- Check chain, signer, agent wallet, token symbol, and recipient before executing a write.
- Do not commit
.envor the generatedout/JSON files.
Next challenge ideas
Next, addagent set-uri and agent set-metadata, then exercise the token lifecycle with mint, approve, and transfer. For compliance-gated delegation, continue to the RAMS mandate workflow. MCP users can reach the same Agentic API through the hosted MCP server.
Agent & token workflow
See the longer CLI lifecycle walkthrough.
API Hello World
Build the direct API path for tokenized assets and STOs.