HUB
Sign inSign up

rsksmart/powpeg-node

By rsksmart

•Updated 10 days ago

Official image for powpeg node containers

Image
0

3.9K

rsksmart/powpeg-node repository overview

⁠Using this image

To run this image you need to provide a proper configuration file by mounting it like so:

docker run -p 5050:5050 -v /path/to/my/custom/node.conf:/etc/rsk/node.conf rsksmart/powpeg-node:latest  

Keep in mind that RSK's blockchain is stored locally in the container. If you want to save it to a permanent storage, you can use a volume mount while starting the container:

docker run -p 5050:5050 -v /path/to/my/storage:/var/lib/rsk rsksmart/powpeg-node:latest  

In order to interact with the node's JSON-RPC endpoint, you'll need to expose it to the host:

docker run -p 5050:5050 -p 127.0.0.1:4444:4444 rsksmart/powpeg-node:latest  

Then, you could, for example, query the current block number with

curl -H "Content-type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","id":1}' http://127.0.0.1:4444/  
Tag summary
Recent tags
Content type
Image
Digest
sha256:887d67d28…
Size
203.9 MB
Last updated
10 days ago
docker pull rsksmart/powpeg-node:latest