jsonRpc.history_get_actions()
history_get_actions()
方法返回指定数据表的查询结果,它是对RPC接口
/v1/history/get_actions
的封装。
函数原型
history_get_actions(account_name: string, pos?: number, offset?: number): Promise<any>
参数
- account_name:账号名称
- pos:起始位置,可选
- offset:偏移量,可选
返回值
history_get_actions()
方法返回一个Promise对象,其解析值为RPC响应结果对象。
示例代码
(async ()=>{
let ret = await rpc.history_get_actions('eosio')
console.log(ret)
})()