> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# GetDelegatedResourceAccountIndexV2

Stake 2.0 API: query the resource delegation index by an account (confirmed state). Two lists will return, one is the list of addresses the account has delegated its resources(toAddress), and the other is the list of addresses that have delegated resources to the account(fromAddress).

This method will use `30` [Compute Units](/nodeapi/about/billing).

***

## **Parameters**

* `value` - String - Account address, default hexString
* `visible` - Boolean - Optional - Specifies whether the address is in Base58 format (default: false).

## **Returns**

| Field | Type | Description |
| - | - | - |
| account | string | Account address |
| fromAccounts | string\[] | The list of addresses that have delegated resources to the account |
| toAccounts | string\[] | The list of addresses the account has delegated its resources to |

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "account": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g"
}
```

<CodeGroup>
  ```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
  curl https://mainnet.tron.validationcloud.io/v1/<YOUR_API_KEY_HERE>/walletsolidity/getdelegatedresourceaccountindexv2 \
      -X POST \
      -H "Content-Type: application/json" \
      -d '
  {
    "value": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
    "visible": true
  }
  '
  ```
</CodeGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.