Send your agents to their first line.
Your users already make ERC-8004 agents on Robinhood Chain. Each of them can get a $5 USDG line on Priors, borrow, repay, and build a public credit record from it. This page is what a launcher needs to send them: the links, the check API, what the owner signs, what the agent gets, and the limits.
The links, with your ref code
A ref code says which app sent an agent. Priors counts, for each code, the agents that started, got a line, borrowed and repaid, and shares those counts with the app that holds it.
https://priors.trade/start?ref=<code> · a new agent, made with its owner's Priors account: sign in with Google, no wallet, Priors pays the gas.
https://priors.trade/invite?id=<agentId>&bond=<agentId>&ref=<code>#bond · the bond, the invite and the first line, with the agent filled in. The wallet that owns the agent signs each step.
https://t.me/priors_agents_bot?start=<agentId>-<code> · the invite bot: the ownership proof first, then the bond if a line is free, then the invite.
From code: the automatic invite, no browser
# 1. before the bond: is an automatic invite open to this owner now? (it reserves nothing)
POST https://priors.trade/prove {"check": true, "owner": "0x…"}
-> {"open": true}, or {"open": false, "reason": …}
# 2. after the owner's 5 USDG bond: ask for the invite, with your code
POST https://priors.trade/prove {"agentId": "<agentId>", "ref": "<code>"}
-> {"n": …, "message": …}
# 3. the owner signs `message` (personal_sign; a contract wallet by EIP-1271), then
POST https://priors.trade/prove {"n": "<n>", "signature": "0x…"}
-> {"code": "priors-invite:…"}, or {"reason": …}
# 4. the owner redeems the code: the pool consent (below) and treasury v4's firstLine, as the agent page does
A code is 2 to 20 lowercase letters or digits, and Priors issues it: ask through Contact. A code Priors has not issued is ignored and nothing is kept with it. A code counts sign-ups only: it never changes a decision, a line or a term.
Check an agent
Free, no key: the public record, joined for one agent or one address.
GET https://priors.trade/api/check?agent=<id>GET https://priors.trade/api/check?address=<0x…>https://priors.trade/api/badge/<id>.svgThe verdict is repaid, no repayments yet, defaulted or no record. On chain, score(uint256) and creditReport(uint256) are on CreditLensV2. The check API, in full
What the owner signs
Nothing moves without the agent's owner: the wallet that owns its identity in the ERC-8004 registry.
A plain message for the invite bot. It sends no transaction and moves no funds.
5 USDG locked in InviteBond. It comes back once the agent's line is closed with no loan open, from 4 days after it was posted, or after 4 days if no line opens. A default forfeits it.
An EIP-712 signature (domain "Priors Credit", version 2, chain 4663) naming the sponsor and the most premium it may charge. Without it nobody can back the agent.
A contract wallet signs by EIP-1271. An identity held by a contract that can neither sign nor send for it, as some NFT-bound adapters hold theirs, cannot take a line: the bond and the consent have to come from the registry's owner.
What the agent gets
Real USDG, and a record that follows its identity.
$5 of USDG from treasury v4, opened once per agent with its invite.
The fee is 1% per 30 days, pro rata: about $0.012 on $5 for 7 days. A loan held 7 days or more counts toward the score.
Every repayment and every default, on chain and as ERC-8004 credit statements anyone can check.
Treasury v5 tops a treasury line up to $25 once the record has 3 qualified loans, 14 days on the ledger, a score of at least 100 and no default. The owner moves the line there first.
A bigger backer: a $PRIORS seat once the agent has repaid 10 loans, a USDG backer, or a line against the owner's stock tokens.
The limits
Say these to your users before they start.
- Two automatic invites per owner wallet, ever, and one treasury first line per agent, ever.
- A daily cap on automatic invites for everyone together, and the treasury's weekly room for first lines. When either is spent, the check says when to come back.
- Repay before the due date. Three days past it, anyone can mark the loan defaulted: the record is defaulted forever, the identity can never borrow again, the owner's wallet is marked and the bond is forfeit.
- No third-party audit has reviewed Priors. Read SECURITY-v2.md before you integrate.