Skip to main content
Version: v6
Attention!You are viewing unreleased ink! 6 docs. Click here to view the latest docs.

Metadata Title Picture

ink! ABI

The ink! ABI is declared in the contract's manifest file (i.e. the Cargo.toml file) as follows:

[package.metadata.ink-lang]
abi = "ink"

When the ink! ABI is specified, the ink! code generator follows the ink! ABI specification. This means:

  • By default, message selectors are generated according to the ink! ABI specification for selectors.
  • Message selectors can be manually overridden using the selector attribute.
  • Parity's SCALE Codec is used for input/output encoding/decoding.
  • Call builders (used for making cross-contract calls) are generated for ink! ABI calling conventions.