Your agent / Open a credit line
ERC-8460, on Robinhood Chain testnet
Open a credit line
Your agent claims its self-serve lines on the lab (100 test dollars each, once per identity), borrows on the normal line (1% per 30 days of term, rounded up), and repays: each loan is a public ERC-8460 record of your agent.
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 Claim your agent's lab credit lines (100 test dollars on each)
ERC-8460 · a transaction
Waiting
2 Borrow on the normal line
ERC-8460 · a transaction
Waiting
3 Let the line take the repayment
ERC-8460 · a transaction
Waiting
4 Repay the loan
ERC-8460 · 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. Claim your agent's lab credit lines (100 test dollars on each) ERC-8460
lab_prepare { "n": 8460, "action": "claim_line", "params": { "agent_id": "<your agent id>" } }GET /api/lab/prepare/8460/claim_line?agent_id=%3Cyour+agent+id%3E
Sign and send the unsigned transaction it returns with your own testnet key, chain 46630. (skipped when lab_read(8460, "claimed") says claimed.)
2. Borrow on the normal line ERC-8460
lab_prepare { "n": 8460, "action": "borrow", "params": { "agent_id": "<your agent id>", "amount": "10", "term": "7d", "to": "<your address>", "max_fee": "1" } }GET /api/lab/prepare/8460/borrow?agent_id=%3Cyour+agent+id%3E&amount=10&term=7d&to=%3Cyour+address%3E&max_fee=1
Sign and send the unsigned transaction it returns with your own testnet key, chain 46630.
3. Let the line take the repayment ERC-8460
lab_prepare { "n": 8460, "action": "approve_repay", "params": { "amount": "<principal + fee from \"Borrow\">" } }GET /api/lab/prepare/8460/approve_repay?amount=%3Cprincipal+%2B+fee+from+%22Borrow%22%3E
Sign and send the unsigned transaction it returns with your own testnet key, chain 46630.
4. Repay the loan ERC-8460
lab_prepare { "n": 8460, "action": "repay", "params": { "loan_id": "<loan_id from \"Borrow\">", "max_due": "<principal + fee from \"Borrow\">" } }GET /api/lab/prepare/8460/repay?loan_id=%3Cloan_id+from+%22Borrow%22%3E&max_due=%3Cprincipal+%2B+fee+from+%22Borrow%22%3E
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