Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

ABI

1 min read
Pronunciation
[A‑B‑I]
Analogy

ABI is like the API documentation that tells you how to structure requests and parse responses.

Definition
Abbreviation for Application Binary Interface, describing how to encode and decode data for smart contract interaction.
Key Points Intro

ABI essentials include:

Key Points

JSON format: Lists functions, inputs, outputs, and events.

Selector derivation: Keccak256 of signature → first 4 bytes.

Data packing: Fixed‑width 32‑byte slots for arguments.

Event topics: Defines indexed vs. non‑indexed log data.

Example

Truffle generates an ABI file after compiling contracts, used by front‑end DApps to call on‑chain methods.

Technical Deep Dive

During a transaction, calldata = selector + encoded arguments. The EVM dispatcher uses the selector to jump to the correct function. For events, topics[0] = keccak256(event signature), followed by indexed parameter values.

Security Warning

Mismatched ABI and bytecode can break UI integrations silently.

Caveat

ABIs do not include library link references; linking must be handled separately.

ABI - Related Articles

No related articles for this term.