#crypto #ethers #ethereum #web3 #celo

ethers-contract

Type-safe abstractions for interacting with Ethereum smart contracts

36 releases (15 stable)

2.0.13 Jan 30, 2024
2.0.11 Nov 16, 2023
2.0.10 Sep 7, 2023
2.0.8 Jul 15, 2023
0.1.3 Jun 20, 2020

#1303 in Magic Beans

Download history 27376/week @ 2023-10-30 28719/week @ 2023-11-06 31611/week @ 2023-11-13 34528/week @ 2023-11-20 43191/week @ 2023-11-27 44373/week @ 2023-12-04 41190/week @ 2023-12-11 39529/week @ 2023-12-18 21575/week @ 2023-12-25 31446/week @ 2024-01-01 45594/week @ 2024-01-08 47395/week @ 2024-01-15 48013/week @ 2024-01-22 77846/week @ 2024-01-29 58496/week @ 2024-02-05 52186/week @ 2024-02-12

238,912 downloads per month
Used in 164 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
~447K SLoC