@cfxlabsinc/b2b-services
    Preparing search index...
    Index
    • On-chain Metaplex metadata for a mint, or null when the metadata account doesn't exist yet.

      setTokenMetadata pivots create-vs-update on this, so the distinction is load-bearing: fetchMaybeMetadataFromSeeds returns exists: false for a missing account but still THROWS on RPC failure. An outage must never read as "no metadata" — a create against existing metadata fails on-chain and burns the fee.

      Parameters

      • __namedParameters: { mint: Address }

      Returns Promise<TokenMetadataValues | null>

    • Get token info from the mintfx program by token ID

      The return type is derived from fetchTokenInfoByTokenId rather than written out: mintfx-client's TokenInfo lives in a bundled internal chunk and is not exported, so declaration emit cannot name it (TS2883) and there is no public specifier to import it from.

      Parameters

      • __namedParameters: { tokenId: string }

      Returns Promise<TokenInfo>

    • Raw getProgramAccounts for the mintfx program. Each account is matched against known mintfx account discriminators; unknown discriminators come back with kind: null.

      Returns Promise<
          {
              address: string;
              dataSize: number;
              lamports: number;
              typeName: string
              | null;
          }[],
      >