After cloning this repository, run:
make build-local
Running these commands will start a Docker container in detached mode with a data directory at <working directory>/data
and the Rosetta API accessible at port 8080
.
the file docker.conf.toml contains the settings that the docker image will use. You can control if the node runs in Online
or Offline
mode, as well as if it runs on Mainnet
or Testnet
You can run these commands from the command line. If you cloned the repository, you can use the make
commands shown after the examples.
Uncloned repo:
docker run -d --rm --ulimit "nofile=100000:100000" -v "$(pwd)/data:/data" -p 8080:8080 -p 4132:4132 mentat-rosetta-bitcoin:latest
Cloned repo:
make run
We supply an Insomnia file with example requests for every endpoint. You can find the file here, or if you already have Insomnia installed you can use the button below to automatically import them.
Running this regtest bitcoin example requires docker
and uses docker for the running the node.
This node is setup for you and works out of the box.
Start the rosetta-bitcoin with: cargo run -- regtest.toml
While this is running, you can generate a "wallet_1" with ./regtest/node_bootstrap.sh