@plugnet/api-contract
TypeScript icon, indicating that this package has built-in type declarations

0.90.104 • Public • Published

@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) => { ... });

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @plugnet/api-contract

    Weekly Downloads

    3

    Version

    0.90.104

    License

    Apache-2.0

    Unpacked Size

    35.2 kB

    Total Files

    23

    Last publish

    Collaborators

    • admincentrality