Skip to content

monadicus/rosetta-bitcoin

Repository files navigation

Mentat Bitcoin Rosetta Implementation

Running

Installing from Source

After cloning this repository, run:

make build-local

Run Docker

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.

Configuration

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

Command Examples

You can run these commands from the command line. If you cloned the repository, you can use the make commands shown after the examples.

Running a Container

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

Example Requests

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.

Run in Insomnia

Regtest Node

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published