Class SmartContractTransactionsFactory

Use this class to create transactions to deploy, call or upgrade a smart contract.

Constructors

Properties

abi?: IAbi
config: Config
dataArgsBuilder: TokenTransfersDataBuilder
tokenComputer: TokenComputer

Methods

  • Parameters

    • options: {
          arguments?: any[];
          bytecode: Uint8Array;
          gasLimit: bigint;
          isPayable?: boolean;
          isPayableBySmartContract?: boolean;
          isReadable?: boolean;
          isUpgradeable?: boolean;
          nativeTransferAmount?: bigint;
          sender: IAddress;
      }
      • Optional arguments?: any[]
      • bytecode: Uint8Array
      • gasLimit: bigint
      • Optional isPayable?: boolean
      • Optional isPayableBySmartContract?: boolean
      • Optional isReadable?: boolean
      • Optional isUpgradeable?: boolean
      • Optional nativeTransferAmount?: bigint
      • sender: IAddress

    Returns Transaction

  • Parameters

    • options: {
          arguments?: any[];
          bytecode: Uint8Array;
          contract: IAddress;
          gasLimit: bigint;
          isPayable?: boolean;
          isPayableBySmartContract?: boolean;
          isReadable?: boolean;
          isUpgradeable?: boolean;
          nativeTransferAmount?: bigint;
          sender: IAddress;
      }
      • Optional arguments?: any[]
      • bytecode: Uint8Array
      • contract: IAddress
      • gasLimit: bigint
      • Optional isPayable?: boolean
      • Optional isPayableBySmartContract?: boolean
      • Optional isReadable?: boolean
      • Optional isUpgradeable?: boolean
      • Optional nativeTransferAmount?: bigint
      • sender: IAddress

    Returns Transaction