Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Name of the ledger.
Example:
"ledger001"
Transaction ID.
Required range:
x >= 0
Example:
1234
Response
OK
curl --request GET \
--url http://localhost:55001/api/ledger/{ledger}/transactions/{txid} \
--header 'Authorization: Bearer <token>'
{
"data": {
"timestamp": "2023-11-07T05:31:56Z",
"postings": [
{
"amount": 100,
"asset": "COIN",
"destination": "users:002",
"source": "users:001"
}
],
"reference": "ref:001",
"metadata": {},
"txid": 1,
"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
}
}
}
}
}
curl --request GET \
--url http://localhost:55001/api/ledger/{ledger}/transactions/{txid} \
--header 'Authorization: Bearer <token>'
{
"data": {
"timestamp": "2023-11-07T05:31:56Z",
"postings": [
{
"amount": 100,
"asset": "COIN",
"destination": "users:002",
"source": "users:001"
}
],
"reference": "ref:001",
"metadata": {},
"txid": 1,
"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
}
}
}
}
}
The access token received from the authorization server in the OAuth 2.0 flow.
Name of the ledger.
"ledger001"
Transaction ID.
x >= 0
1234
OK
Show child attributes