Skip to content

Instantly share code, notes, and snippets.

@corck
Created July 16, 2018 15:04
Show Gist options
  • Select an option

  • Save corck/b947b7c6d523596005e22882b23f9ee6 to your computer and use it in GitHub Desktop.

Select an option

Save corck/b947b7c6d523596005e22882b23f9ee6 to your computer and use it in GitHub Desktop.

Revisions

  1. corck created this gist Jul 16, 2018.
    8 changes: 8 additions & 0 deletions neon-js-rpc-call
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    let url = "http://neo-privnet:30333";
    const client = Neon.create.rpcClient(url, '2.3.2');
    let id = this.get('model').id;
    console.log(id);
    client.getRawTransaction(id)
    .then((res) => {
    console.log(res)
    })