Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getNodes #596

Open
lllwvlvwlll opened this issue Oct 7, 2020 · 3 comments
Open

getNodes #596

lllwvlvwlll opened this issue Oct 7, 2020 · 3 comments
Assignees
Labels
feature an issue representing an entire feature/story

Comments

@lllwvlvwlll
Copy link
Member

This method incorporates support for grabbing a list of public nodes for interfacing. We can consider using the json in monitor.coz.io.

@lllwvlvwlll lllwvlvwlll added the feature an issue representing an entire feature/story label Oct 7, 2020
@kjlevitz
Copy link

Should this just simply return an array of servers? Something along these lines:

  {
    protocol: 'https',
    url: 'explorer.o3node.org',
    location: 'US',
    locale: 'us',
    port: '443',
    type: 'RPC'
  },
  {
    protocol: 'https',
    url: 'rpc1.go.nspcc.ru',
    location: 'Russia',
    locale: 'ru',
    port: '10331',
    type: 'RPC'
  },
  {
    protocol: 'https',
    url: 'rpc2.go.nspcc.ru',
    location: 'Russia',
    locale: 'ru',
    port: '10331',
    type: 'RPC'
  },
  {
    protocol: 'https',
    url: 'rpc3.go.nspcc.ru',
    location: 'Canada',
    locale: 'ca',
    port: '10331',
    type: 'RPC'
  },
  {
    protocol: 'https',
    url: 'rpc4.go.nspcc.ru',
    location: 'US',
    locale: 'us',
    port: '10331',
    type: 'RPC'
  }

Or should it be more advanced and poll for online servers / latency?

@lock9
Copy link

lock9 commented Aug 26, 2022

Hi @ixje , this is an interesting feature. We have to get info from multiple nodes to ensure we are sending our transactions to the correct node. Would it be possible to have something like getNodes, that returns a list, ordered by height & health? (not sure what I mean with health).

@ixje
Copy link
Member

ixje commented Aug 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature an issue representing an entire feature/story
Projects
None yet
Development

No branches or pull requests

4 participants