how to load data for fund balance
anizeani opened this issue · 1 comments
anizeani commented
I’m trying to get the data for the fund balance for a specific ParaId as shown for example here:
https://kusama.subscan.io/crowdloan/2004-6?tab=fund_balance
Reading the api documentation I found those two calls:
- POST /api/scan/parachain/funds
- POST /api/scan/parachain/contributes
I figured, if I use the 2nd call with the specified paraId in the body of my POST, I could get all the contributions and sum them up over time, but I see there are many rows and pages, and I'm not sure that calling so many calls to retrieve all pages would be the right approach..
Does anybody know how to do it?
carlhong commented
If you want the sum of raised balance , you can use /api/scan/parachain/funds.
The second api is for contributions history.