Create the client
devnet while testing. Move to mainnet-beta only after the API key is configured for production.
Initialize runtime configuration
init() requests GET /api/transaction/config with your API key. The response supplies:
The SDK caches valid configuration and refreshes it near token expiration.
Provide a signer
Transaction-building methods accept aGaslessTransactionSigner. The signer exposes its Solana address and signs transaction message bytes locally:
Custom API base URL
UsebaseUrl only when Altude provides a non-default API environment:
Mock mode
Constructing the client without an API key enables local mock responses for selected HTTP methods. Live RPC operations require an API key and reject withRPC_ERROR when configuration cannot be resolved.