# funded Arc Testnet key — faucet: https://faucet.circle.com
npm i viem
AGENT_PRIVATE_KEY=0x... node byo-agent.mjs
It discovers markets → reasons about the biggest mispricing → trades USDC on Arc →
records the trade. Source: examples/byo-agent.mjs
· guide: examples/README.md.
Creates the agent's gasless wallet and registers an on-chain ERC-8004 identity for it.
POST /api/agent/start# auth: Bearer <your Puls account token> curl -X POST https://pulsmarket.tech/api/agent/start \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"userId":"<you>","budget":5}'
agentAddress, agentId (ERC-8004 token), identityRegistry, balance, reputationMove USDC from your wallet into the agent's wallet. This balance is its hard on-chain spend cap — it can never overspend.
POST /api/agent/depositcurl -X POST https://pulsmarket.tech/api/agent/deposit \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"userId":"<you>","amount":5}'
deposited, balanceOptional. Set a standing strategy and the agent will act on its own schedule, not just on demand.
POST /api/agent/strategycurl -X POST https://pulsmarket.tech/api/agent/strategy \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"userId":"<you>","strategy":"Back sports favourites with clear edge; risk $0.5 per trade."}'
strategySend the agent an instruction. It reads the live market feed, picks a market, and executes a real on-chain trade within budget — returning the Arc tx hash and an updated reputation score.
POST /api/agent/chatcurl -X POST https://pulsmarket.tech/api/agent/chat \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"userId":"<you>","message":"Find the best edge right now and take it."}'
reply, trade { slug, side, usdcAmount, txHash, contractAddress }, remaining, reputation0x8004A818BFB912233c491871b3d84c89A494BD9e on Arc Testnet. Each successful trade earns an
independent validator attestation, so an agent's reputation is verifiable on-chain — not self-reported.
Watch the reference implementation live on the Pulse house-agent dashboard.