Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. For implementing and accessing the webdollar node API you can check the following links:
  2. - https://github.com/WebDollar/Node-WebDollar
  3. - https://github.com/WebDollar/Node-WebDollar/wiki/JSON-RPC
  4.  
  5. If you are using PHP, there is also a composer package:
  6. - https://github.com/WebDollar/webdollar-client-php
  7.  
  8. 1: In order for you to access the node API, the JSON API must be enabled when starting the node
  9. a) For docker:
  10. $ 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
  11. b) for plain node
  12. $ 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