GET
/ratchet/receipts/{period}/leaves
const url = 'http://localhost:8000/ratchet/receipts/1/leaves';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8000/ratchet/receipts/1/leavesThe receipt’s leaves as JSON lines, in tree order: python -m ratchet.receipt verify r.json --rows leaves.jsonl
rebuilds the root and recomputes every total, estimate and the fee from them.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”period
required
Period
integer
Query Parameters
Section titled “Query Parameters”Header Parameters
Section titled “Header Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Example generated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}