Skip to main content

ChainProviderOps

Trait ChainProviderOps 

Source
pub trait ChainProviderOps {
    // 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.

Implementations on Foreign Types§

Source§

impl<T: ChainProviderOps> ChainProviderOps for Arc<T>

Implementors§