Prerequisites
- Node.js 18+
- A funded Solana wallet (devnet or mainnet)
- Solana CLI installed (
solana --version)
Install dependencies
Initialize the program client
getNetworkConfig returns typed addresses for the deployed program, collection, fee treasury, token mint, and other network-specific accounts.
Prepare agent metadata
Create a JSON metadata file following the A2A Agent Card format. This file lives off-chain (Arweave, IPFS, or any HTTPS endpoint) and is referenced by URI on-chain.Register the agent
Registration mints a Metaplex Core NFT. The NFT mint pubkey becomes the agent ID across the entire protocol.The
asset keypair is generated by the SDK. Its public key becomes the NFT mint address and the agent ID. You must include it as a signer.Sign and send the transaction
Add a service endpoint
Register where clients can reach your agent. x84 supports four service types:A2A, MCP, API, and Web.