getDelegatedResourceV2

查看一个账户在V2接口下,代理给另外一个账户的资源情况。(v5.1.0新增接口)

用法

tronWeb.trx.getDelegatedResourceV2(fromAddress, toAddress, options)

参数类型

参数描述类型
fromAddress要查询的账户地址(hexstring 或 base58)String
toAddress代理对象的账户地址(hexstring 或 base58)String
options可选字段Object

返回值类型

Object

示例

>const delegationInfo = await tronWeb.trx.getDelegatedResourceV2('fromAddress', 'toAddress')
> {
    "delegatedResource": [
        {
            "from": "fromAddress",
            "to": "toAddress",
            "frozen_balance_for_bandwidth": 10000000
        }
    ]
}