usdc_convert_native
Converts a chain's native gas token to USDC while retaining a per-chain gas reserve; fetch amounts with the quote tool before executing.
Instructions
Convert the chain's native gas token to USDC, keeping a per-chain gas reserve. Get amounts from usdc_get_convert_quote.
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": {
"chainId": "<chainId>",
"nativeAmountRaw": "<nativeAmountRaw>",
"minUsdcOutRaw": "<minUsdcOutRaw>"
},
"name": "usdc_convert_native"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | GDEX API key for AES encryption | |
| chainId | Yes | Chain ID: 1, 10, 56, 146, 8453, 42161 or 622112261 (Solana). No USDC on Robinhood 4663 or Fraxtal 252 | |
| accountRef | No | Connected account from gdex_connect. Supplies session key, wallet address, API key and session data so no secret is passed in chat | |
| minUsdcOutRaw | Yes | Minimum USDC out, raw integer units | |
| walletAddress | No | Control wallet address | |
| nativeAmountRaw | Yes | Native amount to convert, raw integer units | |
| sessionPrivateKey | No | Session private key from sign-in |