Class TransactionAbstract

Hierarchy

Constructors

Properties

_transferAmount?: bigint
accountToBeCreated: boolean = false
actions: Action[] = []
receiverId: string
senderId: string

Accessors

Methods

  • Deploy given Wasm file to the account.

    Parameters

    • code: string | Uint8Array | URL | Buffer

      path or data of contract binary. If given an absolute path (such as one created with 'path.join(__dirname, …)') will use it directly. If given a relative path such as res/contract.wasm, will resolve it from the project root (meaning the location of the package.json file).

    Returns Promise<Transaction>

  • Parameters

    • methodName: string
    • args: Uint8Array | Record<string, unknown>
    • __namedParameters: {
          attachedDeposit?: bigint;
          gas?: bigint;
      } = {}
      • Optional attachedDeposit?: bigint
      • Optional gas?: bigint

    Returns Transaction

Generated using TypeDoc