curl --request GET \
--url http://localhost/api/ledger/v2/{ledger}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"cursor": {
"pageSize": 15,
"hasMore": false,
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"postings": [
{
"amount": 100,
"asset": "COIN",
"destination": "users:002",
"source": "users:001"
}
],
"metadata": {
"admin": "true"
},
"id": 1,
"reverted": true,
"insertedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reference": "ref:001",
"revertedAt": "2023-11-07T05:31:56Z",
"preCommitVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"postCommitVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"preCommitEffectiveVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"postCommitEffectiveVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
}
}
],
"previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=",
"next": ""
}
}List transactions from a ledger, sorted by id in descending order.
curl --request GET \
--url http://localhost/api/ledger/v2/{ledger}/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"cursor": {
"pageSize": 15,
"hasMore": false,
"data": [
{
"timestamp": "2023-11-07T05:31:56Z",
"postings": [
{
"amount": 100,
"asset": "COIN",
"destination": "users:002",
"source": "users:001"
}
],
"metadata": {
"admin": "true"
},
"id": 1,
"reverted": true,
"insertedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"reference": "ref:001",
"revertedAt": "2023-11-07T05:31:56Z",
"preCommitVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"postCommitVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"preCommitEffectiveVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
},
"postCommitEffectiveVolumes": {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
}
}
],
"previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=",
"next": ""
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Name of the ledger.
"ledger001"
The maximum number of results to return per page.
1 <= x <= 1000Parameter 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.
"aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ=="
Deprecated: Use sort param
effective 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.
"id:desc"
The body is of type object.
OK
Show child attributes
1 <= x <= 100015
false
Show child attributes
x >= 0"ref:001"
Show child attributes
Show child attributes
{
"USD": { "input": 100, "output": 10, "balance": 90 },
"EUR": { "input": 100, "output": 10, "balance": 90 }
}{
"orders:1": {
"USD": { "input": 100, "output": 10, "balance": 90 }
},
"orders:2": {
"USD": { "input": 100, "output": 10, "balance": 90 }
}
}Show child attributes
Show child attributes
{
"USD": { "input": 100, "output": 10, "balance": 90 },
"EUR": { "input": 100, "output": 10, "balance": 90 }
}{
"orders:1": {
"USD": { "input": 100, "output": 10, "balance": 90 }
},
"orders:2": {
"USD": { "input": 100, "output": 10, "balance": 90 }
}
}Show child attributes
Show child attributes
{ "input": 100, "output": 20, "balance": 80 }{
"USD": { "input": 100, "output": 10, "balance": 90 },
"EUR": { "input": 100, "output": 10, "balance": 90 }
}{
"orders:1": {
"USD": { "input": 100, "output": 10, "balance": 90 }
},
"orders:2": {
"USD": { "input": 100, "output": 10, "balance": 90 }
}
}Show child attributes
Show child attributes
{ "input": 100, "output": 20, "balance": 80 }{
"USD": { "input": 100, "output": 10, "balance": 90 },
"EUR": { "input": 100, "output": 10, "balance": 90 }
}{
"orders:1": {
"USD": { "input": 100, "output": 10, "balance": 90 }
},
"orders:2": {
"USD": { "input": 100, "output": 10, "balance": 90 }
}
}"YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="
""