Hierarchy

  • HighloadWalletContractV2

Implements

  • Contract

Constructors

Properties

address: Address
init: {
    code: Cell;
    data: Cell;
}

Type declaration

  • code: Cell
  • data: Cell
publicKey: Buffer
walletId: number
workchain: number

Methods

  • Create NFT transfer body

    Parameters

    • args: {
          forwardAmount?: string;
          forwardPayload?: string;
          responseAddress: string;
          toAddress: string;
      }
      • Optional forwardAmount?: string
      • Optional forwardPayload?: string
      • responseAddress: string
      • toAddress: string

    Returns Cell

  • Create token transfer body

    Parameters

    • args: {
          forwardAmount?: string;
          forwardPayload?: string;
          jettonAmount: string;
          responseAddress: string;
          toAddress: string;
      }
      • Optional forwardAmount?: string
      • Optional forwardPayload?: string
      • jettonAmount: string
      • responseAddress: string
      • toAddress: string

    Returns Cell

  • Create transfer

    Parameters

    • args: {
          messages: MessageRelaxed[];
          secretKey: Buffer;
          sendMode?: Maybe<SendMode>;
          timeout?: Maybe<number>;
      }
      • messages: MessageRelaxed[]
      • secretKey: Buffer
      • Optional sendMode?: Maybe<SendMode>
      • Optional timeout?: Maybe<number>

    Returns {
        body: Cell;
        queryId: bigint;
    }

    • body: Cell
    • queryId: bigint
  • Get wallet balance

    Parameters

    • provider: ContractProvider

    Returns Promise<bigint>

  • Get tx status

    Parameters

    • provider: ContractProvider
    • queryId: bigint

    Returns Promise<boolean>

  • Get wallet public key

    Parameters

    • provider: ContractProvider

    Returns Promise<string>

  • Send signed transfer

    Parameters

    • provider: ContractProvider
    • message: Cell

    Returns Promise<void>

  • Sign and send transfer

    Parameters

    • provider: ContractProvider
    • args: {
          messages: MessageRelaxed[];
          secretKey: Buffer;
          sendMode?: Maybe<SendMode>;
          timeout?: Maybe<number>;
      }
      • messages: MessageRelaxed[]
      • secretKey: Buffer
      • Optional sendMode?: Maybe<SendMode>
      • Optional timeout?: Maybe<number>

    Returns Promise<bigint>

  • Create sender

    Parameters

    • provider: ContractProvider
    • secretKey: Buffer

    Returns Sender

  • Generate query id

    Parameters

    • timeout: number
    • Optional randomId: number
      Optional

    Returns bigint

Generated using TypeDoc