Files
api/packages/api-contract
Jaco Greeff d905b4fef3 Split Submittable into actual classes (#1350)
* Split Submittable into actual classes

* *sigh* Fix VSCode's "helpful" imports

* Rename option creation functions

* Extrinsic already has version embedded

* V3
2019-08-29 22:33:57 +02:00
..
2019-08-28 16:13:06 +02:00
2019-08-29 15:09:22 +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) => { ... });