直达内容

Read Snapshot List

GET /snapshots

Get the snapshots by several filters.

API 端点 URL

 https://api.mixin.one/snapshots/:snapshot_id

授权和其他选项

授权
SNAPSHOTS:READ
限制No limitation

参数

limit
*必须
Pagination limit, maximamlly 500.
offset
*必须
Pagination start time, e.g. `2020-12-12T12:12:12.999999999Z`.
assetOptional, get transfers by asset.
opponentOptional, get transfers by opponent(user or bot).
destinationOptional, get transfers by destination.
tagOptional, reversed.

请求示例

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/snapshots?limit=10&offset=2018-05-29T16:30:24.845515732%2B08:00
Response
{
"data": [
{
"amount": "-1688168",
"asset": {
"asset_id": "965e5c6e-434c-3fa9-b780-c50f43cd955c",
"chain_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"icon_url": "https://images.mixin.one/0sQY63dDMkWTURkJVjowWY6Le4ICjAFuu3ANVyZA4uI3UdkbuOT5fjJUT82ArNYmZvVcxDXyNjxoOv0TAYbQTNKS=s128",
"name": "Chui Niu Bi",
"symbol": "CNB",
"type": "asset"
},
"created_at": "2018-05-29T09:31:04.202186212Z",
"data": "",
"snapshot_id":"529934b0-abfd-43ab-9431-1805773000a4",
"source": "TRANSFER_INITIALIZED",
"type": "snapshot", // Options only for user (or App) who has access.
// 4 private fields that only be returend with correct permission
"user_id": "06aed1e3-bd77-4a59-991a-5bb5ae6fbb09",
"trace_id": "7c67e8e8-b142-488b-80a3-61d4d29c90bf",
"opponent_id":"a465ffdb-4441-4cb9-8b45-00cf79dfbc46",
"data": "Transfer!"
},
...
]
}