Claiming Fees
Fee types
Phase
Fee Type
Description
Check claimable fees
const response = await fetch("https://api-blowfish.neuko.ai/api/v1/tokens/claims", {
headers: { Authorization: `Bearer ${token}` },
});
const { claims } = await response.json();
for (const claim of claims) {
const total = claim.dbcClaimableFees + claim.lpClaimableFees;
if (total > 0) {
console.log(`${claim.ticker}: ${total} SOL claimable`);
}
}Claim fees for a token
Step 1: Get unsigned transaction
Step 2: Sign the transaction
Step 3: Submit signed transaction
Full example: check and claim all
Notes
Last updated