Skip to main content

ChainAddress

Trait ChainAddress 

Source
pub trait ChainAddress:
    Clone
    + Default
    + Into<MultiChainAddress>
    + TryFrom<MultiChainAddress, Error = ProtoConversionError> { }
Expand description

A chain-agnostic address trait used by the SDK’s cross-chain request APIs.

This trait lets crate::TridentClient and SpendRequestBuilder work with a single generic address bound across supported chains. Implementors provide conversion to and from the wire-level v1::MultiChainAddress so the SDK can accept concrete address types while still speaking a common cross-chain format internally.

Default is required so the SDK can construct zero-address placeholders for fields that are filled in later, such as fee-estimation requests.

Implemented for alloy_primitives::Address.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ChainAddress for Address

Implementors§