@tributary-so/sdk
    Preparing search index...

    Function balanceCheck

    • Assert that an SPL token account's amount field satisfies threshold op.

      Wraps lighthouse.tokenAccount(target).amount(threshold, op).build() → lighthouseValidation. Pure function — no I/O.

      Parameters

      • args: {
            op: IntOpString | IntegerOperator;
            target: PublicKey;
            threshold: number | bigint;
        }

      Returns {
          init: {
              numPinnedAccounts: number;
              pinnedAccounts: { index: number; pubkey: PublicKey }[];
              validationData: Buffer;
          };
          spec: DecodeEnum;
      }

      balanceCheck({ target: hotWalletAta, threshold: 50_000_000, op: "<" })