2020-02-17 12:01:57 +00:00
|
|
|
/*
|
|
|
|
Package client implements NEO-specific JSON-RPC 2.0 client.
|
|
|
|
This package is currently in alpha and is subject to change.
|
|
|
|
|
|
|
|
Client
|
|
|
|
|
|
|
|
After creating a client instance with or without a ClientConfig
|
|
|
|
you can interact with the NEO blockchain by its exposed methods.
|
|
|
|
|
|
|
|
Some of the methods also allow to pass a verbose bool. This will
|
|
|
|
return a more pretty printed response from the server instead of
|
|
|
|
a raw hex string.
|
|
|
|
|
|
|
|
TODO:
|
|
|
|
Add missing methods to client.
|
|
|
|
Allow client to connect using client cert.
|
|
|
|
More in-depth examples.
|
|
|
|
|
|
|
|
Supported methods
|
|
|
|
|
|
|
|
getaccountstate
|
2020-03-03 17:26:56 +00:00
|
|
|
getblock
|
2020-03-03 15:59:21 +00:00
|
|
|
getclaimable
|
2020-03-05 11:50:06 +00:00
|
|
|
getnep5balances
|
2020-03-05 12:16:03 +00:00
|
|
|
getnep5transfers
|
2020-03-03 17:43:57 +00:00
|
|
|
getrawtransaction
|
2020-02-17 12:01:57 +00:00
|
|
|
getunspents
|
2020-03-03 15:59:21 +00:00
|
|
|
invoke
|
2020-02-17 12:01:57 +00:00
|
|
|
invokefunction
|
2020-03-03 15:59:21 +00:00
|
|
|
invokescript
|
2020-02-17 12:01:57 +00:00
|
|
|
sendrawtransaction
|
|
|
|
|
|
|
|
Unsupported methods
|
|
|
|
|
2020-03-03 15:59:21 +00:00
|
|
|
claimgas
|
|
|
|
dumpprivkey
|
|
|
|
getapplicationlog
|
|
|
|
getassetstate
|
|
|
|
getbalance
|
|
|
|
getbestblockhash
|
|
|
|
getblockcount
|
|
|
|
getblockhash
|
|
|
|
getblockheader
|
2020-02-17 12:01:57 +00:00
|
|
|
getblocksysfee
|
2020-03-03 15:59:21 +00:00
|
|
|
getconnectioncount
|
2020-02-17 12:01:57 +00:00
|
|
|
getcontractstate
|
2020-03-03 15:59:21 +00:00
|
|
|
getmetricblocktimestamp
|
|
|
|
getnewaddress
|
|
|
|
getpeers
|
2020-02-17 12:01:57 +00:00
|
|
|
getrawmempool
|
|
|
|
getstorage
|
2020-03-03 15:59:21 +00:00
|
|
|
gettransactionheight
|
2020-02-17 12:01:57 +00:00
|
|
|
gettxout
|
2020-03-03 15:59:21 +00:00
|
|
|
getunclaimed
|
|
|
|
getunclaimedgas
|
|
|
|
getvalidators
|
2020-02-17 12:01:57 +00:00
|
|
|
getversion
|
2020-03-03 15:59:21 +00:00
|
|
|
getwalletheight
|
|
|
|
importprivkey
|
|
|
|
listaddress
|
|
|
|
listplugins
|
|
|
|
sendfrom
|
|
|
|
sendmany
|
|
|
|
sendtoaddress
|
|
|
|
submitblock
|
|
|
|
validateaddress
|
2020-02-17 12:01:57 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
package client
|