Export ledger entries
Export ledger entries records ledger entries to a csv file. May or may not contain a date range - if no date range is provided, list all records for all times.
Ledger entries can be exported by:
- export ledger entries for a single party for a given asset within a given time range
- export ledger entries for a single party for a given asset for all times buf:lint:ignore RPC_RESPONSE_STANDARD_NAME buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE
Query Parameters
partyId string required
Party ID to export ledger entries for.
assetId string required
Optional: Asset ID.
dateRange.startTimestamp int64
dateRange.endTimestamp int64
Responses
- 200
- 500
- default
A successful response.(streaming responses)
application/json
Schema
Example (from schema)
Schema
error object
result object
{
"error": {
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
},
"result": {
"contentType": "string",
"data": "string",
"extensions": [
{
"@type": "string"
}
]
}
}
An internal server error
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
code int32
details object[]
message string
{
"code": 0,
"details": [
{
"@type": "string"
}
],
"message": "string"
}
GET /api/v2/ledgerentry/export
Request
Request
curl / cURL
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/ledgerentry/export' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/ledgerentry/export' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/ledgerentry/export' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'https://api.n06.testnet.vega.xyz/api/v2/ledgerentry/export' \
-H 'Accept: application/json'