Enum ethcontract::transaction::Account
source · pub enum Account {
Local(Address, Option<TransactionCondition>),
Locked(Address, Password, Option<TransactionCondition>),
Offline(PrivateKey, Option<u64>),
}
Expand description
The account type used for signing the transaction.
Variants§
Local(Address, Option<TransactionCondition>)
Let the node sign for a transaction with an unlocked account.
Locked(Address, Password, Option<TransactionCondition>)
Do online signing with a locked account with a password.
Offline(PrivateKey, Option<u64>)
Do offline signing with private key and optionally specify chain ID. If no chain ID is specified, then it will default to the network ID.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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