delegatorHistory
Query a user's staking history (delegations, deposits, withdrawals).
Returns a user's staking event history, mirroring Hyperliquid's delegatorHistory endpoint format. Includes delegation, deposit, and withdrawal events.
Data availability: Events from 2025-07-27 onwards.
POST Request
type
string
Must be "delegatorHistory"
user
string
Ethereum address (0x-prefixed, 42 characters)
limit
number
(Optional) Max results to return. Default 500, max 2000.
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "delegatorHistory",
"user": "0x5aeb1821f596d2d9ffe182d3f914b274a80511cc"
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'delegatorHistory',
'user': '0x5aeb1821f596d2d9ffe182d3f914b274a80511cc'
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Response
Returns an array of staking events, sorted by time descending (most recent first). Each event has a delta object whose key indicates the event type.
Delta types
delegate — Delegation or undelegation
validator
string
Validator address
amount
string
Amount delegated/undelegated (decimal string)
isUndelegate
boolean
true if undelegating, false if delegating
cDeposit — Staking deposit
amount
string
Amount deposited (decimal string)
withdrawal — Staking withdrawal
amount
string
Amount withdrawn (decimal string)
phase
string
"initiated" or "finalized"
Common fields
time
number
Event timestamp in milliseconds
hash
string
Transaction hash
delta
object
Event-specific data (see delta types above)
Last updated