Claim History

In this guide, you’ll learn how to view all claim transactions made by your customers. You don't need to call smart contract to retrieve this data. Stakefish API is more than enough.

List Wallet Claims

To view all claims made by a specific wallet, you can use the following API endpoint:

curl -X "https://api.testnet.stake.fish/v1/eth/oracle/wallet/WALLET_ADDRESS/pool/FEE_POOL_ADDRESS/claims"

Parameters:

  • WALLET_ADDRESS: Replace this with customer's wallet address.
  • FEE_POOL_ADDRESS: Replace this with your fee pool address.

This API will return list of claims made by the specified wallet for a given fee pool.

Example Response:

After sending the GET request, you’ll receive a response similar to the following:

{
  "totalItems": 1,
  "results": [
    {
      "blockNumber": 2275037,
      "txHash": "0xd60358377087084ea8535ae932cf1a38e7487b5817ede322429d9877c91ab193",
      "blockTimestamp": 1725536628,
      "depositor": "0xd5e73f9199E67b6Ff8DFACE1767A1BDAdf1A7242",
      "beneficiary": "0xd5e73f9199E67b6Ff8DFACE1767A1BDAdf1A7242",
      "reward": "896201695198389",
      "requester": "0xd5e73f9199E67b6Ff8DFACE1767A1BDAdf1A7242",
      "feePoolContract": "0xe876FF5DAe83cd04484Dd7d590b06E28Ac31F248"
    }
  ]
}

For more detailed information refer to the full API Documentation.