查看一个账户在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
}
]
}