Loading...
Loading...
Register and manage AI agent identities on Avalanche C-Chain using ERC-8004 (Trustless Agents). Use this skill when the user wants to register an AI agent on-chain, give or read reputation feedback, request validation, or interact with ERC-8004 identity/reputation/validation registries on Avalanche mainnet or Fuji testnet.
npx skill4agent add colombia-blockchain/agent-skills erc8004-avalanche| Chain | Identity Registry | Reputation Registry |
|---|---|---|
| Avalanche Mainnet (43114) | | |
| Avalanche Fuji (43113) | | |
# Set environment variables
export AVALANCHE_RPC_URL="https://api.avax.network/ext/bc/C/rpc"
export PRIVATE_KEY="your-private-key"
# Register with a URI pointing to your agent's registration file
./scripts/register.sh "https://myagent.xyz/agent.json"
# Or register with IPFS (requires PINATA_JWT)
export PINATA_JWT="your-pinata-jwt"
./scripts/register.sh "ipfs"# Check if an agent is registered and get its info
./scripts/check-agent.sh <agent-id># Give reputation feedback to an agent
./scripts/give-feedback.sh <agent-id> <value> <tag1> <tag2>assets/templates/registration.json{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "My Avalanche Agent",
"description": "An AI agent operating on Avalanche",
"image": "https://example.com/avatar.png",
"services": [
{ "name": "web", "endpoint": "https://myagent.xyz/" },
{ "name": "A2A", "endpoint": "https://myagent.xyz/.well-known/agent-card.json", "version": "0.3.0" },
{ "name": "MCP", "endpoint": "https://mcp.myagent.xyz/", "version": "2025-06-18" }
],
"x402Support": false,
"active": true,
"registrations": [
{
"agentId": 1,
"agentRegistry": "eip155:43114:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432"
}
],
"supportedTrust": ["reputation"]
}agentIdeip155:43114:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432agentIdstarredreachableuptime| Variable | Description | Required |
|---|---|---|
| Avalanche C-Chain RPC endpoint | Yes (defaults to public RPC) |
| Wallet private key for signing transactions | Yes |
| Pinata API JWT for IPFS uploads | No (only for IPFS registration) |
| Agent display name | No |
| Agent description | No |
| Avatar URL | No |
| Snowtrace API key for verification | No |
| Parameter | Mainnet | Fuji Testnet |
|---|---|---|
| Chain ID | 43114 | 43113 |
| RPC URL | | |
| Explorer | https://snowtrace.io | https://testnet.snowtrace.io |
| Currency | AVAX | AVAX (test) |
| Faucet | - | https://faucet.avax.network |
register(agentURI)# Register an agent with a URI
cast send 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 \
"register(string)" "https://myagent.xyz/agent.json" \
--rpc-url https://api.avax.network/ext/bc/C/rpc \
--private-key $PRIVATE_KEY
# Read agent URI
cast call 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 \
"tokenURI(uint256)" 1 \
--rpc-url https://api.avax.network/ext/bc/C/rpc
# Give feedback (value=85, decimals=0, tag1="starred")
cast send 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 \
"giveFeedback(uint256,int128,uint8,string,string,string,string,bytes32)" \
1 85 0 "starred" "" "" "" 0x0000000000000000000000000000000000000000000000000000000000000000 \
--rpc-url https://api.avax.network/ext/bc/C/rpc \
--private-key $PRIVATE_KEY
# Get reputation summary
cast call 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 \
"getSummary(uint256,address[],string,string)" \
1 "[0xREVIEWER_ADDRESS]" "starred" "" \
--rpc-url https://api.avax.network/ext/bc/C/rpcreferences/api-reference.md