mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
20 lines
540 B
Markdown
20 lines
540 B
Markdown
|
JSON-RPC
|
||
|
---
|
||
|
|
||
|
All JSON-RPC methods accept a new [named
|
||
|
parameter](JSON-RPC-interface.md#parameter-passing) called `args` that can
|
||
|
contain positional parameter values. This is a convenience to allow some
|
||
|
parameter values to be passed by name without having to name every value. The
|
||
|
python test framework and `dash-cli` tool both take advantage of this, so
|
||
|
for example:
|
||
|
|
||
|
```sh
|
||
|
dash-cli -named createwallet wallet_name=mywallet load_on_startup=1
|
||
|
```
|
||
|
|
||
|
Can now be shortened to:
|
||
|
|
||
|
```sh
|
||
|
dash-cli -named createwallet mywallet load_on_startup=1
|
||
|
```
|