Skip to content

Commit 5dbeb4b

Browse files
fariedtdiwakergupta
authored andcommitted
docs: describe how to run stx-rosetta.Dockerfile for testnet and mocknet
1 parent 99e242d commit 5dbeb4b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README-rosetta.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ Build and run the `stx-rosetta.Dockerfile` image:
44

55
docker build -t stx-rosetta:stable -f stx-rosetta.Dockerfile .
66
docker run -d -p 3999:3999 --mount source=rosetta-data,target=/data \
7-
--name stx-rosetta stx-rosetta:stable mocknet
7+
--name stx-rosetta stx-rosetta:stable
88

9-
Leave out the *mocknet* argument to connect with the testnet.
9+
By default, this will connect to the testnet. To run a local node, run
10+
11+
12+
docker run -d -p 3999:3999 --mount source=rosetta-data,target=/data \
13+
--name stx-rosetta -e STACKS_NETWORK=mocknet stx-rosetta:stable
1014

1115
Use a recent version of [rosetta-cli](https://github.com/coinbase/rosetta-cli) to test the endpoints:
1216

0 commit comments

Comments
 (0)