Docs

delegatorSummary - HyperCore Info Endpoint

Get comprehensive delegation summary for a delegator on Hyperliquid. Track staking positions, rewards, and validator relationships.

Get comprehensive delegation summary for a delegator, including staking positions, rewards, and validator relationships.

The live response is a flat object with delegated, undelegated, totalPendingWithdrawal, and nPendingWithdrawals.

Authenticate HyperCore Info requests by sending your Dwellir API key in the x-api-key header to https://api-hyperliquid-mainnet-info.n.dwellir.com/info.

When to Use This Endpoint

The delegatorSummary endpoint is essential for:

  • Staking Portfolio — View all delegations for a delegator
  • Rewards Tracking — Monitor staking rewards across validators
  • Delegation Analysis — Analyze delegation strategy and distribution
  • Validator Selection — Evaluate current validator relationships

Common Use Cases

1. View Staking Portfolio

Display all delegations for a user:

JavaScript
async function viewStakingPortfolio(userAddress) {
  const summary = await getDelegatorSummary(userAddress);

  console.log('=== Staking Portfolio ===\n');
  console.log(`Delegated: ${summary.delegated}`);
  console.log(`Undelegated: ${summary.undelegated}`);
  console.log(`Pending withdrawals: ${summary.nPendingWithdrawals}`);

  if (parseFloat(summary.delegated) === 0) {
    console.log('No active delegations');
  }
}

// Usage
await viewStakingPortfolio('0x420a4ed7b6bb361da586868adec2f2bb9ab75e66');

2. Track Delegation Changes

Monitor changes in delegation status:

JavaScript
async function trackDelegations(userAddress) {
  const summary = await getDelegatorSummary(userAddress);

  return {
    delegated: summary.delegated,
    undelegated: summary.undelegated,
    hasActiveDelegations: parseFloat(summary.delegated) > 0,
    timestamp: new Date().toISOString()
  };
}

// Usage
const status = await trackDelegations('0x420a4ed7b6bb361da586868adec2f2bb9ab75e66');
console.log('Delegation status:', status);

3. Build Staking Dashboard

Create a comprehensive staking dashboard:

JavaScript
async function getStakingDashboard(userAddress) {
  try {
    const summary = await getDelegatorSummary(userAddress);

    return {
      status: 'success',
      delegated: summary.delegated,
      undelegated: summary.undelegated,
      totalPendingWithdrawal: summary.totalPendingWithdrawal,
      nPendingWithdrawals: summary.nPendingWithdrawals,
      lastUpdated: new Date().toISOString()
    };
  } catch (error) {
    return {
      status: 'error',
      error: error.message
    };
  }
}

4. Compare Delegation Strategies

Analyze delegation distribution:

JavaScript
async function analyzeDelegationStrategy(userAddress) {
  const summary = await getDelegatorSummary(userAddress);

  const analysis = {
    delegated: summary.delegated,
    undelegated: summary.undelegated,
    delegationStatus: parseFloat(summary.delegated) > 0 ? 'active' : 'inactive'
  };

  console.log('Delegation Analysis:', analysis);
  return analysis;
}

Best Practices

  1. Validate addresses — Ensure user addresses are valid Ethereum addresses
  2. Cache data — Cache delegation data for several minutes to reduce API calls
  3. Handle empty states — Account for users with no delegations
  4. Monitor regularly — Track delegation changes for portfolio management
  5. Implement pagination — For users with many delegations, display in batches

Access real-time Hyperliquid delegation data with Dwellir's HyperCore Info Endpoint. Get your API key →