Removed ledger parameter from request

The `ledger` parameter is now `ledger_index`, which is optional and defaults to current. This PR removes the `ledger` param from the example requests.

I had opened a PR to simply change `ledger` to `ledger_index`, however the conventions of the API docs seem to only use required parameters, so I closed that PR and created this one instead.
This commit is contained in:
Mike Milano
2018-05-30 02:40:34 -07:00
committed by GitHub
parent dcfcb2dc0f
commit 9a0ffd280d

View File

@@ -15,8 +15,7 @@ An example of the request format:
{
"id": 1,
"command": "account_lines",
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"ledger": "current"
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
}
```
@@ -27,8 +26,7 @@ An example of the request format:
"method": "account_lines",
"params": [
{
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"ledger": "current"
"account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
}
]
}