• Fetches the SPL Transfer history for a given wallet address.

    Parameters

    • rpcUrl: string

      The URL of the Solana RPC endpoint.

    • accountAddress: string

      The public key of the account to fetch the transfer history for.

    • limit: number = 100

      The maximum number of transactions to fetch. Defaults to 100.

    • Optional beforeSignature: string

      Fetch transactions before this signature.

    Returns Promise<ConfirmedSignatureInfo[]>

    An array of ConfirmedSignatureInfo for SPL transfer transactions.

    Example

    const rpcUrl = 'https://api.mainnet-beta.solana.com';
    const accountAddress = 'TokenAccountAddress';

    const transfers = await getSPLTransferHistory(rpcUrl, accountAddress);
    console.log(transfers);

Generated using TypeDoc