Curl can't get the Zcash RPC interface


#1

I use this cmd to get the RPC

curl -U rpc2:z123 -H ‘content-type:text/plain;’ http://localhost:8232/ --data-binary ‘{“jsonrpc”:“1.0”,“id”:“1”,“method”:“listtransactions”,“params”:["", 2, 0]}’

the result is

curl: no URL specified!
curl: try ‘curl --help’ or ‘curl --manual’ for more information

who can tell me why? and how to get the RPC interface of zcash ?


#2

OK, I know the answer , i use this cmd and it goes ok!


curl --user userName:passwd -H ‘content-type:text/plain;’ http://XXXX_IP:8332/ --data-binary ‘{“jsonrpc”:“1.0”,“id”:“1”,“method”:“getnewaddress”,“params”:[]}’