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

Implements

Properties

market: PublicKey
mint: PublicKey
platformFee: bignum
platformTokenAccount: PublicKey
user: PublicKey

Accessors

Methods

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

    Returns {
        market: string;
        mint: string;
        platformFee: number | {
            toNumber: (() => number);
        };
        platformTokenAccount: string;
        user: string;
    }

    • market: string
    • mint: string
    • platformFee: number | {
          toNumber: (() => number);
      }
    • platformTokenAccount: string
    • user: string
  • Fetches the minimum balance needed to exempt an account holding PlatformFeeLog data from rent

    Parameters

    • connection: Connection

      used to retrieve the rent exemption information

    • Optionalcommitment: 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<{
        market: any;
        mint: any;
        platformFee: any;
        platformTokenAccount: any;
        user: any;
    }>