Skip to content

Curl examples missing in RPC help text for commands added with zendoo #460

@cronicc

Description

@cronicc

All of the zen-cli help $command messages should include examples for zen-cli as well as for curl.

Compare e.g.

$zen-cli help getrawtransaction
[...]
Examples:
> zen-cli getrawtransaction "mytxid"
> zen-cli getrawtransaction "mytxid" 1
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getrawtransaction", "params": ["mytxid", 1] }' -H 'content-type: text/plain;' http://127.0.0.1:8231/

with

$zen-cli help getscinfo
[...]
Examples
> zen-cli getscinfo "1a3e7ccbfd40c4e2304c3215f76d204e4de63c578ad835510f580d529516a874"
> zen-cli getscinfo "*" true false 2 10
> zen-cli getscinfo "*"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions