pub struct Accounts<T> { /* private fields */ }
Expand description

Accounts namespace

Implementations

Signs an Ethereum transaction with a given private key.

Transaction signing can perform RPC requests in order to fill missing parameters required for signing nonce, gas_price and chain_id. Note that if all transaction parameters were provided, this future will resolve immediately.

Sign arbitrary string data.

The data is UTF-8 encoded and enveloped the same way as with hash_message. The returned signed data’s signature is in ‘Electrum’ notation, that is the recovery value v is either 27 or 28 (as opposed to the standard notation where v is either 0 or 1). This is important to consider when using this signature with other crates.

Hash a message according to EIP-191.

The data is a UTF-8 encoded string and will enveloped as follows: "\x19Ethereum Signed Message:\n" + message.length + message and hashed using keccak256.

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
Creates new API namespace
Borrows a transport.

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.

Calls U::from(self).

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

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
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.