Skip to main content

Prerequisites

Install the SDK

Initialize the client

init() calls GET /api/transaction/config with your API key. The response provides the RPC endpoint, short-lived JWT, fee payer address, and selected cluster. The SDK uses only these values — it never falls back to a public Solana RPC.

Check a balance

For an SPL token balance, pass the mint address:

Send a sponsored transaction

Provide a local signer and call send(). Altude attaches the fee payer and relays the transaction — your user’s wallet is never charged for gas.
Do not commit API keys, wallet secrets, mnemonics, or private keys to source control. Use environment variables or a secrets manager.

Next steps

TypeScript SDK overview

Full guide: installation, client setup, and all available operations.

API reference

Direct REST API documentation for all Gas Station endpoints.