Prepare: post gAIX and borrow USDG
gaix_borrowUnsigned transactions to post gAIX as collateral and borrow USDG against it, from the wallet: approve gAIX to Morpho for exactly what is posted (when needed), post it, borrow. post and amount can each be given alone (post more to an open loan; borrow more against what is posted). Borrowing pauses every weekend and whenever a basket price is out of date (posting does not), and stops at three quarters of the limit. Simulated from the wallet.
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>"
},
"name": "gaix_borrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post | No | gAIX to post, in whole shares as a decimal string, like "10" | |
| amount | No | USDG to borrow, as a decimal string, like "250" | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign |