Guide to Curl to Syscoind or Syscoin-QT

Syscoin-qt can be set up to act as daemon.  The syscoin.conf configuration below is needed to do so

testnet=1
rpcuser=u
rpcpassword=p
rpcport=1234
server=1


A sample curl call can then be called from command line as below

 ~ > curl -H '{"content-type": "application/json"}' --data-binary '{"method": "getinfo", "params": [], "jsonrpc": "2.0"}' http://u:p@127.0.0.1:1234
{"result":{"version":"3.0.0.0","dashversion":"0.12.3","protocolversion":70217,"walletversion":120200,"balance":100.00000000,"privatesend_balance":0.00000000,"blocks":1151,"timeoffset":0,"connections":8,"proxy":"","difficulty":0.008554987152180735,"testnet":true,"keypoololdest":1524071524,"keypoolsize":2000,"paytxfee":0.00000000,"relayfee":0.00001000,"errors":""},"error":null,"id":null}


If the RPC command has multiple parameter, they'll go in the params array