Claimed Transactions (fetchClaimedPositions)

This method fetches all claimed transactions for a given wallet address.

import { SupportedChainIds } from "@parabolfi/core";
import { ParabolServer } from "@parabolfi/server";
 
const parabolServer = new ParabolServer({
  apiKey: process.env.PARABOL_API_KEY,
});
 
const chain = SupportedChainIds.ZKSYNC;
const walletAddress = "0x...";
const claimed = await parabolServer.fetchClaimedPositions(walletAddress, [
  chain,
]);

Response

{
  "324": [
    {
      "beneficiary": "0x4ea830109b8df82d4e05f1fa7780b27f8f6dc7d7",
      "claimTimestamp": "1732495568",
      "claimTransactionHash": "0x5a1c7b92b7e567bb526970a5386d61c74d8fe40f3235622af11113b8e94bbe7d",
      "fee": "0",
      "initiator": "0x4ea830109b8df82d4e05f1fa7780b27f8f6dc7d7",
      "principal": "1000000000000000000000",
      "tokenId": "1",
      "totalIncome": "33744161336891061328"
    }
  ]
}
  • beneficiary is the wallet address of the beneficiary.
  • claimTimestamp is the timestamp of the claim transaction.
  • claimTransactionHash is the transaction hash of the claim transaction.
  • fee is the fee of the claim transaction.
  • initiator is the wallet address of the initiator.
  • principal is the principal amount of the claim transaction.
  • tokenId is the token ID of the claimed NFT position.
  • totalIncome is the total income of the claimed position.
⚠️

Parabol protocol fee is 0 but the fee field might not be 0 for the integrator’s partner fee. See Parabol Partner Program for more information.