| Crates.io | ns-indexer |
| lib.rs | ns-indexer |
| version | 0.6.0 |
| created_at | 2023-12-23 03:23:42.517884+00 |
| updated_at | 2024-01-14 10:33:52.555985+00 |
| description | Name & Service Protocol indexer service in Rust |
| homepage | |
| repository | https://github.com/ldclabs/ns-rs/tree/main/crates/ns-indexer |
| max_upload_size | |
| id | 1078820 |
| size | 225,226 |
More information about the protocol can be found in the protocol documentation
txindex option enabled, don't need wallet. For example, run a regtest node:bitcoind -regtest -txindex -rpcuser=test -rpcpassword=123456 -fallbackfee=0.00001
sudo mkdir -p /mnt/scylla/data /mnt/scylla/commitlog /mnt/scylla/hints /mnt/scylla/view_hints
sudo docker run --restart=always --name scylla -d -p 9042:9042 --volume /mnt/scylla:/var/lib/scylla scylladb/scylla:5.2 --smp 1 --memory 2G --developer-mode 0
And then import the CQL schema https://github.com/ldclabs/ns-rs/tree/main/crates/ns-indexer/cql
Build:
cargo build --package ns-indexer --bin ns-indexer
Create .env file from sample and edit it:
cp ./crates/ns-indexer/sample.env .env
Run:
./target/debug/ns-indexer
Cross compile for linux:
cargo build --release --target x86_64-unknown-linux-musl --package ns-indexer --bin ns-indexer
https://github.com/ldclabs/ns-rs/pkgs/container/ns-indexer
Here is the API documentation generated by Insomnia.
The mime type of the request and response in documentation is application/json, but the real mime type is application/cbor.