Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transaction/transactionUtils"

Index

Functions

makeNativeContractTx

  • makeNativeContractTx(funcName: string, params: string, contractAddr: Address, gasPrice?: undefined | string, gasLimit?: undefined | string, payer?: Address): Transaction
  • Creates transaction to invoke native contract

    Parameters

    • funcName: string

      Function name of contract to call

    • params: string

      Parameters serialized in hex string

    • contractAddr: Address

      Adderss of contract

    • Optional gasPrice: undefined | string

      Gas price

    • Optional gasLimit: undefined | string

      Gas limit

    • Optional payer: Address

      Address to pay for transaction gas

    Returns Transaction

Generated using TypeDoc