Prepare: pay from an agent credit line
credit_payOne unsigned borrow from a line straight to a payee on its allowlist (or its owner): the line's agent or owner signs it, the USDG goes from Morpho to the payee, and the line owes it until repaid. Checked as the line checks it: the allowlist, a write-off, what is left of the daily limit today, the ceiling, the target LTV at today's price, the market's 90% and depth gate; simulated from the wallet. Check the transaction's to: a line the factory confirms (isAccount).
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": {
"wallet": "<wallet>",
"account": "<account>",
"to": "<to>",
"amount": "<amount>"
},
"name": "credit_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The payee: an address on the line's allowlist, or its owner | |
| amount | Yes | USDG to pay, in whole units as a decimal string, like "1.5" | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign | |
| account | Yes | The line's address |