What is an ABI and why is it needed to interact with contracts?

  • ABI is referenced in many places including the official Ethereum website. What is an ABI and why is it necessary to use?

  • Afr

    Afr Correct answer

    5 years ago

    ABI stands for application binary interface.

    In general, an ABI is the interface between two program modules, one of which is often at the level of machine code. The interface is the de facto method for encoding/decoding data into/out of the machine code.

    In Ethereum, it's basically how you can encode Solidity contract calls for the EVM and, backwards, how to read the data out of transactions.

License under CC-BY-SA with attribution

Content dated before 7/24/2021 11:53 AM