Snapshots
使用快照接口可以获取最近的余额变动。当请求由机器人发起时,可以提供 app
查询参数,将子用户的活动聚合在一起。
API 端点 URL
GET https://api.mixin.one/safe/snapshots?app=UUID&asset=UUID&opponent=UUID&offset=RFC3339NANO&limit=500
app
、asset
与 opponent
参数互斥不可同时出现。
Response
{
"data": [
{
"snapshot_id": "SNAPSHOT-UUID",
"user_id": "USER-UUID",
"opponent_id": "OPPONENT-UUID-OPTIONAL",
"transaction_hash": "KERNEL-HASH",
"asset_id": "ASSET-UUID",
"kernel_asset_id": "ASSET-HASH",
"amount": "NUMBER",
"memo": "EXTRA-HEX-ENCODING",
"request_id": "REQUEST-UUID",
"created_at": "RFC3339NANO",
"inscription_hash": "INSCRIPTION-HASH",
"deposit": {
"deposit_hash": "DEPOSIT-HASH",
"deposit_index": 1,
"sender": "SOME-STRING",
"destination": "DEPOSIT-DESTINATION",
"tag": "DEPOSIT-TAG",
},
"withdrawal": {
"withdrawal_hash": "WITHDRAWAL-HASH",
"receiver": "SOME-STRING",
},
}
]
}