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.
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. |