import requests
url = "https://api.example.com/api/v1/wallets/{wallet_id}/pacts/history"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://api.example.com/api/v1/wallets/{wallet_id}/pacts/history{
"result": {
"wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"range": "1d",
"currency": "USD",
"summary": {
"total_tx_count": 123,
"total_tx_amount": "<string>"
},
"buckets": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"label": "<string>",
"tx_count": 123,
"tx_amount": "<string>",
"pacts": [
{
"title": "<string>",
"tx_count": 123,
"tx_amount": "<string>",
"pact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
],
"as_of": "2023-11-07T05:31:56Z"
},
"success": true,
"suggestion": "",
"message": "",
"meta": {
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true,
"after": "<string>",
"before": "<string>"
}
}{
"success": false,
"error": {
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
}Get wallet pact history
Retrieve time-bucketed pact activity history for a wallet, suitable for charting. Data is derived from persisted transaction records. Use range to select the time window and metric to control the sort order.
import requests
url = "https://api.example.com/api/v1/wallets/{wallet_id}/pacts/history"
response = requests.get(url)
print(response.text)curl --request GET \
--url https://api.example.com/api/v1/wallets/{wallet_id}/pacts/history{
"result": {
"wallet_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"range": "1d",
"currency": "USD",
"summary": {
"total_tx_count": 123,
"total_tx_amount": "<string>"
},
"buckets": [
{
"bucket_start": "2023-11-07T05:31:56Z",
"label": "<string>",
"tx_count": 123,
"tx_amount": "<string>",
"pacts": [
{
"title": "<string>",
"tx_count": 123,
"tx_amount": "<string>",
"pact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
],
"as_of": "2023-11-07T05:31:56Z"
},
"success": true,
"suggestion": "",
"message": "",
"meta": {
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true,
"after": "<string>",
"before": "<string>"
}
}{
"success": false,
"error": {
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}
}Headers
Path Parameters
The UUID of the wallet to retrieve pact history for.
Query Parameters
Time window for the history chart. Allowed values: 1d, 7d, 30d.
Metric used to sort pacts within each bucket. Possible values: tx_count, tx_amount.
tx_count, tx_amount Language for localized pact titles. Possible values: en, zh.
zh, en Response
Successful Response
Wallet pact history payload for chart rendering.
Show child attributes
Show child attributes
Pagination metadata for list responses.
Supports both legacy offset-based and cursor-based pagination.
Cursor fields (has_more, after, before) are populated for
cursor-paginated endpoints. Legacy fields (offset, limit) are
populated when the caller uses the deprecated offset parameter.
Show child attributes
Show child attributes