DecibelConfig
- network: Aptos network identifier
- fullnodeUrl: Aptos fullnode HTTP endpoint
- tradingHttpUrl: Decibel trading REST base URL
- tradingWsUrl: Decibel trading WebSocket URL
- gasStationUrl: Base URL override for the Gas Station API (only needed for custom networks)
- gasStationApiKey: Geomi Gas Station API key for sponsored transactions
- deployment: on-chain package and addresses (package, usdc, testc, perpEngineGlobal)
- chainId: optional preconfigured chain id to accelerate build/sign
Custom config example
Gas Station (Sponsored Transactions)
To sponsor gas fees for your users via Geomi Gas Station, addgasStationApiKey to your config:
gasStationApiKey is set, the SDK automatically submits all transactions through the Gas Station for fee sponsorship. Users don’t need APT for gas. To disable sponsorship, simply omit gasStationApiKey from the config.
Node API keys
PassnodeApiKey to DecibelReadDex or DecibelWriteDex for fullnode rate limits and performance.Under the hood, the SDK sends it as
Authorization: Bearer <YOUR_NODE_API_KEY> on outbound HTTP requests:

