v1
latestOpenAPI 3.0.32026-07-1765123145.7 KBledger.v2
List the logs from a ledger
List the logs from a ledger, sorted by ID in descending order.
get/v2/{ledger}/logs
Path parameters
ledgerstring required
Example:ledger001
Name of the ledger.
Query parameters
pageSizeinteger
The maximum number of results to return per page.
cursorstring
Example:aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==
Parameter used in pagination requests. Maximum page size is set to 15. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
pitstring date-time
sortstring
Example:id:desc
Sort results using a field name and order (ascending or descending). Format: <field>:<order>, where <field> is the field name and <order> is either asc or desc.
Request body
object required
Response
OK
Example response
{
"cursor": {
"pageSize": 15,
"previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=",
"next": "aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ=",
"data": [
{
"id": 1234,
"data": {
"transaction": {
"id": 1234,
"postings": [
{
"source": "world",
"destination": "users:001",
"amount": 100,
"asset": "USD/2"
}
],
"metadata": {},
"timestamp": "2024-01-15T10:30:00Z",
"insertedAt": "2024-01-15T10:30:00Z",
"reverted": false
},
"accountMetadata": {
"users:001": {
"created_by": "system"
}
}
},
"hash": "9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e",
"schemaVersion": "v1.0.0"
}
]
}
}