From a4980848c9ebf1c50ab58c2c27c677382185609e Mon Sep 17 00:00:00 2001 From: reemuru Date: Sat, 25 Sep 2021 17:11:54 -0500 Subject: [PATCH] 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. --- resources/developer-guides/wallet-rpc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/developer-guides/wallet-rpc.md b/resources/developer-guides/wallet-rpc.md index de9b739f..0c2cf32c 100644 --- a/resources/developer-guides/wallet-rpc.md +++ b/resources/developer-guides/wallet-rpc.md @@ -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",