Draft an offer on a line request
line_offerDraft an offer on Priors' line board, for a root's owner (a backer): give the request's id (from find_line_requests), the root to back from, the amount in USDG and, if you like, the premium (bps per 30 days, the request's most by default) and how many days the offer stands (7 by default, never past the request). It checks the offer against the request and the board's rules, the root's free backing on the pool and its owner in the ERC-8004 registry, and returns the LineOffer to sign (EIP-712 typed data, domain "Priors Line Market" 1 on chain 4663), the address that must sign it, the POST that lists it with the signature, and what Score v2 would say of a line from that root to that agent under its current rules: that loans on it count toward the agent's record now, from a date, or never. A refusal says why. It signs and sends nothing: the root's owner signs in its own wallet and posts the offer; once the agent's owner takes it, line_request gives the vouchWithConsent call. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_id": "<request_id>",
"root_id": "<root_id>",
"amount_usd": "<amount_usd>"
},
"name": "line_offer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days the offer stands, at most until the request ends. Default 7, or less as the request ends sooner. | |
| signer | No | The address that will sign, to check it first (optional): the root's owner in the ERC-8004 registry; any other is refused. | |
| root_id | Yes | The root (a backer of the pool) the offer backs the agent from, e.g. 490. | |
| amount_usd | Yes | The line offered, in USDG: at least 1, at most the line asked and the root's free backing. | |
| request_id | Yes | The request's id (its EIP-712 hash): 0x and 64 hex characters, as find_line_requests gives it. | |
| premium_bps | No | The premium, in bps per 30 days, at most the request's. Default: the request's most. |