wayback-engine
v0.1.6
Published
Solana Wayback Engine
Readme
wayback machine provides historical data about solana accounts. get the balances of all your accounts in a certain slot or blocktime.
Built on @solana ☀️
Note
- Wayback Engine is in active development, so all APIs are subject to change.
Installation
npm i wayback-engineUsage
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);Features
| | Balance | Token Balance | All Balances | Data Account | |-------------------------|:---------:|:---------------:|:--------------:|:--------------:| | Signature | ✅ | ✅ | ✅ | ❌ | | Blocktime | ✅ | ✅ | ✅ | ❌ | | Slot | ✅ | ✅ | ✅ | ❌ | | Signature with Metadata | | ✅ | ✅ | | | Blocktime with Metadata | | ✅ | ✅ | | | Slot with Metadata | | ✅ | ✅ | |
Todo
Get raw data at certain signature (Data account) https://bpf.wtf/sol-state-history/
License
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.
