EOSJS中文手册【V20】

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

jsonRpc.history_get_transaction()

history_get_transaction()方法返回指定公钥关联的账号,它是对RPC接口 /v1/history/get_transaction的封装。

函数原型

 history_get_transaction(id: string, block_num_hint?: number): Promise<any>

参数

  • id:交易ID
  • block_num_hint:

返回值

history_get_transaction()方法返回一个Promise对象,其解析值为RPC响应结果对象。

示例代码

(async ()=>{
  let ret = await rpc.history_get_transasction('...')
  console.log(ret)
})()