3

I'm looking a way to get the account tranfers for an specific day.

Is this possible?

1 Answer 1

3

there is not really an API but you can build one yourself pretty easily and for free.

If you look at the chart in https://faucet.solana.com/monitor, you can see that there are daily points for the Solana accounts balance that we track.

This is how it's done behind the scenes: https://github.com/solana-developers/solana-devnet-faucet/blob/main/pages/api/monitorfaucet.ts

Basically you have an API endpoint that fetches the balance and stores it into a database, which can be hosted on the Vercel free tier.

Then, just run a Vercel cron job or a free Uptimerobot trigger onto that API route once a day.

Let me know if you have any questions regarding that.

If you are looking to fetch the actual transaction signatures that have happened during a certain time interval, use the getSignaturesForAddress RPC method, by specifying a before and an until timestamp that fits that day. Here's the documentation for that RPC method: https://www.quicknode.com/docs/solana/getSignaturesForAddress

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.