build_trade_payload
Build encrypted managed-custody trade computedData payloads from raw credentials, action, amount, nonce, and session private key for GDEX trades.
Instructions
Build an encrypted managed-custody trade computedData payload from raw credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nonce | Yes | Unique nonce | |
| action | Yes | Trade action | |
| amount | Yes | Trade amount | |
| apiKey | Yes | API key for AES encryption | |
| userId | Yes | Control wallet address | |
| tokenAddress | Yes | Token contract address | |
| sessionPrivateKey | Yes | Session private key |