Borealis Indexer is an events listener for NEAR's on-chain events, based on NEAR Indexer Framework.
Provides publishing (as producer) of CBOR (or JSON, for debugging) encoded messages about on-chain events with streaming messages to the Borealis Bus, NATS based service-oriented bus (MOM/MQ), for other services (as consumers/subscribers).
Provides NATS based Pub/Sub interface for requesting and fetching data about any block, transaction, etc. from NEAR's block-chain. [WIP]
Can be configured and running as NEAR's archival node with access to all blocks from Genesis.
bash ./make.sh [ help/h/? | fmt | check | build | build release | submodules | submodules update | genconf/init | exec | exec_logging | exec_logging_cliout ]
bash ./make.sh fmt
bash ./make.sh check
bash ./make.sh submodules update
bash ./make.sh submodules
bash ./make.sh build release
bash ./make.sh build
./target/debug/borealis-indexer help
./target/debug/borealis-indexer [ check | init | run ] --help
bash ./make.sh [ init | genconf ] [ localnet | devnet | testnet | betanet | mainnet ] ...
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/[ localnet | devnet | testnet | betanet | mainnet ]/ init --chain-id [ localnet | devnet | testnet | betanet | mainnet ] ...
bash ./make.sh exec ...
./target/debug/borealis-indexer ...
Run Indexer with passing subcommands, wrapping Indexer's output and redirection output into log file:
bash ./make.sh exec_logging ...
Run Indexer with passing subcommands, wrapping Indexer's output, redirection output into log file and duplicating output to stdout
:
bash ./make.sh exec_logging_cliout ...
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/localnet/ init --chain-id localnet
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/localnet/ run --root-cert-path ./.nats/seed/root-ca.crt [--client-cert-path ./.nats/seed/client.crt --client-private-key ./.nats/seed/client.key] --creds-path ./.nats/seed/nats.creds --nats-server ["nats://eastcoast.nats.backend.aurora.dev:4222,nats://westcoast.nats.backend.aurora.dev:4222" | "tls://eastcoast.nats.backend.aurora.dev:4222,tls://westcoast.nats.backend.aurora.dev:4222"] --subject "BlockIndex_StreamerMessages_localnet" --msg-format ["CBOR" | "JSON"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/devnet/ init --chain-id devnet
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/devnet/ run --root-cert-path ./.nats/seed/root-ca.crt [--client-cert-path ./.nats/seed/client.crt --client-private-key ./.nats/seed/client.key] --creds-path ./.nats/seed/nats.creds --nats-server ["nats://eastcoast.nats.backend.aurora.dev:4222,nats://westcoast.nats.backend.aurora.dev:4222" | "tls://eastcoast.nats.backend.aurora.dev:4222,tls://westcoast.nats.backend.aurora.dev:4222"] --subject "BlockIndex_StreamerMessages_devnet" --msg-format ["CBOR" | "JSON"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/testnet/ init --chain-id testnet [--boot-nodes "ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567"] [--download-genesis | --download-genesis-url "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/testnet/genesis.json"] [--download-config | --download-config-url "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/testnet/config.json"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/testnet/ run --root-cert-path ./.nats/seed/root-ca.crt [--client-cert-path ./.nats/seed/client.crt --client-private-key ./.nats/seed/client.key] --creds-path ./.nats/seed/nats.creds --nats-server ["nats://eastcoast.nats.backend.aurora.dev:4222,nats://westcoast.nats.backend.aurora.dev:4222" | "tls://eastcoast.nats.backend.aurora.dev:4222,tls://westcoast.nats.backend.aurora.dev:4222"] --subject "BlockIndex_StreamerMessages_testnet" --msg-format ["CBOR" | "JSON"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/betanet/ init --chain-id betanet [--boot-nodes "ed25519:[email protected]:24567,ed25519:[email protected]:24567"] [--download-genesis | --download-genesis-url "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/betanet/genesis.json"] [--download-config | --download-config-url "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/betanet/config.json"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/betanet/ run --root-cert-path ./.nats/seed/root-ca.crt [--client-cert-path ./.nats/seed/client.crt --client-private-key ./.nats/seed/client.key] --creds-path ./.nats/seed/nats.creds --nats-server ["nats://eastcoast.nats.backend.aurora.dev:4222,nats://westcoast.nats.backend.aurora.dev:4222" | "tls://eastcoast.nats.backend.aurora.dev:4222,tls://westcoast.nats.backend.aurora.dev:4222"] --subject "BlockIndex_StreamerMessages_betanet" --msg-format ["CBOR" | "JSON"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/mainnet/ init --chain-id mainnet [--boot-nodes "ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567,ed25519:[email protected]:24567"] [--download-genesis | --download-genesis-url "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/mainnet/genesis.json"] [--download-config | --download-config-url "https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore-deploy/mainnet/config.json"]
./target/debug/borealis-indexer --home-dir ./.borealis-indexer/mainnet/ run --root-cert-path ./.nats/seed/root-ca.crt [--client-cert-path ./.nats/seed/client.crt --client-private-key ./.nats/seed/client.key] --creds-path ./.nats/seed/nats.creds --nats-server ["nats://eastcoast.nats.backend.aurora.dev:4222,nats://westcoast.nats.backend.aurora.dev:4222" | "tls://eastcoast.nats.backend.aurora.dev:4222,tls://westcoast.nats.backend.aurora.dev:4222"] --subject "BlockIndex_StreamerMessages_mainnet" --msg-format ["CBOR" | "JSON"]
./target/debug/borealis-consumer help
./target/debug/borealis-consumer [ check | init | run ] --help
./target/debug/borealis-consumer [ check | init | run ] --root-cert-path ./.nats/seed/root-ca.crt [--client-cert-path ./.nats/seed/client.crt --client-private-key ./.nats/seed/client.key] --creds-path ./.nats/seed/nats.creds --nats-server ["nats://eastcoast.nats.backend.aurora.dev:4222,nats://westcoast.nats.backend.aurora.dev:4222" | "tls://eastcoast.nats.backend.aurora.dev:4222,tls://westcoast.nats.backend.aurora.dev:4222"] --work-mode ["subscriber" | "jetstream"] --subject "BlockIndex_StreamerMessages_mainnet" --msg-format ["CBOR" | "JSON"]