Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zsluedem/UoIndexer
UserOperation Indexer for EIP4337
https://github.com/zsluedem/UoIndexer
account-abstraction eip4337 ethereum ethers-rs mongodb rocksdb
Last synced: 3 months ago
JSON representation
UserOperation Indexer for EIP4337
- Host: GitHub
- URL: https://github.com/zsluedem/UoIndexer
- Owner: zsluedem
- Created: 2023-04-28T09:12:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-03T01:41:56.000Z (over 1 year ago)
- Last Synced: 2024-05-17T12:31:06.070Z (6 months ago)
- Topics: account-abstraction, eip4337, ethereum, ethers-rs, mongodb, rocksdb
- Language: Rust
- Homepage:
- Size: 106 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-account-abstraction - UoIndexer
README
# UoIndexer
OoIndexer is an [EIP-4337](https://eips.ethereum.org/EIPS/eip-4337) [UserOperation](https://github.com/eth-infinitism/account-abstraction/blob/develop/eip/EIPS/eip-4337.md#definitions) indexer.Currently, UoIndexer is still in **BETA**. Please use it at your own risk.
UoIndexer currently supports two kinds of database storage:
1. [RocksDB](https://rocksdb.org/)
2. [MongoDB](https://www.mongodb.com/)# Supported chain
| ChainName | chain id |
| ------------- | ------------- |
| Ethereum | 1 |
| Goerli | 5 |More chains will be supported later.
# Prerequisites
1. Clang
2. LLVM
3. [rust cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html)# Install
```
cargo install --git https://github.com/zsluedem/UoIndexer
```# How to use it
## Using RocksDB
```
uoindexer --rpc-url https://eth-mainnet.g.alchemy.com/v2/api-key --chain-id 1 rocks-db ./.local/rocksdb
```## Using MongoDB
Assuming you have a MongoDB instance running at localhost:27017:
```
uoindexer --rpc-url https://eth-mainnet.g.alchemy.com/v2/api-key --chain-id 1 mongo-db mongo-db mongodb://root:example@localhost:27017/
```