Update JSON_RPC.md to mention regtest mode (#45)

Co-Authored-By: Deirdre Connolly <durumcrustulum@gmail.com>
This commit is contained in:
Za Wilcox 2019-06-23 10:54:01 -06:00 committed by Deirdre Connolly
parent de50f2dbfa
commit 62211a4e77
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# JSON-RPC
The JSON-RPC interface is served on port :8232 for mainnet and :18232 for testnet unless you specified otherwise. So if you are using testnet, you will need to change the port in the sample curl requests shown below.
The JSON-RPC interface is served on port :8232 for mainnet, and :18232 for testnet and regtest mode, unless you specified otherwise. So if you are using testnet or regtest, you will need to change the port in the sample curl requests shown below.
### Network
@ -119,4 +119,4 @@ Create a transaction spending the given inputs and creating new outputs.
Adds transaction to the memory pool && relays it to the peers.
curl -H 'content-type: application/json' --data-binary '{"jsonrpc": "2.0", "method": "sendrawtransaction", "params": ["01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000"], "id":1 }' localhost:8232
curl -H 'content-type: application/json' --data-binary '{"jsonrpc": "2.0", "method": "sendrawtransaction", "params": ["01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000"], "id":1 }' localhost:8232