SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top