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

Implements

Properties

market: PublicKey
mint: PublicKey
referrerFee: bignum
referrerTokenAccount: PublicKey
user: PublicKey

Accessors

Methods

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

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

    • market: string
    • mint: string
    • referrerFee: number | {
          toNumber: (() => number);
      }
    • referrerTokenAccount: string
    • user: string
  • Fetches the minimum balance needed to exempt an account holding ReferrerFeeLog 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;
        referrerFee: any;
        referrerTokenAccount: any;
        user: any;
    }>