> ## 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.

# GetCanDelegatedMaxSize

Stake2.0 API: query the amount of delegatable resources share of the specified resource type for an address, unit is sun (Confirmed state).

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

***

## **Parameters**

* `owner_address` - String - <span style={{color: "red"}}>Required</span> - Owner address that triggers the contract. If visible=true, use base58check format, otherwise use hex format. For constant call you can use the all-zero address
* `type` - Int32 - <span style={{color: "red"}}>Required</span> - Resource type, 0 - Bandwidth, 1 - Energy
* `visible` - Boolean - Optional - Specifies whether the address is in Base58 format (default: false)

## **Returns**

`max_size` - Int64 - The amount of delegatable resource share, unit is sun.

Note: If the delegating transaction has a memo, it would consume more bandwidth, therefore the actual delegatable share would be less than the return of this API.

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

<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/getcandelegatedmaxsize \
      -X POST \
      -H "Content-Type: application/json" \
      -d '
  {
    "owner_address": "TZ4UXDV5ZhNW7fb2AMSbgfAEZ7hWsnYS2g",
    "type": 0,
    "visible": true
  }
  '
  ```
</CodeGroup>


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