usdc_sell
Sell a token and receive USDC into the unified USDC wallet. Settles on its own chain with no auto-funding, letting you convert holdings to USDC.
Instructions
Sell a token and receive USDC into the unified USDC wallet. Settles on its own chain (no auto-funding, as on gdex.pro).
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 | |
| autoBridge | No | Default false: sells settle on their own chain and never auto-fund, as on gdex.pro | |
| tokenAddress | Yes | Token to sell | |
| minUsdcOutRaw | Yes | Minimum USDC out (from usdc_get_trade_quote minus slippage), raw integer units | |
| walletAddress | No | Control wallet address | |
| tokenAmountRaw | Yes | Token amount to sell, raw integer units | |
| maxSourceSpendRaw | No | Signed cap on total source spend for auto-funding (default ceil(amount x 1.2)), raw integer units | |
| sessionPrivateKey | No | Session private key from sign-in |