Skip to main content

ChainProvider

Trait ChainProvider 

Source
pub trait ChainProvider {
    // Required methods
    fn signer_addresses(&self) -> Vec<String>;
    fn chain_id(&self) -> ChainId;
}
Expand description

Common operations available on all chain providers.

This trait provides a unified interface for querying chain provider metadata regardless of the underlying blockchain type.

Required Methods§

Source

fn signer_addresses(&self) -> Vec<String>

Returns the addresses of all configured signers for this chain.

For EVM chains, these are Ethereum addresses (0x-prefixed hex). For Solana, these are base58-encoded public keys.

Source

fn chain_id(&self) -> ChainId

Returns the CAIP-2 chain identifier for this provider.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: ChainProvider> ChainProvider for Arc<T>

Implementors§