pub struct ChainConfig {
pub chain: Chain,
pub rpc_url: String,
pub sender_private_id: String,
pub agent_id: String,
}Expand description
Chain-specific network configuration for creating or querying escrows.
Fields§
§chain: ChainNetwork identifier.
rpc_url: StringJSON-RPC endpoint URL.
sender_private_id: StringSender’s private key and/or keypair path.
For Ethereum, a wallet import format (WIF) or hex is expected.
For Solana, a path to a keypair file (e.g., ~/.config/solana/id.json).
agent_id: StringOn-chain escrow program ID (Solana) or smart contract address (Ethereum).
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for ChainConfig
impl<'__de, __Context> BorrowDecode<'__de, __Context> for ChainConfig
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for ChainConfig
impl Clone for ChainConfig
Source§fn clone(&self) -> ChainConfig
fn clone(&self) -> ChainConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChainConfig
impl Debug for ChainConfig
Source§impl<__Context> Decode<__Context> for ChainConfig
impl<__Context> Decode<__Context> for ChainConfig
Auto Trait Implementations§
impl Freeze for ChainConfig
impl RefUnwindSafe for ChainConfig
impl Send for ChainConfig
impl Sync for ChainConfig
impl Unpin for ChainConfig
impl UnwindSafe for ChainConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more