Near Indexer

Getting the indexer to tun
ulimit -n 2100
git pull
cargo run --release -- --home-dir ~/.near/testnet init --chain-id testnet --download

Get Config.json from

2. Overwrite it in ~/.near/testent

3. Run

cargo run --release -- --home-dir ~/.near/testnet run

Spinning up instance Debian

sudo apt install git-all
sudo apt-get install build-essential
// Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ ssh-keygen -t rsa -b 4096 -C "nate@mintbase.io"
$ cat ~/.ssh/id_rsa.pub
// Pop this into github
$ mkdir ~/.near && mkdir ~/.near/testnet
$ git clone git@github.com:nearprotocol/nearcore.git
$ cd nearcore/tools/indexer/example
$ cargo run --release -- --home-dir ~/.near/testnet init --chain-id testnet --download
// Replace the config.json from
// https://github.com/nearprotocol/nearcore/tree/master/chain/indexer
$ git clone https://github.com/Mintbase/mintbase-near-indexer
$ cd mintbase-near-inder
$ mv config.jon ~/.ssh/testnet/
sudo apt-get install llvm clang librocksdb-dev
sudo apt-get install clang llvm
sudo apt install pkg-config
apt-get install make
sudo apt -y install clang
sudo apt -y install gcc
sudo apt -y install cmake
sudo apt-get install build-essential
sudo apt-get install libxmu-dev libxmu-headers freeglut3-dev libxext-dev libxi-dev