CityOfZion / neon-js

Javascript libraries that allow the applications to interact with NEO blockchain
https://docs.coz.io/neo3/neon-js/index.html
MIT License
183 stars 166 forks source link

Support object parameter for Query #805

Closed devhawk closed 2 years ago

devhawk commented 2 years ago

The JSON-RPC methods exposed by NeoFura use a JSON object instead of array for parameters. It would be nice if the JSON-RPC layer of neon-js supported this style of parameter passing

Example GetContractListByName

{
  "jsonrpc": "2.0",
  "method": "GetContractListByName",
  "params": { "Name": "PriceFeedService" },
  "id": 1
}