developer-guides: wallet-rpc: fix validate_address example

The example for the validate_address wallet-rpc call is incorrect.
Parameter values for any_net_type and allow_openalias are shown as
string values instead of boolean. Also, the param object is
incorrectly being set with an equals sign but it should be a colon.
This commit is contained in:
reemuru 2021-09-25 17:11:54 -05:00
parent b2775d5316
commit a4980848c9
No known key found for this signature in database
GPG key ID: 5EDBFEFFA9E9A7AB

View file

@ -377,7 +377,7 @@ Outputs:
Example:
```
$ curl http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"validate_address", params={"address":"42go2d3XqA9Mx4HjZoqr93BHspcMxwAUBivs3yJKV1FyTycEcbgjNyEaGNEcgnUE9DDDAXNanzB16YgMt88Sa8cFSm2QcHK","any_net_type":"true","allow_openalias":"true"},' -H 'Content-Type: application/json'
$ curl http://127.0.0.1:18082/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"validate_address", params:{"address":"42go2d3XqA9Mx4HjZoqr93BHspcMxwAUBivs3yJKV1FyTycEcbgjNyEaGNEcgnUE9DDDAXNanzB16YgMt88Sa8cFSm2QcHK","any_net_type":true,"allow_openalias":true},' -H 'Content-Type: application/json'
{
"id": "0",
"jsonrpc": "2.0",