pub struct Wallet<T: ReadOnly + SignOnly> {
Show 20 fields pub http_rpc: String, pub network_id: u32, pub network_name: String, pub keychain: Keychain<T>, pub ethers_signing_key: SigningKey, pub local_wallet: LocalWallet, pub evm_provider: Provider<Http>, pub evm_url_path: String, pub h160_address: H160, pub x_address: String, pub p_address: String, pub c_address: String, pub short_address: Id, pub eth_address: String, pub x_chain_id: Id, pub p_chain_id: Id, pub c_chain_id: Id, pub evm_chain_id_u256: U256, pub tx_fee: u64, pub avax_asset_id: Id,
}

Fields

http_rpc: Stringnetwork_id: u32network_name: Stringkeychain: Keychain<T>ethers_signing_key: SigningKeylocal_wallet: LocalWalletevm_provider: Provider<Http>evm_url_path: Stringh160_address: H160x_address: Stringp_address: Stringc_address: Stringshort_address: Ideth_address: Stringx_chain_id: Idp_chain_id: Idc_chain_id: Idevm_chain_id_u256: U256tx_fee: u64avax_asset_id: Id

Implementations

Fetches UTXOs for “P” chain. TODO: cache this like avalanchego

Adds a node as a validator. ref. https://github.com/ava-labs/avalanchego/blob/v1.7.9/vms/platformvm/add_validator_tx.go ref. https://github.com/ava-labs/avalanchego/blob/v1.7.9/vms/platformvm/spend.go ref. https://github.com/ava-labs/avalanchego/blob/v1.7.9/wallet/chain/p/builder.go ref. https://github.com/ava-labs/subnet-cli/blob/6bbe9f4aff353b812822af99c08133af35dbc6bd/client/p.go “AddValidator”

Fetches UTXOs for “X” chain. TODO: cache this like avalanchego

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

ref. https://doc.rust-lang.org/std/string/trait.ToString.html ref. https://doc.rust-lang.org/std/fmt/trait.Display.html Use “Self.to_string()” to directly invoke this

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more