Crate ethers_rs

Source

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§

error
providers
Reexport impls as providers mod

Macros§

hardhat

Structs§

AbiEvent
Access
AccessList
Address
Ethereum address type in binary bytes with format rlp and format abi 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.
Eip1559Signature
Ethereum signature structure.
Eip1559TransactionRequest
Eip2930TransactionRequest
Error
The Error type, a wrapper around a dynamic error type.
Ether
Event
FeeHistory
Filter
Filter argument for events
FilterReceiver
Finney
Fixed
Gwei
Int
int<M> type mapping
Kwei
LegacyTransactionRequest
Log
Mwei
Provider
Ether network api provider
Signer
Syncing
Szabo
TopicFilter
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
TransactionReceipt
TransactionReceipter
Transaction instance provide extra wait fn
TxOptions
Uint
uint<M> type mapping
Unfixed
Wei

Enums§

AddressError
AddressFilter
BlockNumberOrTag
eth_getBlockByNumber parameter Block
BlockTag
eth_getBlockByNumber parameter Block valid tag enum
BytesErrors
ClientError
Contract client errors
Eip1559SigError
EventArg
Event emit arg
EventType
Ether client support event types
FilterEvents
FromHexError
The error type for decoding a hex string into Vec<u8> or [u8; N].
NameOrAddress
SignedError
Status
SyncingStatus
Topic
Topic filter expr
TransactionOrHash
TransactionType
TypedTransactionRequest
UintError
UnitError

Traits§

Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Eip55
Eip55 support trait
EthereumUnit
FromEtherHex
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.
ToEtherHex
Implement this trait to support serialize type to ethereum hex string, “0x…”
ToHex
Encoding values as hex string.
ToTxOptions

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.

Type Aliases§

Bytes1
Bytes32
DefaultFilterReceiver
DefaultTransactionReceipter
H256
I64
I256
U64
U256

Derive Macros§

Deserialize
Serialize