Roman Khimov
1ef91fa409
rpc: encode port numbers as proper numbers in getpeers
...
The way C# node does it.
2021-02-18 17:28:19 +03:00
Roman Khimov
c3b6405f0f
transaction: fix asset type JSONization
...
It's stringy in C#.
2021-02-12 23:02:51 +03:00
Roman Khimov
90a06ed7a5
rpc: fix IsFrozen JSONization for assets
...
C# node uses `frozen` as field name here.
2021-02-12 00:04:13 +03:00
Roman Khimov
26d4a05e57
rpc/client: update GetNEP5Transfers call
2020-09-15 12:46:40 +03:00
Roman Khimov
ebcec6e5dc
Merge pull request #1282 from nspcc-dev/rpc/invoke_with_hashes
...
rpc: use hashes for verifying in `invoke*` calls
2020-08-07 17:00:36 +03:00
Anna Shaleva
4b351f3123
cli: use hashes for verifying in invoke*
calls
2020-08-07 14:41:44 +03:00
Roman Khimov
ab5eff620b
rpc: use lowercase JSON field names for StateHeight
...
Follow neo-project/neo#1808 . Note that this is an incompatible change, but
this feature is still considered to be experimental upstream.
2020-08-05 18:15:29 +03:00
Evgenii Stratonikov
eb37f92881
rpc/client: support verifyproof
RPC
2020-06-25 17:07:23 +03:00
Evgenii Stratonikov
654877fb1b
rpc/client: support getproof
RPC
2020-06-25 17:04:23 +03:00
Evgenii Stratonikov
d8dddabc86
rpc/client: support getstateheight
RPC
2020-06-25 16:19:47 +03:00
Evgenii Stratonikov
b4b0ae0f51
rpc/client: support getstateroot
RPC
2020-06-25 16:19:47 +03:00
Roman Khimov
8cd7bc7e07
rpc/client: deduplicate block/header tests a bit
...
The same data is copied at least three times here.
2020-05-14 17:28:14 +03:00
Roman Khimov
9546e021a9
rpc/block: rework the way Block is JSONized
...
Our block.Block was JSONized in a bit different fashion than result.Block in
its Nonce and NextConsensus fields. It's not good for notifications because
third-party clients would probably expect to see the same format. Also, using
completely different Block representation in result is probably making our
client a bit weaker as this representation is harder to use with other neo-go
components.
So use the same approach we took for Transactions and wrap block.Base which is
to be serialized in proper way.
2020-05-14 17:28:14 +03:00
Roman Khimov
556ab39a5a
rpc/client: add minimalistic websocket client
2020-04-30 22:59:19 +03:00
Anna Shaleva
9c09ad9c89
rpc: fix marshalling of type-specific tx data
...
closes #585
2020-03-30 15:48:50 +03:00
Anna Shaleva
6998c5044b
rpc: add testing infrastructure to RPC client package
...
closes #716
NOTE: RPC client tests contain `serverResponse` json data fetched from examples
published in official C# JSON-RPC API v2.10.3 reference
(see https://docs.neo.org/docs/en-us/reference/rpc/latest-version/api.html )
2020-03-24 16:02:08 +03:00