getDelegatedResourceAccountIndexV2

查看一个账户在V2接口下,给哪些账户代理了资源。(v5.1.0新增接口)

用法

tronWeb.trx.getDelegatedResourceAccountIndexV2(address)

参数类型

参数描述类型
address要查询的账户地址(hexstring 或 base58)String
options可选字段Object

返回值类型

Object

示例

>const delegationInfo = await tronWeb.trx.getDelegatedResourceAccountIndexV2('ownerAddress')
> {
    "account": "ownerAddress",
    "toAccounts": [
        "toAddress1"
    ]
}