To serve non custodial Bitcoin bridge "Shinobi Gateway", our protocol needs block data of Bitcoin blockchain and Secret Network blockchain to be feeded continuously.
Shuriken Network is an incentive network which transports these block data to Shinobi protocol.
Anyone can participate in Shuriken Network by running Shuriken Node and earn SNB token as a reward.
Shuriken Node watches Bitcoin blockchain and Secret Network blockchain generating new blocks, then submits these data to Shinobi protocol's secret contract and receives SNB reward.
This document describes how to participate in the Shuriken Network Public Beta Test as Shuriken Node. Once your Shuriken Node is running, you will receive Test SNB as a reward.
Shuriken Node feeds the protocol blockchain data by executing Secret Contracts with tx fee, so you will need to prepare some SCRT as tx fee. Create a Secret Network account with some SCRT(10~100 SCRT should be enough for testing) and backup mnemonic seed.
Node.js v16.4.1 and yarn are required to build and run node.
- Clone the repository and build
git clone https://github.com/shinobi-protocol/secret-btc
cd secret-btc/client/shuriken-node
yarn
yarn build
cp .env.example .env
- Edit
.env
of shuriken as following
MNEMONIC=[YOUR MNEMONIC SEED]
SHURIKEN_ADDRESS=secret1crv605udfmkgjwem233f4eyzs2dutftj0lpr4d
Shuriken Node requires bitcoin JSON-RPC API served by Bitcoin Core.
-
To setup Bitcoin Core, see https://github.com/bitcoin/bitcoin/tree/master/doc.
-
To create login credentials for a JSON-RPC user, see https://github.com/bitcoin/bitcoin/tree/master/share/rpcauth.
-
Run bitcoin core on testnet and sync blockchain.
-
Edit
.env
file of shuriken as following
BITCOIN_API_TYPE='rpc'
BITCOIN_RPC_USER=[JSON RPC USER]
BITCOIN_RPC_PASSWORD=[JSON RPC PASSWORD]
Shuriken Node requires SecretNetwork RPC API served by SecretNetwork full node.
To setup SecretNetwork full node, see https://docs.scrt.network/node-guides/run-full-node-mainnet.html.
Figment serves hosted rpc api service, DataHubhttps://datahub.figment.io/. You can use this service instead of running full node.
SECRET_REST_URL=[Your RPC URL]
yarn start
Please join our community and share your feedback!