- Require Elixir 1.18 or later
- Remove deprecated
Ethers.send/2,Ethers.send!/2and the:sendaction ofEthers.batch/2 - Remove deprecated
Ethers.Utils.maybe_add_gas_limit/2andEthers.Transaction.calculate_y_parity_or_v/2 - Remove the
SKIP_EX_KECCAKenvironment variable - Fetched transactions hold
access_listandblob_versioned_hashesas binaries instead of raw RPC values Ethers.Transaction.to_rpc_map/1emits access lists as{address, storageKeys}objectsEthers.Transaction.to_rpc_map/1emits EIP-7702 authorizationrandsas quantitiesEthers.Transaction.to_rpc_map/1raisesArgumentErrorfor unsupported values- Transaction
new/1returns{:error, :missing_<field>}for missing required fields instead of raising - Stricter transaction
new/1validation (to, access lists, blob versioned hashes, EIP-7702 authorizations) Ethers.Transaction.Signed.from_address/1now returns{:ok, address}Ethers.Transaction.decode/1returns{:error, reason}instead of raising on malformed input- Unsigned EIP-155 legacy transactions decode as
%Legacy{}instead of%Signed{} - All returned addresses are EIP-55 checksummed, including
Ethers.EventaddressandEthers.deployed_address/2 Ethers.get_transaction_receipt/2returns anEthers.Receiptstruct instead of the raw RPC mapEthers.Transaction.from_rpc_map/1andEthers.get_transaction/2returnEthers.Transaction.Unknownfor unregistered transaction types instead of{:error, :unsupported_type}Ethers.Transaction.decode/1returnsEthers.Transaction.Unknownfor unregistered transaction types instead of{:error, :unsupported_transaction_type}
- Add
Ethers.config/1(eth_config, EIP-7910) returningEthers.ForkConfigstructs - Update dependencies
- Allow
idna8.x - Add
Ethers.get_code/2(eth_getCode) - Add
Ethers.get_delegation/2andEthers.Authorization.parse_delegation/1to inspect EIP-7702 delegations - Warn about gas limits above the EIP-7825 cap, enforce a cap with
:max_transaction_gas - Add
Ethers.Receiptstruct with decoded transaction receipt fields - Add
Ethers.Receipt.decode_logs/2to decode receipt logs with event filters - Add
Ethers.Event.eth_transfer_log?/1andEthers.Event.system_address/0to identify EIP-7708 ETH transfer logs - Document that
Transferevent filters also match EIP-7708 ETH transfer logs - Add
Ethers.Transaction.Unknownfor unregistered transaction types like OP-stack deposit transactions - Restructure the documentation into a shorter README, topic guides, a cheatsheet and a Livebook tour
- Add
usage-rules.mdfor coding agents and ship the guides in the package - Document the
Ethers.RpcClient.Adapterbehaviour for custom RPC clients
- Fix re-encoding and hashing of fetched transactions with access lists
- Fix access lists in JSON-RPC params being rejected by geth
- Support signed transactions in
Ethers.Transaction.to_rpc_map/1 - Support pre-EIP-155 legacy transactions without
chain_id - Fix
access_listandblob_versioned_hashestypespecs of typed transactions - Fix transaction docs (supported types and options of
Ethers.send_transaction/2, EIP-4844 limitations) - Fix sender recovery for signatures with leading zero bytes in
rors - Fix
Ethers.Transaction.Signed.from_address/1raising on out-of-range recovery ids - Fix
:deployed_addressinEthers.batch/2 - Compare the
:signer_optsfromaddress with the transactionfromcase-insensitively - Fix the
http_optionstimeout example in the configuration guide - Fix
:get_balancerequests inEthers.batch/2 - Fix the
:get_transaction_receiptaction ofEthers.batch/2
- Add EIP-7702 set-code transaction support (type 4)
- Add
Ethers.fee_history/4(eth_feeHistory) with decoded integer quantities, also usable inEthers.batch/2via{:fee_history, [block_count, newest_block, reward_percentiles]} - Add
Ethers.estimate_fees/1: estimate EIP-1559max_fee_per_gasandmax_priority_fee_per_gasfrom recent blocks' priority fees (:slow/:standard/:fastspeeds or a raw percentile) withmax_fee_per_gas = 2 * next_base_fee + priority_fee - Transaction auto-fill now prices EIP-1559 transactions with
Ethers.estimate_fees/1instead of overpaying with a margin overeth_gasPrice, falling back to the legacy behaviour on RPC clients withouteth_feeHistorysupport - Add state override support to
Ethers.call/2andEthers.estimate_gas/2via the new:state_overridesoption: simulate calls against spoofed balances/nonces, injected contract code or rewritten storage slots (seeEthers.StateOverride) - Add
Ethers.create_access_list/2(eth_createAccessList): generate the EIP-2930 access list a transaction would touch, in a format that plugs directly back into the:access_listtransaction override
- Add combined event filters: fetch multiple events (OR semantics) in a single
eth_getLogsrequest withEthers.EventFilter.combine/1, or all events of a contract by passing its EventFilters module (e.g.Ethers.get_logs(MyContract.EventFilters, address: "0x...")) — the resultingEthers.CombinedEventFilterworks withEthers.get_logs/2andEthers.batch/2and decodes each fetched log with its matching event selector - Add EIP-191 personal message support: hash, recover
and verify messages with
Ethers.PersonalMessage, and sign them viaEthers.personal_sign/2with theEthers.Signer.LocalandEthers.Signer.JsonRPCsigners through the new optionalpersonal_sign/2signer callback (named after the RPC method it mirrors) - Add universal signature verification with
Ethers.Signature: verify any signature — EOA (ecrecover), smart-contract wallets (ERC-1271) and counterfactual, not-yet-deployed wallets (ERC-6492) against a digest, an EIP-191 personal message or EIP-712 typed data withEthers.Signature.verify_hash/4,verify_message/4andverify_typed_data/4 - Add Sign-In with Ethereum (EIP-4361) support with
Ethers.Siwe: build (new/1), render (to_message/1), parse (parse/1) and validate (validate/2) SIWE messages, generate session nonces (generate_nonce/0), and verify a message and its signature end-to-end withEthers.Siwe.verify/3— smart-contract wallets included via the universal signature verification above - Add EIP-712 typed data support: construct typed
structured data with
Ethers.TypedData, hash it (encode_type,type_hash,hash_struct,domain_separator,hash), sign it viaEthers.sign_typed_data/2with theEthers.Signer.LocalandEthers.Signer.JsonRPC(eth_signTypedData_v4) signers, and recover/verify the signer withEthers.TypedData.recover_signer/2andEthers.TypedData.valid_signature?/3 - Add a struct DSL for EIP-712 typed data: declare typed-data struct types as Elixir modules with
use Ethers.TypedData.Schemaand thetyped_schema/fieldmacros, then build anEthers.TypedDatadirectly from struct instances viaEthers.TypedData.new/2(andnew!/2)
- Handle elixir 1.20 false positives
- Fix indexed dynamic types event decoding (Thanks @ddallaire)
- Fix event filter typespec generation for events with interleaved indexed and non-indexed fields (Thanks @ricomateo)
- Relax version requiremnet on
ex_secp256k1
Ethers.Utils.human_arg/2now returns checksummed addresses instead of lowercase addresses for better EIP-55 compliance
- Fix
Ethers.Utils.human_arg/2incorrectly handling 20-byte binary addresses that start with bytes0x30and0x78(which represent the string "0x")
- Fix decoding of
inputvalues from RPC results - Handle the case when the RPC result does not have a transaction signature
- Fix compiler warnings in Elixir 1.19-rc2
- Return invalid_result error if 0x was given on an call with return types
- Remove extra hex decode in ENSIP-10 calldata
- Fix typo in signed transaction
type_id/1protocol implementation
Ethers.TxDatauses hex_decoded values instead of hex encoded ones
- Update
Ethersmodule to RPCfy eth_call request params - Removed unnecessary hex decode/encodes in requests
- Use
@external_resourcein generated contracts to track ABI changes and recompile if needed. (Thanks @sitch)
- Strict type checking for initializing transaction structs
- Remove hexification of map entries in
Ethers.TxData.to_map/2
- Support EIP-1191: Add chain id to mixed-case checksum address encoding
- Add EIP-4844 transaction support
- Add EIP-2930 transaction support
- Add
Ethers.blob_base_fee/1to calculate blob fee per gas - Make default gas and fee margin configurable
- Fix encoding of transactions without any input data
- Encode
access_listandblob_versioned_hashedcorrectly in RPC transaction requests
- Remove leading zeros from signature r and s values
- Support hex decoded raw transaction in
Ethers.Transaction.decode/1
- Removed
Ethers.Transactionstruct and replaced with separate EIP-1559 and Legacy transaction structs for improved type safety - Deprecated
Ethers.Transaction.from_map/1- useEthers.Transaction.from_rpc_map/1instead for RPC response parsing - Deprecated
Ethers.Utils.maybe_add_gas_limit/2- gas limits should now be set explicitly - Changed input format requirements: All inputs to
Ethersfunctions must use native types (e.g., integers) instead of hex strings encoded values - Removed auto-gas estimation from send_transaction calls
tx_typeoption in transaction overrides has been replaced withtype, now requiring explicit struct modules (e.g.Ethers.Transaction.Eip1559,Ethers.Transaction.Legacy)- Moved
Ethers.Transaction.calculate_y_parity_or_v/1toEthers.Transaction.Signedmodule - Deprecate
Ethers.send/2in favor ofEthers.send_transaction/2for clarity and prevent collision withKernel.send/2.
- Added EIP-3668 CCIP-Read support via
Ethers.CcipReadmodule for off-chain data resolution - Extended NameService to handle off-chain and cross-chain name resolution using CCIP-Read protocol
- Introduced
Ethers.Transaction.Protocolbehaviour for improved transaction handling - Added dedicated EIP-1559 and Legacy transaction struct types with validation
- New address utilities:
Ethers.Utils.decode_address/1andEthers.Utils.encode_address/1 - Added
Transaction.decode/1to decode raw transactions
- Improved error handling and reporting in
Ethers.deploy/2 - Enhanced NameService with ENSIP-10 wildcard resolution support
- Use checksum addresses when decoding transactions
- Add bang versions of
Etherstop module functions which were missing
- Add
from_blockandto_blockoptions toEthers.get_logs/2 - Add RPC adapter behaviour and proxy for Ethereumex.HttpClient
- Move and export abi decode functionality to
Ethers.TxDatamodule - Export
Ethers.TxData.to_map/2in docs - Add
Ethers.Event.find_and_decode/2function
- Handle
nilvalues when decoding transaction values for RLP encoding
- Make event filter arguments optional in typespecs
- Handle
{:ok, nil}from RPC get block by number request
- Enable raw use of
Ethers.call/2(usage without function selector) - Add optional backoff to
Ethers.Utils.date_to_block_number/3
- Mark
ex_keccakas optional using SKIP_EX_KECCAK environment variable
- Rename
NotERC165CompatibleErrortoErrors.NotERC165CompatibleError
- Handle unexpected errors in ExecutionError exceptions
- Add
Ethers.NameService.reverse_resolve/2to reverse resolve addresses to domains
- Add ERC-165 contract and behaviour
- Add
skip_docsoption for contract module doc and typespec generation - Allow skipping checksum address in
Ethers.Utils.public_key_to_address/2
- Fix
Ethers.Multicalltypespecs
- Support sending raw transactions using
Ethers.send/2 - Add
Ethers.get_transaction_count/2
- Add support of getting current
max_priority_fee_per_gas - Use latest
max_priority_fee_per_gasfrom the chain as default value in transactions
- Custom errors will be returned as error structs instead of raw RPC response
- Updated ERC20, ERC721 and ERC1155 ABIs to Openzeppelin 5.x
- Generate error structs from ABI and decode custom errors when error data is available
- Use JsonRPC signer as a default signer in
Ethers.sign_transaction/2
- Fix trimmed zeros in transaction encoder with unified hex encoding for transaction
- Removed
signature_v,signature_recovery_idandsignature_y_parityfromEthers.Transactionstruct and introduce newsignature_v_or_y_parityvalue - Update
ex_abito 0.7.0 with newmethod_idlogic for event selectors and use its value
- Cleanup implementation of Transaction encoders and value decoder
- Add
Ethers.get_transaction_receipt/2function to query native chain transaction receipt by transaction hash.
- Add more metadata to
Ethers.Transactionstruct. - Return
Ethers.Transactionstruct inEthers.get_transaction/2function. - Support
get_transactionin batch requests.
- Add
Ethers.get_transaction/2function to query native chain transaction by transaction hash.
- Add
Ethers.get_balance/2function to query native chain balance of accounts.
- Encode integers to hex even when they are part of params
Ethers.sign_transaction/2function- Signer behaviour
- Local Signer implementation
- JsonRPC Signer implementation
Ethers.Transactionstruct and helper functions
- unsized integer encoding to hex will now raise if given negative numbers.
Utils.date_to_block_number/3going to negative block numbers issue fixed.
TxData.to_map/2now returns hex values for all integers.Utils.maybe_add_gas_limit/2now adds hex gas limit value instead of integer.
- Multicall: aggregate_3 decoder returns
nilin case of failure - Multicall: Feed decoded results through
Utils.human_arg/2
- Checksum address utility functions
- Use zip_reduce for event generators
- Move documentation generators to ContractHelpers
- Display message for empty parameters or return types
Ethers.call/2andEthers.get_logs/2now automatically convert integer block numbers to hex values- Return structs as a result in generated functions and event filter with Inspection protocols implemented for better development experience
- Support dynamically sized indexed event filters (bytes, strings, arrays and structs)
Ethers.call/2now only returns as a list if the return type is either a solidity array or tuple- Add return names in documentations and TxData inspection
- Added an interface for
Multicall3throughEthers.Contracts.Multicall3 - Added
Ethers.Multicallas an abstraction forEthers.Contracts.Multicall3 - Added batching functionality using
Ethers.batch/2
- The generated contract functions no longer call or send transactions, They will only prepare parameters
To execute an explicit call to
Ethers.send/2orEthers.call/2is required - Events no longer accept
addressoverrides. Overriding now happens atEthers.get_logs/2 - Function
Ethers.get_logs/3is now changed toEthers.get_logs/2 - Generated contract modules and EventFilter modules
default_address/0function is now renamed to__default_address__/0to prevent collision - Removal of
Ethers.RPCmodule - Remove
Ethers.Types.dynamically_sized_types/0function Ethers.call/2response is not always a listEthers.deploy/4is now removed and replaced withEthers.deploy/2
- Fix event filters with mixed indexed and non-indexed arguments
- Update
dialyxirdependency to 1.4.0 - Update
ex_docto 0.30.6 - Add more function to
Utilsmodule - Improve failure return values of deployment functions
- Fix RPC options and client override issue
- Do not add
nilto address when address is not present
- Add ENS (Ethereum name service) contracts and helper functions
- Update
ex_docdependency to 0.30.4 - Address
Logger.warndeprecation
- Update
ex_docdependency to 0.30.1 - Update
jasondependency to 1.4.1
- Improved generative documentation for modules
- Improved gas estimation API
- Add gas limit to sending transactions
- Remove redundant gas estimation function
- Fix bitsize check guard to include all available solidity bitsizes
- Include the priv directory in mix releases
First Release