v1

latestOpenAPI 3.0.32026-07-1765123145.7 KB
ledger.v1

Count the transactions from a ledger

head/{ledger}/transactions

Path parameters

ledgerstring required
Example:ledger001

Name of the ledger.

Query parameters

referencestring
Example:ref:001

Filter transactions by reference field.

accountstring
Example:users:001

Filter transactions with postings involving given account, either as source or destination (regular expression placed between ^ and $).

sourcestring
Example:users:001

Filter transactions with postings involving given account at source (regular expression placed between ^ and $).

destinationstring
Example:users:001

Filter transactions with postings involving given account at destination (regular expression placed between ^ and $).

startTimestring date-time

Filter transactions that occurred after this timestamp. The format is RFC3339 and is inclusive (for example, "2023-01-02T15:04:01Z" includes the first second of 4th minute).

start_timestring date-time

Filter transactions that occurred after this timestamp. The format is RFC3339 and is inclusive (for example, "2023-01-02T15:04:01Z" includes the first second of 4th minute). Deprecated, please use startTime instead.

endTimestring date-time

Filter transactions that occurred before this timestamp. The format is RFC3339 and is exclusive (for example, "2023-01-02T15:04:01Z" excludes the first second of 4th minute).

end_timestring date-time

Filter transactions that occurred before this timestamp. The format is RFC3339 and is exclusive (for example, "2023-01-02T15:04:01Z" excludes the first second of 4th minute). Deprecated, please use endTime instead.

metadataobject

Filter transactions by metadata key value pairs. Nested objects can be used as seen in the example below.

Response

OK