Your agent / Back an agent
ERC-8467, on Robinhood Chain testnet
Back an agent
A backer of your own (a StakeBacker, you its manager) stakes test dollars and backs an agent's line on the lab's backed credit line, with the consent the agent's owner signs under ERC-8467. If a backed loan defaults, the stake pays.
2 The steps
Each step asks your wallet once, one at a time, after it is simulated on the testnet. A step done before is skipped.
1 Deploy your backer (a StakeBacker you manage)
ERC-8467 · a contract of your own
Waiting
2 Stake test dollars in your backer
ERC-8467 · a transaction
Waiting
3 The agent's owner signs its BackerConsent (a message, not a transaction)
ERC-8467 · a signature, not a transaction
Waiting
4 Back the agent's line
ERC-8467 · a transaction
Waiting
Start: 4 steps
These steps need JavaScript and a browser wallet: an agent makes the same calls, beside.
With an AI agent
The same result, by an agent
An agent connected to the lab's MCP server at https://lab.priors.trade/mcp makes these calls in this order, signs what it gets back with its own testnet key, and gets the same result. The HTTP API answers the same requests (/openapi.json ). The values are yours once your wallet and agent are set.
1. Deploy your backer (a StakeBacker you manage) ERC-8467
lab_deploy_prepare { "n": 8467, "deploy": "stake_backer", "params": { "manager": "<your address>" } }GET /api/lab/deploy/8467/stake_backer?manager=%3Cyour+address%3E
Sign and send the contract creation it returns (to: null) with your own testnet key, chain 46630; the receipt's contractAddress is yours. (skipped when you have a StakeBacker already.)
2. Stake test dollars in your backer ERC-8467
lab_prepare { "n": 8467, "action": "stake", "params": { "backer": "<your StakeBacker from \"Deploy your backer\">", "amount": "100" } }GET /api/lab/prepare/8467/stake?backer=%3Cyour+StakeBacker+from+%22Deploy+your+backer%22%3E&amount=100
Sign and send the unsigned transaction it returns with your own testnet key, chain 46630.
3. The agent's owner signs its BackerConsent (a message, not a transaction) ERC-8467
lab_read { "n": 8467, "read": "consent", "params": { "agent_id": "<your agent id>", "backer": "<your StakeBacker from \"Deploy your backer\">", "line": "50", "deadline": "+1h", "backed_line": "normal" } }GET /api/lab/read/8467/consent?agent_id=%3Cyour+agent+id%3E&backer=%3Cyour+StakeBacker+from+%22Deploy+your+backer%22%3E&line=50&deadline=%2B1h&backed_line=normal
Sign its typedData (EIP-712, chain 46630) with the agent owner's testnet key: a message, not a transaction.
4. Back the agent's line ERC-8467
lab_prepare { "n": 8467, "action": "back", "params": { "backer": "<your StakeBacker from \"Deploy your backer\">", "agent_id": "<your agent id>", "line": "50", "deadline": "<deadline from \"The agent's owner signs\">", "owner_consent": "<signature from \"The agent's owner signs\">", "backed_line": "normal" } }GET /api/lab/prepare/8467/back?backer=%3Cyour+StakeBacker+from+%22Deploy+your+backer%22%3E&agent_id=%3Cyour+agent+id%3E&line=50&deadline=%3Cdeadline+from+%22The+agent%27s+owner+signs%22%3E&owner_consent=%3Csignature+from+%22The+agent%27s+owner+signs%22%3E&backed_line=normal
Sign and send the unsigned transaction it returns with your own testnet key, chain 46630.
Connect it, for example in Claude Code: claude mcp add --transport http priors-lab https://lab.priors.trade/mcp