Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bart van K.
monero-site
Commits
41c70303
Commit
41c70303
authored
Feb 03, 2017
by
c789
Committed by
GitHub
Feb 03, 2017
Browse files
Update wallet-rpc.md
Added instructions on how to use a username and password to connect to monero-wallet-rpc
parent
fe434afa
Changes
1
Hide whitespace changes
Inline
Side-by-side
knowledge-base/developer-guides/wallet-rpc.md
View file @
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:
IP=127.0.0.1
PORT=18082
METHOD="make_integrated_address"
PARAMS="{\"payment_id\":\"1234567890123456789012345678900012345678901234567890123456789000\"}"
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:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment