Get user tx history
user.get_tx_history(straddress, UserGetTxHistoryParams**kwargs) -> SyncTxHistoryPage[UserTx]
GET/api/v1/users/{address}/tx-history
Get user tx history
Parameters
limit: Optional[int]
Maximum number of transactions to return.
Optional and defaults to 20 if missing.
formatuint16
minimum1
maximum100
prev_event_uuid: Optional[str]
Optional UUID skip parameter used for pagination.
Providing the last event UUID on a given page will return the next page beginning with the following (unseen) item.
formatuuid
Get user tx history
from neptune_api_v2 import NeptuneAPIV2
client = NeptuneAPIV2()
page = client.user.get_tx_history(
address="injvalcons1a03k0ztfyjnd70apawva003pkh0adqmau0a9q0",
)
page = page.data[0]
print(page.event_uuid){
"data": [
{
"event_uuid": "1cc81b0e-ba2f-438c-883c-05aa4db53f45",
"event_time": "2026-04-09T23:40:09.142869763Z",
"tx_hash": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"action": "borrow",
"contract_address": "inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u",
"account_address": "inj10123456789abcdef0123456789abcdef012345",
"destination_address": null,
"account_index": 0,
"asset": {
"asset": {
"id": "native;inj",
"group": "native",
"group_key": "inj"
},
"metadata": {
"name": "Injective",
"symbol": "INJ",
"symbol_denom": "inj",
"decimals_denom": 18,
"decimals_display": 4
},
"classification": {
"kind": "regular",
"neptune_receipt_asset": {
"id": "token;inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f",
"group": "token",
"group_key": "inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f"
}
}
},
"amount": "1",
"historic_price": "1",
"historic_value": "1",
"extra": {
"text": {
"event_time": "2026-04-09 11:40:09 PM +00:00",
"action": "Borrow",
"amount": "0.0000 INJ",
"historic_price": "$1.00",
"historic_value": "$1.00"
},
"value": {
"amount": "0.000000000000000002",
"price": "2.99835",
"extra": {
"text": {
"price": "$2.99",
"amount": "$0.00"
}
}
}
}
}
],
"count": 1,
"error": null,
"status": 200,
"status_text": "200 OK"
}{
"data": null,
"error": {
"kind": "internal",
"scope": "server",
"message": "An unexpected error occurred"
},
"status": 500,
"status_text": "500 Internal Server Error"
}Returns Examples
{
"data": [
{
"event_uuid": "1cc81b0e-ba2f-438c-883c-05aa4db53f45",
"event_time": "2026-04-09T23:40:09.142869763Z",
"tx_hash": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"action": "borrow",
"contract_address": "inj1nc7gjkf2mhp34a6gquhurg8qahnw5kxs5u3s4u",
"account_address": "inj10123456789abcdef0123456789abcdef012345",
"destination_address": null,
"account_index": 0,
"asset": {
"asset": {
"id": "native;inj",
"group": "native",
"group_key": "inj"
},
"metadata": {
"name": "Injective",
"symbol": "INJ",
"symbol_denom": "inj",
"decimals_denom": 18,
"decimals_display": 4
},
"classification": {
"kind": "regular",
"neptune_receipt_asset": {
"id": "token;inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f",
"group": "token",
"group_key": "inj1rmzufd7h09sqfrre5dtvu5d09ta7c0t4jzkr2f"
}
}
},
"amount": "1",
"historic_price": "1",
"historic_value": "1",
"extra": {
"text": {
"event_time": "2026-04-09 11:40:09 PM +00:00",
"action": "Borrow",
"amount": "0.0000 INJ",
"historic_price": "$1.00",
"historic_value": "$1.00"
},
"value": {
"amount": "0.000000000000000002",
"price": "2.99835",
"extra": {
"text": {
"price": "$2.99",
"amount": "$0.00"
}
}
}
}
}
],
"count": 1,
"error": null,
"status": 200,
"status_text": "200 OK"
}{
"data": null,
"error": {
"kind": "internal",
"scope": "server",
"message": "An unexpected error occurred"
},
"status": 500,
"status_text": "500 Internal Server Error"
}