ethers library

Classes

AbiCoder
The AbiCoder is a collection of Coders which can be used to encode and decode the binary data formats used to interoperate between the EVM and higher level libraries.
AccessList
An EIP-2930 transaction allows an optional AccessList which causes a transaction to warm (i.e. pre-cache) another addresses state and the specified storage keys.
BigNumber
Many operations in Ethereum operate on numbers which are outside the range of safe values to use in JavaScript.
Block
An object consist of basic information about block.
BlockTag
A BlockTag specifies a specific block location in the Blockchain.
BlockWithTransaction
An object consist of basic information about block.
Contract
A Contract is an abstraction of code that has been deployed to the blockchain.
ContractERC20
Dart Class for ERC20 Contract, A standard API for tokens within smart contracts.
EthUtils
These utilities are used extensively within the library, but are also quite useful for application developers.
Event
EventFilter<T extends _EventFilterImpl>
An event filter is made up of topics, which are values logged in a Bloom Filter, allowing efficient searching for entries which match a filter.
ExternallyOwnedAccount
This is an interface which contains a minimal set of properties required for Externally Owned Accounts which can have certain operations performed, such as encoding as a JSON wallet.
FeeData
A FeeData object encapsulates the necessary fee data required to send a transaction, based on the best available recommendations.
Filter
Interface
The Interface Class abstracts the encoding and decoding required to interact with contracts on the Ethereum network.
JsonRpcProvider
The JSON-RPC API is a popular method for interacting with Ethereum and is available in all major Ethereum node implementations (e.g. Geth and Parity) as well as many third-party web services (e.g. INFURA)
Log<T extends _LogImpl>
Information log of specific transaction.
Mnemonic
Mnemonic interface for mnemonic defined private key.
Network
A Network represents an Ethereum network.
Provider<T extends _ProviderImpl>
A Provider is an abstraction of a connection to the Ethereum network, providing a concise, consistent interface to standard Ethereum node functionality.
Signer<T extends _SignerImpl>
A Signer in ethers is an abstraction of an Ethereum Account, which can be used to sign messages and transactions and send signed transactions to the Ethereum Network to execute state changing operations.
Transaction<T extends _TransactionImpl>
A generic object to represent a transaction.
TransactionOverride
TransactionReceipt
TransactionRequest
A transaction request describes a transaction that is to be sent to the network or otherwise processed.
TransactionResponse
A TransactionResponse includes all properties of a Transaction as well as several properties that are useful once it has been mined.
Wallet
The Wallet class inherits Signer and can sign transactions and messages using a private key as a standard Externally Owned Account (EOA).
Web3Provider
The Web3Provider is meant to ease moving from a web3.js based application to ethers by wrapping an existing Web3-compatible (such as a Web3HttpProvider, Web3IpcProvider or Web3WsProvider) and exposing it as an ethers.js Provider which can then be used with the rest of the library.

Enums

FormatTypes
Format types of Interface

Extensions

BigIntExtension on BigInt
BigInt extension for converting between Dart and JS class.
BigNumberExtension on BigNumber
BigNumber extension for converting between Dart and JS class.

Properties

abiCoder AbiCoder
Get default AbiCoder.
no setter
provider Web3Provider?
Getter for default Web3Provider object.
no setter

Exceptions / Errors

EthersException