Function Signature
Description
Query current delegation state, balances, and active delegations for a specific token and delegate address.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | String | Yes | CAIP-2 chain ID (e.g., "eip155:11155111" for Sepolia) |
token | String | Yes | Token symbol or address (e.g., "USDC") |
delegateAddress | String | Yes | The delegate address to query status for |
Returns
DelegationStatusResponse - An object containing:
| Property | Type | Description |
|---|---|---|
chainId | String | Chain identifier |
token | String | Token symbol |
tokenAddress | String | Address of the token |
tokenAccount | String? | Token account (Solana) |
balance | String? | Current balance |
balanceRaw | String? | Raw balance value |
delegations | List<DelegationStatus?> | Array of delegation status objects with address and delegate amounts |
Example
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
DELEGATION_FAILED | Failed to get delegation status |