Files
api/packages/api-contract
2019-08-10 12:35:04 +00:00
..
2019-07-31 16:47:12 +02:00
2019-07-31 16:47:12 +02:00
2019-08-10 12:35:04 +00:00
2019-06-19 21:12:16 +02:00

@polkadot/api-contract

Interfaces to allow for the encoding and decoding of Substrate contract ABIs.

import { Abi } from '@polkadot/api-contract';

const abi = new Abi(<...JSON ABI...>);

api.tx.contracts
  .call(<contract addr>, <value>, <max gas>, abi.messages.<method name>(<...params...>))
  .signAndSend(<keyring pair>, (result: SubmittableResult) => { ... });