@ethersproject/abi
TypeScript icon, indicating that this package has built-in type declarations

5.7.0 • Public • Published

Ethereum ABI Coder

This sub-module is part of the ethers project.

It is responsible for encoding and decoding the Application Binary Interface (ABI) used by most smart contracts to interoperate between other smart contracts and clients.

For more information, see the documentation.

Importing

Most users will prefer to use the umbrella package, but for those with more specific needs, individual components can be imported.

const {

    ConstructorFragment,
    EventFragment,
    Fragment,
    FunctionFragment,
    ParamType,
    FormatTypes,

    AbiCoder,
    defaultAbiCoder,

    Interface,
    Indexed,

    /////////////////////////
    // Types

    CoerceFunc,
    JsonFragment,
    JsonFragmentType,

    Result,
    checkResultErrors,

    LogDescription,
    TransactionDescription

} = require("@ethersproject/abi");

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i @ethersproject/abi

Weekly Downloads

725,612

Version

5.7.0

License

MIT

Unpacked Size

498 kB

Total Files

147

Last publish

Collaborators

  • ricmoo