For the complete documentation index, see llms.txt. This page is also available as Markdown.

delegatorSummary

Get a summary of a user's delegation status.

Get a summary of a user's delegation status.

POST Request

Field
Type
Description

type

string

Must be "delegatorSummary"

user

string

Ethereum address (0x-prefixed, 42 characters)

curl -X POST https://api.hydromancer.xyz/info \
  -H "Authorization: Bearer $HYDROMANCER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "delegatorSummary",
    "user": "0x0000000000000000000000000000000000000000"
  }'
import requests
import os

response = requests.post(
    'https://api.hydromancer.xyz/info',
    json={
        'type': 'delegatorSummary',
        'user': '0x0000000000000000000000000000000000000000'
    },
    headers={
        'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
        'Content-Type': 'application/json'
    }
)

print(response.json())

Response Fields

Field
Type
Description

delegated

string

Total amount currently delegated

undelegated

string

Total amount undelegated

totalPendingWithdrawal

string

Total amount pending withdrawal

nPendingWithdrawals

int

Number of pending withdrawals

Response
{
    "delegated": "1518.74003972",
    "undelegated": "0.0",
    "totalPendingWithdrawal": "0.0",
    "nPendingWithdrawals": 0
}

Last updated