Solana Wayback Machine Engine
wayback machine provides historical data about solana accounts. get the balances of all your accounts in a certain slot or blocktime.
Built on @solana ☀️
- Wayback Engine is in active development, so all APIs are subject to change.
npm i wayback-engine
User Balance (Signature/Slot/Blocktime)
import { getBalanceAtSignature, ... } from 'wayback-engine'
const balance = await getBalanceAtSignature(connection, address, signature);
const balance = await getBalanceAtBlocktime(connection, address, 1644487905);
const balance = await getBalanceAtSlot(connection, address, 120188217);
Token Balance (Signature/Slot/Blocktime) and With/Without Token Metadata
// Token Balance with Signature
const balance = await getTokenBalanceAtSignature(connection, address, signature);
// Token Balance with Slot and Metadata
const balance = await getTokenBalanceAtSlotWithMetadata(connection, address, 92071481);
All Balances
const accountState = await getBalancesAtSignature(connection, address, signature);
Balance | Token Balance | All Balances | Data Account | |
---|---|---|---|---|
Signature | ✅ | ✅ | ✅ | ❌ |
Blocktime | ✅ | ✅ | ✅ | ❌ |
Slot | ✅ | ✅ | ✅ | ❌ |
Signature with Metadata | ✅ | ✅ | ||
Blocktime with Metadata | ✅ | ✅ | ||
Slot with Metadata | ✅ | ✅ |
Get raw data at certain signature (Data account) https://bpf.wtf/sol-state-history/
Wayback Engine is licensed under Apache 2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Wayback Engine by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.