1 | Ethereum ABI Coder
|
2 | ==================
|
3 |
|
4 | This sub-module is part of the [ethers project](https://github.com/ethers-io/ethers.js).
|
5 |
|
6 | It is responsible for encoding and decoding the Application Binary Interface (ABI)
|
7 | used by most smart contracts to interoperate between other smart contracts and clients.
|
8 |
|
9 | For more information, see the [documentation](https://docs.ethers.io/v5/api/utils/abi/).
|
10 |
|
11 | Importing
|
12 | ---------
|
13 |
|
14 | Most users will prefer to use the [umbrella package](https://www.npmjs.com/package/ethers),
|
15 | but for those with more specific needs, individual components can be imported.
|
16 |
|
17 | ```javascript
|
18 | const {
|
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 |
|
49 | License
|
50 | -------
|
51 |
|
52 | MIT License
|