EOS RPC API手册

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

history/get_actions

history/get_actions调用返回指定合约上执行过的动作。

注意,nodeos时需要启用history_api_plugin插件,并且设置filter-on选项。

调用参数

JSON对象,指定查询参数,其成员如下:

  • pos:位置,整数
  • offset:偏移量,整数
  • account_name:合约托管账号,字符串

返回值

get_actions调用的返回值为指定账号的托管合约上发生过的历史动作调用。

示例代码

调用请求:

~$ curl -X POST --url http://127.0.0.1:8888/v1/history/get_actions -d '{
  "pos": -1,
  "offset": -20,
  "account_name": "eosio"
}'

返回结果:

{
  ...
}