jsonRpc.history_get_controlled_accounts()
history_get_controlled_accounts()
方法返回指定账号的受控子账号,它是对RPC接口
/v1/history/get_controlled_accounts
的封装。
函数原型
history_get_controlled_accounts(controlling_account: string): Promise<any>
参数
- controlling_account:主控账号名称
返回值
history_get_controlled_accounts()
方法返回一个Promise对象,其解析值为RPC响应结果对象。
示例代码
(async ()=>{
let ret = await rpc.history_get_controlled_accounts('eosio')
console.log(ret)
})()