gdex_connect
Connect a GDEX trading account without exposing secrets: sign in from a local key file, create a new wallet, or refresh an accountRef, then pass the returned accountRef to trading tools.
Instructions
Connect a GDEX trading account without putting any secret in the conversation. Signs in from a control-wallet key file on this machine (keyFile), or creates a new local wallet (create: true), or refreshes an existing accountRef. Returns an accountRef plus public addresses; pass accountRef to any trading tool instead of sessionPrivateKey/privateKey. Never ask the user to paste a private key or seed phrase.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| create | No | Create and store a new local control wallet (it starts unfunded) | |
| keyFile | No | Path to a local JSON key file ({ privateKey } or { control: { privateKey } }) | |
| accountRef | No | Refresh the session of an already connected account |