Holds the data for the FreezeEscrow Account and provides de/serialization functionality for that data

Hierarchy

  • FreezeEscrow

Implements

Properties

authority: PublicKey
candyGuard: PublicKey
candyMachine: PublicKey
destination: PublicKey
firstMintTime: COption<bignum>
freezePeriod: bignum
frozenCount: bignum

Methods

  • Returns a readable version of FreezeEscrow properties and can be used to convert to JSON and/or logging

    Returns {
        authority: string;
        candyGuard: string;
        candyMachine: string;
        destination: string;
        firstMintTime: COption<bignum>;
        freezePeriod: number | {
            toNumber: (() => number);
        };
        frozenCount: number | {
            toNumber: (() => number);
        };
    }

    • authority: string
    • candyGuard: string
    • candyMachine: string
    • destination: string
    • firstMintTime: COption<bignum>
    • freezePeriod: number | {
          toNumber: (() => number);
      }
    • frozenCount: number | {
          toNumber: (() => number);
      }
  • Retrieves the account info from the provided address and deserializes the FreezeEscrow from its data.

    Throws

    Error if no account info is found at the address or if deserialization fails

    Parameters

    • connection: Connection
    • address: PublicKey
    • Optional commitmentOrConfig: Commitment | GetAccountInfoConfig

    Returns Promise<FreezeEscrow>

  • Deserializes the FreezeEscrow from the data of the provided web3.AccountInfo.

    Returns

    a tuple of the account data and the offset up to which the buffer was read to obtain it.

    Parameters

    • accountInfo: AccountInfo<Buffer>
    • offset: number = 0

    Returns [FreezeEscrow, number]

  • Fetches the minimum balance needed to exempt an account holding FreezeEscrow data from rent

    Parameters

    • args: FreezeEscrowArgs

      need to be provided since the byte size for this account depends on them

    • connection: Connection

      used to retrieve the rent exemption information

    • Optional commitment: Commitment

    Returns Promise<number>

  • Provides a web3.Connection.getProgramAccounts config builder, to fetch accounts matching filters that can be specified via that builder.

    Parameters

    • programId: PublicKey = ...

      the program that owns the accounts we are filtering

    Returns GpaBuilder<Object>

Generated using TypeDoc