UPDATE: I actually was able to fix my own issue, I was connected to the rikby.* networks, which are actual test networks. This was not clear to me form the documentation I looked at. If someone has a similar issue, here you can find URLs of different test networks and hosted mainnet networks: http://docs.augur.net/#getting-started-with-augur-js

I try to play around with Augur.js and display information about all currently open markets. I cloned the augur-node project and run it locally and then use another project where I installed augur.js to connect with it.

When I do augur.markets.getCategories(...) I only get back a couple of categories:

[ { category: 'CRYPTO', popularity: '20' },
  { category: 'agriculture', popularity: '6.0112000000000005' },
  { category: 'crypto', popularity: '0.001' },
  { category: 'science', popularity: '0.00099980003999' },
  { category: 'Augur', popularity: '0' },
  { category: 'climate', popularity: '0' },
  { category: 'finance', popularity: '0' },
  { category: 'housing', popularity: '0' },
  { category: 'medicine', popularity: '0' },
  { category: 'politics', popularity: '0' },
  { category: 'space', popularity: '0' },
  { category: 'sports', popularity: '0' },
  { category: 'temperature', popularity: '0' } ]

When I want to see all the markets inside a catgeory, I also only get back a small fraction of what I can see via tha augur app/ui. For example for "crypto" I only get back 3 markets.

Am I somehow connected to a test universe? Which is the correct hash of the main universe at the moment? Does my augur-node not sync correctly?

up vote 1 down vote accepted

I actually was able to fix my own issue, I was connected to the Rinkeby.* networks, which are actual test networks. This was not clear to me form the documentation I looked at. If someone has a similar issue, here you can find URLs of different test networks and hosted mainnet networks: http://docs.augur.net/#getting-started-with-augur-js.

If you easily want to connect to the real ethereum network and augur node without hostin any nodes yourself just do:

const Augur = require('augur.js');
const augur = new Augur();
const ethereumNode = {
  httpAddresses: [
    "https://megageth.com/ " // hosted http address for Geth node on the Rinkeby test network
  ],
  wsAddresses: [
    "wss://megageth.com/ws" // hosted WebSocket address for Geth node on the Rinkeby test network
  ]
};
const augurNode = "wss://augur.gethstar.com "; // local WebSocket address for an Augur Node
augur.connect({ ethereumNode, augurNode }, function (err, connectionInfo) { ... });

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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