1
import Augur from 'augur.js';

const augur = new Augur()
const ethereumNode = { 
  httpAddresses: [
    // "http://127.0.0.1:8545", // local HTTP address for Geth node
    "https://rinkeby.augur.net/ethereum-http" // hosted http address for Geth node on the Rinkeby test network
  ],
  wsAddresses: [
    // "ws://127.0.0.1:8546", // local WebSocket address for Geth node
    "wss://rinkeby.augur.net/ethereum-ws" // hosted WebSocket address for Geth node on the Rinkeby test network
  ]
};
var augurNode = "wss://rinkeby.augur.net/augur-node "; // hosted WebSocket address for an Augur Node
augur.connect({ ethereumNode, augurNode }, function (err, connectionInfo) { 
    if(err) console.log(err);
    console.log(connectionInfo)
});

If I run this code it returns:

WebSocket connection to 'wss://rinkeby.augur.net/augur-node' failed: Error during WebSocket handshake: Unexpected response code: 404

Anyone know if the Rinkeby node is down or if there is another rinkeby augur node that I can run?

1

Apparently to connect to a test-net Augur WS node you need to run a local Augur node, this was pretty unclear to me. Just follow the steps described in the following README: [https://github.com/AugurProject/augur-node#augur-node][1]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.