Class TransactionAbstract

Hierarchy

Constructors

Properties

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

Accessors

Methods

  • Deploy given Wasm file to the account.

    Parameters

    • code: string | Uint8Array | Buffer | URL

      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?: string | BN;
          gas?: string | BN;
      } = {}
      • Optional attachedDeposit?: string | BN
      • Optional gas?: string | BN

    Returns Transaction

Generated using TypeDoc