--- title: getDelegatedResourceAccountIndexV2 --- # getDelegatedResourceAccountIndexV2 Query which accounts have delegated resources to other accounts under the V2 interface. (v5.1.0 new interface) ## Usage ```js tronWeb.trx.getDelegatedResourceAccountIndexV2(address, options) ``` ## Parameters | Parameters | Parameter Description | Data Type | |------------|---------------------------------|-----------| | address | account address (base58 or hex) | String | | options | Optional. Default is `{ confirmed: true }`. If `options.confirmed` is `true`, the result is queried from solidity node. | `{ confirmed: boolean }` | ## Return Object - `fromAccounts` prop shows the list of addresses that have delegated resources to the account, `toAccounts` prop shows the list of addresses that the account has delegated resources to. ## Example ```js await tronWeb.trx.getDelegatedResourceAccountIndexV2('TMVQGm1qAQYVdetCeGRRkTWYYrLXuHK2HC'); // output-start { "account": "TMVQGm1qAQYVdetCeGRRkTWYYrLXuHK2HC", "fromAccounts": [ "TKTX96CBxr5kvhjsDHcqoiPWZageGxoTW3" ], "toAccounts": [ "TDvSsdrNM5eeXNL3czpa6AxLDHZA9nwe9K" ] } // output-end ```