Raw schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"description": "The wallet's address (0x...); the transactions are built for it to sign"
},
"account": {
"type": "string",
"description": "An existing line: post more and/or borrow from it (leave out to open a new line)"
},
"market": {
"type": "string",
"description": "New line: which market, by its symbol in credit_markets (default CREDIT)"
},
"agent": {
"type": "string",
"description": "New line: the agent's address, the wallet that will borrow from it (not the owner's)"
},
"credits": {
"type": "string",
"description": "Credits to post, in whole units as a decimal string, like \"1.5\""
},
"borrow": {
"type": "string",
"description": "USDG to borrow now (optional), in whole units as a decimal string, like \"1.5\""
},
"to": {
"type": "string",
"description": "Where borrowed USDG goes: the owner or an allowlisted address (default the wallet, or the owner)"
},
"ceiling": {
"type": "string",
"description": "New line: the most USDG the line may owe (optional), in whole units as a decimal string, like \"1.5\""
},
"daily_limit": {
"type": "string",
"description": "New line: the most USDG out in any 24 hours, like \"100\", or \"none\" (default the ceiling; $100 with a gas station, at most $5,000)"
},
"target_ltv": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
}
],
"description": "New line: target LTV, a fraction under 1 like 0.18 or a percent with its sign like \"18%\" (the market's default: 0.18 for CREDIT)"
},
"trigger_ltv": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
}
],
"description": "New line: LTV above which the keeper may protect it (default by the market's rule)"
},
"allow": {
"type": "array",
"items": {
"type": "string"
},
"description": "New line: addresses borrowed USDG may go to (16 at most)"
},
"gas_station": {
"type": "boolean",
"description": "New line: put the agent's gas station on the allowlist, so the agent can borrow its own gas (credit_gas)"
},
"bills": {
"type": "boolean",
"description": "New line: bill pay, the agent's own wallet on the allowlist, so it can borrow what it is short of an x402 bill (credit_bill); the line then needs a daily limit ($100 unless given)"
},
"keeper": {
"type": "string",
"description": "New line: \"borro\" (Borro's keeper, the default), \"none\", or an address"
},
"sell_bps": {
"type": "integer",
"description": "New line: most of the credits one protect sale may sell, in hundredths of a percent (0 to 2500; CREDIT default 2500; 0 in a market with no pool)"
},
"slip_bps": {
"type": "integer",
"description": "New line: most a protect sale may fill under the feed's price, in hundredths of a percent (0 to 1000, default 300)"
}
},
"required": [
"wallet"
]
}