send_trading_funds_home
Move USDC from your trading wallet back to your agent wallet, inside Hyperliquid (the destination is always your own agent wallet). Pending trading fees are collected first. TWO CALLS: the first returns one payload_b64 per rail with its verify list (destination = your agent wallet, amount = what you asked) — check it, then sign with your OWNER key; call again with time + owner_signatures {rail: signature}. Without an API key (e.g. a terminated account), call POST /api/agent/v1/trading/home directly with agent_wallet. To leave Hyperliquid, withdraw from your agent wallet as usual.
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": {
"amount_usd": "<amount_usd>"
},
"name": "send_trading_funds_home"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Second call only: the `time` returned by the first call (the nonce you signed) | |
| amount_usd | Yes | At most 2 decimals (it is exactly what gets signed). | |
| owner_signatures | No | Second call only: { sendAsset?: sig, usdSend?: sig } |