Prepare: fund a lend or a buy from another chain
pay_withUnsigned transactions, on another EVM chain, that lend into Borro or buy a stock token on Robinhood Chain from what the wallet holds there: any token or the chain's own coin, on any of the chains Trustware routes from (70 and more). Trustware (trustware.io) finds the route and screens it; Borro checks the route is the one asked for (the wallet's own money, Borro's own vault, the amount, the fees) before it is returned. The route is good for about a minute: sign the approvals, then the transaction, on the source chain; the deposit lands on Robinhood Chain in the wallet's name. Then pay_with_status with the intentId. A chain or token the wallet does not hold is refused with what it holds instead.
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>",
"chain": "<chain>",
"token": "<token>",
"amount": "<amount>"
},
"name": "pay_with"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | lend (default): into Borro's vault for the asset; buy: the stock token sent to the wallet | |
| asset | No | USDG (the default, for a lend) or a stock on Borro by its ticker, like NVDA | |
| chain | Yes | The source chain: its id ("8453") or name ("base", "ethereum", "arbitrum", "optimism", "polygon", "bnb", "avalanche") | |
| token | Yes | What to pay with on that chain: a symbol as the wallet holds it ("USDC", "ETH", "WETH") or the token's address; the chain's own coin as "ETH" or "native" | |
| amount | Yes | How much of it, in whole units as a decimal string, like "25" or "0.01"; "all" for the whole balance | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign, on the source chain |