# Replace <api-key> with your Helius API key# Replace SYSTEM_PROGRAM_ID with the address you want to querycurl https://mainnet.helius-rpc.com/?api-key=<api-key> -X POST -H "Content-Type: application/json" -d \ '{ "jsonrpc": "2.0", "id": 1, "method": "getSignaturesForAddress", "params": [ "11111111111111111111111111111111" ] }'
# Initial request (get the latest 2)# Replace <api-key> with your Helius API key# Replace TARGET_ACCOUNT_ADDRESS with the address you want to querycurl https://mainnet.helius-rpc.com/?api-key=<api-key> -X POST -H "Content-Type: application/json" -d \ '{ "jsonrpc": "2.0", "id": 1, "method": "getSignaturesForAddress", "params": [ "TARGET_ACCOUNT_ADDRESS", { "limit": 2 } ] }'# Suppose the last signature from the above response was LAST_SIGNATURE_FROM_PREVIOUS_BATCH# Fetch the next 2 transactions before that onecurl https://mainnet.helius-rpc.com/?api-key=<api-key> -X POST -H "Content-Type: application/json" -d \ '{ "jsonrpc": "2.0", "id": 1, "method": "getSignaturesForAddress", "params": [ "TARGET_ACCOUNT_ADDRESS", { "limit": 2, "before": "LAST_SIGNATURE_FROM_PREVIOUS_BATCH" } ] }'