Launch your nervos local node
To use the sdk you will need a running node in the network you want to use it. If you already have one running you can safely skip this step.
Launch your node using Docker
We recommend using docker to run your node as it is an easy and fast way to configure it.
To create the rpc and the indexer at the same time there is an image in docker that does both at the same time. The code to launch a mainnet and testnet node in local is the following:
Launch a mainnet node rpc and indexer:
Launch a testnet node rpc and indexer:
To check whether your rpc is correctly running you can do:
To check if the indexer is also up query it with:
This documentation can be seen in the following url:
Launching your node without Docker
If you want to launch your node without Docker we recommend following nervos official docs on how to set up your node:
Last updated