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