Guides
Overview
Quick Start
Option 1: Using the Unified SDK
import { createRegentAgent } from 'regent-sdk';
const agent = await createRegentAgent({
name: 'My Agent',
description: 'An intelligent assistant',
version: '1.0.0',
// ERC-8004 Identity configuration
identity: {
chainId: 84532, // Base Sepolia
rpcUrl: process.env.RPC_URL!,
ipfs: 'pinata',
ipfsConfig: {
pinataJwt: process.env.PINATA_JWT,
},
},
// Wallet for signing transactions
wallet: {
privateKey: process.env.PRIVATE_KEY,
},
// Discovery configuration
discovery: {
mcpEndpoint: 'https://myagent.com/mcp',
a2aEndpoint: 'https://myagent.com/.well-known/agent-card.json',
oasfSkills: ['code_generation', 'data_analysis'],
oasfDomains: ['software_development'],
},
// Trust model
trust: {
reputation: true,
cryptoEconomic: false,
teeAttestation: false,
},
});
// Register on-chain
const { agentId } = await agent.registerOnchain();
console.log('Registered agent:', agentId);Option 2: Using the ERC-8004 SDK Directly
Supported Chains
Chain
Chain ID
Status
Agent Registration
Basic Registration
With HTTP URI (No IPFS)
Registration Fields
Agent Discovery
Search by Capabilities
Search by Reputation
Pagination
Load Full Agent Data
Reputation & Feedback
Submitting Feedback
Querying Feedback
Agent Response to Feedback
IPFS Configuration
Pinata (Recommended)
Local IPFS Node
Filecoin Pin
Multi-Chain Support
Query Agents Across Chains
Agent Transfer
Environment Variables
Environment-Based Setup
Error Handling
Best Practices
Related Resources
Last updated