Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

JSON RPC API Functionality #189

Closed
26 of 28 tasks
metachris opened this issue Jan 23, 2018 · 9 comments
Closed
26 of 28 tasks

JSON RPC API Functionality #189

metachris opened this issue Jan 23, 2018 · 9 comments
Labels
HACKIT Hackable Issue for Hackathons

Comments

@metachris
Copy link
Contributor

metachris commented Jan 23, 2018

Work in progress, now already in dev. See also #273 for tracking issues.

Links:

Initial calls:

  • getaccountstate
  • getbestblockhash
  • getblockcount
  • getblockhash
  • getblocksysfee
  • getconnectioncount
  • getrawmempool
  • getpeers
  • getrawtransaction
  • getstorage
  • getversion
  • sendrawtransaction
  • validateaddress
  • invoke
  • invokefunction
  • invokescript
  • getassetstate
  • getblock (int)
  • getblock (hash)
  • gettxout (the C# side is broken #156)
  • getcontractstate (TODO: can't successfully run this call against the live nodes)
  • getbalance
  • getnewaddress

Additional calls

  • listaddress (more info)
  • getapplicationlog (more info)
  • dumpprivkey
  • sendtoaddress
  • sendmany

See also:

@ixje
Copy link
Member

ixje commented Jan 25, 2018

fyi; I'm working on gettxout, but the C# side is broken #156

@metachris
Copy link
Contributor Author

added 2 new calls to the list:

@ixje
Copy link
Member

ixje commented Jan 28, 2018

The list can be updated as follows:

initial calls

  • check getstorage

Implemented, but giving different results from neo-cli

  • getassetstate and getblock are done and can be moved to the top list and checked.

Problems

  • gettxout can be moved to initial and checked
  • getcontractstate is implemented, but I can't validate it against the C# node as their examples are not working. I tried running the RPX contract hash (that we use in our tests) against the C# RPC call but it still throws "Unknown contract". Should investigate more

Additional calls
the following can be checked as implemented
invoke
invokescript
invokefunction
validateaddress

@metachris
Copy link
Contributor Author

Updated the list. Should we keep this issue open as a reminder what we could do?

@metachris metachris changed the title JSON RPC API JSON RPC API Functionality Feb 28, 2018
@localhuman localhuman added the HACKIT Hackable Issue for Hackathons label Mar 16, 2018
@dethos dethos mentioned this issue Mar 29, 2018
5 tasks
@dethos
Copy link
Contributor

dethos commented Jun 11, 2018

@metachris I think we can update the issue checklist. getpeers and listaddress were implemented since the last update.

@metachris
Copy link
Contributor Author

Thanks, done

@dethos
Copy link
Contributor

dethos commented Oct 26, 2018

@metachris perhaps we could update the checklist again. From the unchecked items, sendtoaddress and sendmany were already added.

@dethos
Copy link
Contributor

dethos commented Nov 9, 2018

getapplicationlog seems to no longer exist on version 2.9.0 of neo-cli documentation. Perhaps it should be removed from the list, no?

@ixje
Copy link
Member

ixje commented Dec 12, 2018

deviations from the NEO JSON api are generally reported in separate issues by users. I don't think this post has any use anymore.

@ixje ixje closed this as completed Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
HACKIT Hackable Issue for Hackathons
Projects
None yet
Development

No branches or pull requests

4 participants