Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vicyyn/wayback-engine
Solana Wayback Machine Engine
https://github.com/vicyyn/wayback-engine
solana wayback-machine
Last synced: about 3 hours ago
JSON representation
Solana Wayback Machine Engine
- Host: GitHub
- URL: https://github.com/vicyyn/wayback-engine
- Owner: vicyyn
- Created: 2022-09-09T21:56:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-14T20:16:50.000Z (over 2 years ago)
- Last Synced: 2025-01-18T09:52:30.330Z (25 days ago)
- Topics: solana, wayback-machine
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/wayback-machine
- Size: 18.1 MB
- Stars: 17
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
Wayback Engine
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 ☀️
## Note
- **Wayback Engine is in active development, so all APIs are subject to change.**## Installation
```
npm i wayback-engine
```## Usage
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.