Running NEAR Lake Indexer
thông tin
NEAR Lake is a blockchain indexer built on top of NEAR Indexer microframework to watch the network and store all the events as JSON files on AWS S3.
How to start
The Lake Indexer setup consists of the following components:
- AWS S3 Bucket as a storage
- NEAR Lake binary that operates as a regular NEAR Protocol peer-to-peer node, so you will operate it as any other Regular/RPC Node in NEAR
Prepare Development Environment
Before you proceed, make sure you have the following software installed:
-
Rust compiler of the version that is mentioned in
rust-toolchain
file in the root of nearcore project. -
Ensure you have AWS Credentials configured From AWS Docs:
For example, the files generated by the AWS CLI for a default profile configured with aws configure looks similar to the following.
~/.aws/credentials
[default]
aws_access_key_id=AKIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Compile NEAR Lake
$ cargo build --release
Configure NEAR Lake
To connect NEAR Lake to the specific chain you need to have necessary configs, you can generate it as follows:
$ ./target/release/near-lake --home ~/.near/testnet init --chain-id testnet --download-config --download-genesis