Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For implementing and accessing the webdollar node API you can check the following links:
- - https://github.com/WebDollar/Node-WebDollar
- - https://github.com/WebDollar/Node-WebDollar/wiki/JSON-RPC
- If you are using PHP, there is also a composer package:
- - https://github.com/WebDollar/webdollar-client-php
- 1: In order for you to access the node API, the JSON API must be enabled when starting the node
- a) For docker:
- $ docker run -d --restart=always -v {HOST_PATH_blockchain}:/blockchainDB3 -v {HOST_PATH_wallet}:/defaultDB2 -e NOSSL=true -e SERVER_PORT=xxxx -e JSON_RPC_SERVER_PORT=yyyy -e JSON_RPC_SERVER_HOST=0.0.0.0 -e JSON_RPC_BASIC_AUTH_ENABLE=true -e JSON_RPC_BASIC_AUTH_USER=test -e JSON_RPC_BASIC_AUTH_PASS=test --name webdollar -p 80:xxxx -p 3333:yyyy webdollar/node
- b) for plain node
- $ SERVER_PORT=xxxx JSON_RPC_SERVER_PORT=yyyy JSON_RPC_SERVER_HOST=0.0.0.0 JSON_RPC_BASIC_AUTH_ENABLE=true JSON_RPC_BASIC_AUTH_USER=test JSON_RPC_BASIC_AUTH_PASS=test npm run start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement