worldtree-xx-docker
This builds an xx network capable world-tree service into a docker image.
The configuration should work if you have a local RPC set up at
http://localhost:31080
. If not, edit the worldtree_config.toml
file to modify the RPC endpoint.
You can start it with:
docker run -d -p32080:8080 -v /zfspool/docker-volumes/worldtree-xx-demo:/data --name worldtree-xx-demo carback1/worldtree-xx-demo:v0.0.1
After it syncs (5-20 minutes). You should be able to query it with curl as follows:
curl -X POST http://localhost:32080/inclusionProof -H "Content-Type: application/json" -d '{ "identityCommitment": "0x3017972D13A39795AD0D1C3A670D3D36A399B4435E61A510C2D57713D4F5C3DE" }'
You can run the same command with the xxclient as follows:
You will need the xx cMix Server ID and Public Key to run this command. You can get them from the logs: