Home Bitcoin json rpc – Confusion in testing RPC and curl

json rpc – Confusion in testing RPC and curl

0
json rpc – Confusion in testing RPC and curl

[ad_1]

Please forgive the ignorance of a newbie.

I began a check community (bitcoind -testnet rpcuser=zz)

After I run bitcoin-cli -testnet getbestblockhash, every thing works tremendous and I get the right message, however once I run

curl --user zz --data-binary '{"jsonrpc": "1.0", "id": "curltest", "methodology": "getbestblockhash", "params": []}' -H 'content-type: textual content/plain;' http://127.0.0.1:18332/

And I am unable to get any suggestions.

Can anybody assist me with the explanation for this?

Is curltest crucial to alter “id”:”curltest” when I’m beginning the primary community (bitcoind rpcuser=zz)?

Ought to I comply with the port proven at https://developer.bitcoin.org/reference/rpc/getbestblockhash.html for the run, or ought to it rely upon what I am working on?

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here