commit 373c8c1d4242629608852b792b4dce2ed2ac07c6
parent fcac70cd964c88369f18d4d1e7995f59f0829552
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 18 Sep 2024 14:38:27 -0700
add doc
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/doc/notes.md b/doc/notes.md
@@ -104,4 +104,7 @@ Use wallet rpc to list all wallet addresses
```
curl http://127.0.0.1:6061/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_accounts"}' -H 'Content-Type: application/json'
curl http://127.0.0.1:6061/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_address","params":{"account_index":0}}' -H 'Content-Type: application/json'
+
+# Validate an address belongs to the wallet
+curl http://127.0.0.1:6061/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"get_address_index","params":{"address":""}}' -H 'Content-Type: application/json
```
\ No newline at end of file