关于区块链:广元链DDC接入说明事件解析

66次阅读

共计 955 个字符,预计需要花费 3 分钟才能阅读完成。

  1. 事件解析
    1.1. 批量解析事件
    URL: http://{{server}}/api/api/event/list

Type: GET

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: 批量解析事件

Request-example:

curl -X GET -i http://{{server}}/api/api/event/list

Response-fields:

Field Type Description Since
success boolean 返回状态
message string 音讯形容
code int32 音讯编码
data array 返回内容
└─id int32 id
└─type string 类型
└─data string 返回内容
└─createTime string 创立工夫

Response-example:

{
  "success": true,
  "message": "success",
  "code": 200,
  "data": [
    {
      "id": 275,
      "type": "Transfer",
      "data": "{\"bodyType\":\"Event\",\"header\":null,\"name\":\"Transfer\",\"value\":{\"operator\":\"0:d9d35fc29d4aa41b72c0892f2c963f41aa6a032fae5cc709f216f0467093a32e\",\"from\":\"0:0000000000000000000000000000000000000000000000000000000000000000\",\"to\":\"0:4570679b2879bc821cab5dc6439cd12319e1dece2a99b7bdb4331c6f501ab84d\",\"ddcId\":\"0x0000000000000000000000000000000000000000000000000000000000000005\"}}",
      "createTime": "2022-08-10 16:21:16"
    }
  ]
}

文章起源:广元链
文章原题目:《广元链接口文档》
如有侵权请与咱们分割删除。

正文完
 0