Skip to main content

Multi-Chain

This guide covers using ChainClient to perform privacy operations across multiple blockchains from a single SDK instance.
For an overview of multi-chain concepts, see Multi-Chain Concepts.

Setup

Initialize the parent SDK, then create chain clients for each blockchain you want to interact with:
You can pass additional configuration to override auto-discovered values:

Authentication

Each chain client must be authenticated before use. Authentication shares your identity keys from the parent SDK but obtains a chain-specific JWT:

Operations

Once authenticated, a ChainClient provides the same vault, transactions, and audit resources as the parent SDK:

Deposits

Private Transfers

Withdrawals

Balances

Cross-Chain Patterns

Parallel Operations

Since chain clients are independent, you can run operations in parallel:

Multi-Chain Balance Aggregation

Chain Selection

Cleanup

Next Steps