#ethereum #ethers #crypto #celo #smart-contracts #web3

ethers-contract

Type-safe abstractions for interacting with Ethereum smart contracts

37 releases (16 stable)

2.0.14 Mar 6, 2024
2.0.11 Nov 16, 2023
2.0.8 Jul 15, 2023
2.0.2 Mar 28, 2023
0.1.3 Jun 20, 2020

#736 in Magic Beans

Download history 22211/week @ 2023-12-23 29617/week @ 2023-12-30 43679/week @ 2024-01-06 47346/week @ 2024-01-13 47894/week @ 2024-01-20 75488/week @ 2024-01-27 58660/week @ 2024-02-03 54586/week @ 2024-02-10 48658/week @ 2024-02-17 49692/week @ 2024-02-24 51705/week @ 2024-03-02 60580/week @ 2024-03-09 59045/week @ 2024-03-16 54718/week @ 2024-03-23 46094/week @ 2024-03-30 38229/week @ 2024-04-06

208,698 downloads per month
Used in 186 crates (19 directly)

MIT/Apache

1MB
24K SLoC

ethers-contract

Type-safe abstractions for interacting with Ethereum smart contracts.

Warning

This library is in the process of being deprecated. See #2667 for more information.

Interacting with a smart contract requires broadcasting carefully crafted transactions where the data field contains the function's selector along with the arguments of the called function.

This module provides the Contract and ContractFactory abstractions so that you do not have to worry about that. It also provides typesafe bindings via the abigen macro and the Abigen builder.

For more information, please refer to the book.

Dependencies

~11–29MB
~444K SLoC