⚠️ Internal: This API is not publically exported by the package.

Simple type for transaction clause.

interface TransactionClause {
    abi?: string;
    comment?: string;
    data: string;
    to: string;
    value: string | number;
}

Properties

abi?: string

Optional ABI for the contract method invocation.

comment?: string

Optional comment for the clause, helpful for displaying what the clause is doing.

data: string

Input data for contract method invocation or deployment

to: string

Destination address where:

  • transfer token to or
  • invoke contract method on.

Note

Set null destination to deploy a contract.

value: string | number

Amount of token to transfer to the destination