UNPKG

1.04 kBMarkdownView Raw
1Ethereum ABI Coder
2==================
3
4This sub-module is part of the [ethers project](https://github.com/ethers-io/ethers.js).
5
6It is responsible for encoding and decoding the Application Binary Interface (ABI)
7used by most smart contracts to interoperate between other smart contracts and clients.
8
9For more information, see the [documentation](https://docs.ethers.io/v5/api/utils/abi/).
10
11Importing
12---------
13
14Most users will prefer to use the [umbrella package](https://www.npmjs.com/package/ethers),
15but for those with more specific needs, individual components can be imported.
16
17```javascript
18const {
19
20 ConstructorFragment,
21 EventFragment,
22 Fragment,
23 FunctionFragment,
24 ParamType,
25 FormatTypes,
26
27 AbiCoder,
28 defaultAbiCoder,
29
30 Interface,
31 Indexed,
32
33 /////////////////////////
34 // Types
35
36 CoerceFunc,
37 JsonFragment,
38 JsonFragmentType,
39
40 Result,
41 checkResultErrors,
42
43 LogDescription,
44 TransactionDescription
45
46} = require("@ethersproject/abi");
47```
48
49License
50-------
51
52MIT License