save: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Input == {| class="wikitable" ! Argument !! Mandatory !! Description !! Format |- | colspan="4" | none |} == Output == {| class="wikitable" ! Argument !! Description !! Fo...") |
(Add usage) |
||
Line 15: | Line 15: | ||
== Description == | == Description == | ||
* This method saves the current wallet container to disk using same filename as when loaded | * This method saves the current wallet container to disk using same filename as when loaded | ||
== Usage == | |||
Replace "your_password" in example with real value from wallet daemon. Password is specified on command-line of wallet daemon, it is not returned by any API method for security reasons. | |||
=== cURL === | |||
* <nowiki>curl -X POST http://127.0.0.1:33777/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "save", "password": "your_password", "params": {}, "id": "1"}'</nowiki> |
Latest revision as of 13:30, 24 March 2020
Input
Argument | Mandatory | Description | Format |
---|---|---|---|
none |
Output
Argument | Description | Format |
---|---|---|
none |
Description
- This method saves the current wallet container to disk using same filename as when loaded
Usage
Replace "your_password" in example with real value from wallet daemon. Password is specified on command-line of wallet daemon, it is not returned by any API method for security reasons.
cURL
- curl -X POST http://127.0.0.1:33777/json_rpc -H 'Content-Type: application/json-rpc' -d '{"jsonrpc": "2.0", "method": "save", "password": "your_password", "params": {}, "id": "1"}'