Skip to main content

Initialization Methods

Automatically fetches IDLs from the blockchain:
With custom program IDs:

With Local IDLs

Use pre-downloaded IDL files for offline initialization:

Configuration Interfaces


Default Program IDs

Both SDKs default to mainnet program IDs:

RPC Providers

The SDK works with any Solana RPC provider:

Commitment Levels


Accessing Clients


Fetch Options (TypeScript)

Many TypeScript fetch methods accept options for metadata handling:

Next Steps

Markets

Fetch and query market data.

Trading

Execute trades programmatically.