Re-exports§
pub use ethers_eip2718 as eip2718;
pub use ethers_hardhat as hardhat;
pub use ethers_macros as macros;
pub use ethers_primitives as primitives;
pub use ethers_provider as providers;
pub use ethers_signer as signers;
pub use ethers_wallet as wallet;
Modules§
Macros§
Structs§
- AbiEvent
- Access
- Access
List - Address
- Ethereum address type in binary bytes with format
rlp
and formatabi
supports - Block
- Bytes
- Type mapping for
bytes
of contract abi - BytesM
- Type mapping for
bytes<M>
of contract abi - Client
- Client to communicate with ethereum contract.
- Eip1559
Signature - Ethereum signature structure.
- Eip1559
Transaction Request - Eip2930
Transaction Request - Error
- The
Error
type, a wrapper around a dynamic error type. - Ether
- Event
- FeeHistory
- Filter
- Filter argument for events
- Filter
Receiver - Finney
- Fixed
- Gwei
- Int
int<M>
type mapping- Kwei
- Legacy
Transaction Request - Log
- Mwei
- Provider
- Ether network api provider
- Signer
- Syncing
- Szabo
- Topic
Filter - When a Contract creates a log, it can include up to 4 pieces of data to be indexed by. The indexed data is hashed and included in a Bloom Filter, which is a data structure that allows for efficient filtering.
- Transaction
- Transaction
Receipt - Transaction
Receipter - Transaction instance provide extra wait fn
- TxOptions
- Uint
uint<M>
type mapping- Unfixed
- Wei
Enums§
- Address
Error - Address
Filter - Block
Number OrTag - eth_getBlockByNumber parameter
Block
- Block
Tag - eth_getBlockByNumber parameter
Block
valid tag enum - Bytes
Errors - Client
Error - Contract client errors
- Eip1559
SigError - Event
Arg - Event emit arg
- Event
Type - Ether client support event types
- Filter
Events - From
HexError - The error type for decoding a hex string into
Vec<u8>
or[u8; N]
. - Name
OrAddress - Signed
Error - Status
- Syncing
Status - Topic
- Topic filter expr
- Transaction
OrHash - Transaction
Type - Typed
Transaction Request - Uint
Error - Unit
Error
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Eip55
- Eip55 support trait
- Ethereum
Unit - From
Ether Hex - Implement this trait to support deserialize
type
from ethereum hex string, “0x…” - FromHex
- Types that can be decoded from a hex string.
- Serialize
- A data structure that can be serialized into any data format supported by Serde.
- ToEther
Hex - Implement this trait to support serialize
type
to ethereum hex string, “0x…” - ToHex
- Encoding values as hex string.
- ToTx
Options
Functions§
- decode
- Decodes a hex string into raw bytes.
- decode_
to_ slice - Decode a hex string into a mutable bytes slice.
- encode
- Encodes
data
as hex string using lowercase characters. - encode_
to_ slice - Encodes some bytes into a mutable slice of bytes.
- encode_
upper - Encodes
data
as hex string using uppercase characters. - from_
abi - Deserialize rust value from contract abi format.
- keccak256
- to_abi
- Serialize rust value to contract abi format.