EOSJS中文手册【V20】

在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器

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)
})()