Skip to main content
The @x84-ai/sdk package provides TypeScript bindings for every instruction, account type, and utility in the x84 Solana program. It handles PDA derivation, instruction building, account fetching, event parsing, and error handling.

Installation

For settlement with compressed receipts, install the Light Protocol SDK:

Entry points

The SDK has two entry points to keep the core bundle small.

Quick start

Constants and network config

NetworkConfig

Each deployed network exposes a typed config object via getNetworkConfig("devnet") or getNetworkConfig("mainnet").

PDA derivation

All PDA functions return [PublicKey, number]. The default programId is X84_PROGRAM_ID.

Account fetchers

Single account

Batch fetchers

These use getProgramAccounts with filters for efficient bulk queries.

Utilities

Error handling

The SDK provides structured error parsing for all 49 program error codes (6000-6048).

Key error codes