Prepare: take USDG (or a stray token) out of a receiving address
payto_withdrawAn unsigned transaction for the owner to take what waits at its receiving address out to its own wallet: USDG as USDG before it is swept (token USDG, the default), or ETH or another ERC-20 token sent there by mistake (token ETH, or the token's address). amount is a decimal string, or "all" (the default) for whatever is there when it lands. USDG already swept is the wallet's bUSDG: redeem it from the vault with withdraw. Simulated from the wallet; nothing is sent.
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": "payto_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | No | "USDG" (default), "ETH", or a token's address (0x...) | |
| amount | No | How much, as a decimal string, or "all" (default) | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign |