Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 8092

How to get historical account info?

$
0
0

I know there's a Solana JSON RPC getAccountInfo, that allows me to get the current state of an account (e.g., its lamport balance, owner, data size, data, etc...). I'm wondering if I can get the state of an account at a given block? For example, I want to get the lamport balance of an account 24 hours ago.

In Ethereum, this is possible, because multiple Ethereum JSON RPCs support the block parameter. In this way, I can pass in a block number to get the blockchain state of a past time. Is this possible in Solana?


Update: Here's my use case. I want to get all owners of an NFT collection (i.e., Metaplex collection) at a past time.


Viewing all articles
Browse latest Browse all 8092

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>