Prepare: collect from a hold
hold_collectOne unsigned transaction paying a hold's payee. Metered: settle with the latest voucher (cumulative and signature, or by default the last one Borro's facilitator accepted); until the expiry anyone may send it, in the 4-day grace after it the payee or its operator, and the USDG goes to the payee. Charge: charge an amount (default all the cap has left), the payee or its operator, until the grace ends. A stock hold sells stock along its desk's route, while the market is open. When the vault can pay out part of it, it pays that much and the rest can be collected later; in_shares true (the payee or its operator) pays the vault's shares instead, which needs no liquidity (a stock hold's at its feed with BorroHolds' constant pad of 0.5% (PAD_BPS, 50 bps), while the market is open: shares worth the amount divided by one plus the pad, the whole amount counted as paid; the payee bears the pad whenever it collects a stock hold in kind). Simulated from the wallet, with what the payee gets after the hold's fee.
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>",
"hold": "<hold>"
},
"name": "hold_collect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hold | Yes | The hold's id | |
| amount | No | Charge mode: USDG to charge, 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 | |
| in_shares | No | Pay the payee the vault's shares worth the amount (a stock hold's divided by one plus the constant 0.5% (PAD_BPS, 50 bps) pad; the payee or its operator) | |
| signature | No | Metered: the voucher's signature | |
| cumulative | No | Metered: the voucher's cumulative, in USDG's smallest units |