@plugnet/api-contract
v0.90.104
Published
Interfaces for interacting with contracts and contract ABIs
Downloads
12
Readme
@polkadot/api-contract
Interfaces to allow for the encoding and decoding of Substrate contract ABIs.
import { Abi } from '@plugnet/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) => { ... });