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:
|
|
|
|
Allow client to connect using client cert.
|
|
|
|
More in-depth examples.
|
|
|
|
|
|
|
|
Supported methods
|
|
|
|
|
2021-09-08 10:02:14 +00:00
|
|
|
calculatenetworkfee
|
2020-03-11 14:14:05 +00:00
|
|
|
getapplicationlog
|
|
|
|
getbestblockhash
|
2020-03-03 17:26:56 +00:00
|
|
|
getblock
|
2020-03-11 14:14:05 +00:00
|
|
|
getblockcount
|
|
|
|
getblockhash
|
|
|
|
getblockheader
|
2021-09-08 10:02:14 +00:00
|
|
|
getblockheadercount
|
|
|
|
getcommittee
|
2020-03-11 14:14:05 +00:00
|
|
|
getconnectioncount
|
|
|
|
getcontractstate
|
2021-09-08 10:02:14 +00:00
|
|
|
getnativecontracts
|
2020-11-24 08:14:25 +00:00
|
|
|
getnep17balances
|
|
|
|
getnep17transfers
|
2020-03-11 14:14:05 +00:00
|
|
|
getpeers
|
|
|
|
getrawmempool
|
2020-03-03 17:43:57 +00:00
|
|
|
getrawtransaction
|
2021-09-08 10:02:14 +00:00
|
|
|
getstateheight
|
2020-03-11 14:14:05 +00:00
|
|
|
getstorage
|
|
|
|
gettransactionheight
|
2020-06-01 20:27:03 +00:00
|
|
|
getunclaimedgas
|
2021-09-08 10:02:14 +00:00
|
|
|
getnextblockvalidators
|
2020-03-11 14:14:05 +00:00
|
|
|
getversion
|
2020-02-17 12:01:57 +00:00
|
|
|
invokefunction
|
2020-03-03 15:59:21 +00:00
|
|
|
invokescript
|
2021-09-08 10:02:14 +00:00
|
|
|
invokecontractverify
|
2020-02-17 12:01:57 +00:00
|
|
|
sendrawtransaction
|
2020-03-11 14:14:05 +00:00
|
|
|
submitblock
|
2021-09-08 10:02:14 +00:00
|
|
|
submitoracleresponse
|
2020-03-11 14:14:05 +00:00
|
|
|
validateaddress
|
2020-02-17 12:01:57 +00:00
|
|
|
|
2021-09-08 10:02:14 +00:00
|
|
|
Extensions:
|
|
|
|
|
|
|
|
getblocksysfee
|
|
|
|
submitnotaryrequest
|
|
|
|
|
2020-02-17 12:01:57 +00:00
|
|
|
Unsupported methods
|
|
|
|
|
2020-03-03 15:59:21 +00:00
|
|
|
claimgas
|
|
|
|
dumpprivkey
|
|
|
|
getbalance
|
|
|
|
getmetricblocktimestamp
|
|
|
|
getnewaddress
|
|
|
|
getwalletheight
|
|
|
|
importprivkey
|
|
|
|
listaddress
|
|
|
|
listplugins
|
|
|
|
sendfrom
|
|
|
|
sendmany
|
|
|
|
sendtoaddress
|
2020-02-17 12:01:57 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
package client
|