Prepare an account upgrade purchase
geode_upgrade_prepareBuilds a USDC purchase of a GEODE pack for YOU to sign and send from your own Base wallet (you pay the gas; this server never sends anything). It first checks the Geode address, your USDC and ETH, stock and limits. mode "approve" (default, any wallet): returns two unsigned transactions, an exact-amount USDC approval and the buy. mode "authorization" (wallets that can sign EIP-712 typed data): returns typed data to sign; then call geode_upgrade_build. Nothing is spent until you send a transaction.
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": {
"pack_id": "<pack_id>",
"geode_address": "<geode_address>",
"buyer": "<buyer>"
},
"name": "geode_upgrade_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "approve" (default) or "authorization" | |
| buyer | Yes | Your Base (EVM) address, 0x…: the wallet that holds the USDC, signs, sends the transactions and pays the gas. | |
| pack_id | Yes | From geode_upgrade_packs (1 = Pebble, 2 = Diamond) | |
| geode_address | Yes | The Geode account (SS58) that receives the GEODE. Double-check it: a purchase delivered to a wrong address cannot be reversed. |