Search
Search via DB
Filter ledgers, balances, transactions, and identities with the Python SDK.
POST
Search via DB
Use
blnk.search.filter to filter records in a collection.
Call the method
blnk.search.filter
| Field | Type | Description |
|---|---|---|
filters | list[dict] | Array of filter conditions, each with a field, operator, and a value or values. |
logical_operator | str | Combine filters with and or or. Defaults to and. |
sort_by | str | Field to sort by. Defaults to created_at. |
sort_order | str | Sort direction, asc or desc. Defaults to desc. |
include_count | bool | Return total_count in the response. Defaults to False. |
limit | number | Maximum records to return. Defaults to 20, max 100. |
offset | number | Records to skip for pagination. Defaults to 0. |
collection | str | Collection to filter: ledgers, transactions, balances, or identities. |
Use the filtered results
Read
response.data["data"] for matching records. Use total_count with limit and offset to paginate when include_count is True.Related docs
How DB filtering works
Supported operators and field reference.
Search via DB
HTTP request and response schema.