Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ContractApi

Contract API

This module provides methods about the smart contracts

Hierarchy

  • ContractApi

Index

Properties

callContractMethod

callContractMethod: function

Calls a public method of smart contract

param

The argument object

returns

The transaction id in case of success

Type declaration

getAllContractIds

getAllContractIds: function

Get all contract Ids of the blockchain

returns

The list of contract ids

Type declaration

getContract

getContract: function

Get a contract by its Id

param

The ID of the contract

returns

The contract

Type declaration

    • Parameters

      • id: string

      Returns Promise<Contract>

getContractsByAccount

getContractsByAccount: function

Get all contracts of given account

param

The account id (not RS address)

returns

A list of contracts

Type declaration

publishContract

publishContract: function

Publishes a smart contract to the blockchain

param

The argument object

returns

The transaction id in case of success

Type declaration