Hierarchy

  • HighloadWalletContract

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>;
          seqno: number;
          timeout?: Maybe<number>;
      }
      • messages: MessageRelaxed[]
      • secretKey: Buffer
      • Optional sendMode?: Maybe<SendMode>
      • seqno: number
      • Optional timeout?: Maybe<number>

    Returns Cell

  • Get wallet balance

    Parameters

    • provider: ContractProvider

    Returns Promise<bigint>

  • Get wallet public key

    Parameters

    • provider: ContractProvider

    Returns Promise<string>

  • Get wallet seqno

    Parameters

    • provider: ContractProvider

    Returns Promise<number>

  • 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>;
          seqno: number;
          timeout?: Maybe<number>;
      }
      • messages: MessageRelaxed[]
      • secretKey: Buffer
      • Optional sendMode?: Maybe<SendMode>
      • seqno: number
      • Optional timeout?: Maybe<number>

    Returns Promise<void>

  • Create sender

    Parameters

    • provider: ContractProvider
    • secretKey: Buffer

    Returns Sender

Generated using TypeDoc