Skip to main content


The @polkadot/api-contract interfaces provide a thin layer on-top of the available API transactions to allow you to manage Substrate contracts in a consistent way.

Since not all Substrate chains have contracts available, we assume that you are connecting to a chain that has the FRAME contracts pallet and that you are using a compatible compiler cargo-contract for ink!, or Solang for Solidity.

The API contracts interfaces transparently handle any encoding and decoding of messages and results using the available ABIs, allowing the developer to work with contract deployments and calls without having to handle encoding themselves.

To get started, follow the getting started journey for installation and use for the Promise-based version for the contracts interfaces.