Module blockchain

Source
Expand description

Blockchain client interfaces and implementations.

Provides abstractions and concrete implementations for interacting with different blockchain networks. Includes:

  • Generic blockchain client trait
  • Chain specific clients
  • Network transport implementations
  • Error handling for blockchain operations
  • Client pool for managing multiple clients

Structs§

ClientPool
Main client pool manager that handles multiple blockchain types.
EVMTransportClient
A client for interacting with EVM-compatible blockchain nodes
EvmClient
Client implementation for Ethereum Virtual Machine (EVM) compatible blockchains
HttpEndpointManager
Manages the rotation of blockchain RPC endpoints
HttpTransportClient
Basic HTTP transport client for blockchain interactions
MidnightClient
Client implementation for Midnight blockchain
MidnightWsTransportClient
A client for interacting with Midnight-compatible blockchain nodes via WebSocket
SignatureInfo
Information about a transaction signature from getSignaturesForAddress
SolanaClient
Client implementation for the Solana blockchain
SolanaGetBlockConfig
Configuration options for getBlock RPC calls
SolanaGetTransactionConfig
Configuration options for getTransaction RPC calls
SolanaTransportClient
A client for interacting with Solana blockchain nodes
StellarClient
Client implementation for the Stellar blockchain
StellarTransportClient
A client for interacting with Stellar-compatible blockchain nodes
TransientErrorRetryStrategy
A default retry strategy that retries on requests based on the status code This can be used to customise the retry strategy
WsConfig
WebSocket configuration for blockchain transports
WsEndpointManager
Manages WebSocket RPC endpoint rotation and failover
WsTransportClient
Basic WebSocket transport client for blockchain interactions

Enums§

BlockChainError
Represents possible errors that can occur during blockchain operations
SolanaClientError
Solana client error type
SolanaCommitment
Commitment levels for Solana RPC requests
StellarClientError
Stellar client error type
TransportError

Traits§

BlockChainClient
Defines the core interface for blockchain clients
BlockFilterFactory
Defines the factory interface for creating block filters
BlockchainTransport
Base trait for all blockchain transport clients
ClientPoolTrait
Trait for the client pool.
EvmClientTrait
Extended functionality specific to EVM-compatible blockchains
MidnightClientTrait
Extended functionality specific to Midnight blockchain
MidnightSubstrateClientTrait
Trait for Substrate client implementation
RotatingTransport
Extension trait for transports that support URL rotation
SolanaClientTrait
Extended functionality specific to the Solana blockchain
StellarClientTrait
Extended functionality specific to the Stellar blockchain