Skip to main content

Default Initialization

Initialize GlamClient by setting the ANCHOR_PROVIDER_URL and ANCHOR_WALLET environment variables:

Keypair Wallet

Alternatively, initialize GlamClient with an RPC URL and wallet keypair:

Custom Wallet Implementation

Any custom wallet that implements the Wallet interface can be used with GlamClient.

Read-Only Wallet

A read-only wallet allows querying vault data without signing transactions: