Kixunil / btc-rpc-proxy

Finer-grained permission management for bitcoind.
MIT License
63 stars 18 forks source link

Support named parameters #26

Open craigraw opened 1 year ago

craigraw commented 1 year ago

It is legal to call the Bitcoin Core JSON-RPC interface with named parameters, and in fact there are several examples of doing so in the API help.

However, all named parameter (i.e. "params":{}) calls fail with a 500 response code:

> {"jsonrpc":"2.0","method":"getnetworkinfo","params":{},"id":1}
< {"id":null,"error":{"code":-32700,"message":"invalid type: map, expected a sequence at line 1 column 52"},"result":null}
Kixunil commented 1 year ago

Oh, crap, I didn't realize that named parameters issue a different request. Thanks for bringing this up!