Unverified Commit c5fd0fb1 authored by Riccardo Spagni's avatar Riccardo Spagni
Browse files

Merge pull request #218

41c70303 Update wallet-rpc.md (c789)
parents 8f6c6451 41c70303
......@@ -24,6 +24,18 @@ All monero-wallet-rpc methods use the same JSON RPC interface. For example:
-d '{"jsonrpc":"2.0","id":"0","method":"'$METHOD'","params":'"$PARAMS"'}' \
-H 'Content-Type: application/json'
If the monero-wallet-rpc was executed with the `--rpc-login` argument as `username:password`, then follow this example:
curl \
-u username:password --digest \
-X POST http://$IP:$PORT/json_rpc \
-d '{"jsonrpc":"2.0","id":"0","method":"'$METHOD'","params":'"$PARAMS"'}' \
-H 'Content-Type: application/json'
Note: "atomic units" refer to the smallest fraction of 1 XMR according to the monerod implementation. **1 XMR = 1e12 atomic units.**
### Index of JSON RPC Methods:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment