Alter history subscription
Description
Method: HTTPS POST
Encoding: UTF-8
Path: https://api.blockin.ai/v2/subscribe/history/append
Description: Update history subscription
Request Header
Content-Type
Y
String
application/json
AccessKey
Y
String
1bdb01c947c54919b64d1fc6794atest
Request Parameters
batch_no
String
Y
The unique identifier of the response after successfully creating the subscription address list
operate_type
String
N
Address operate type: ADD,DELETE
address_list
List
N
Address list you want to query
chain_names
String
N
If chain_names is empty, query all. Multiple chains are separated by commas. eg: eth, bsc, arb.
amount
BigDecimal
N
Push notifications will only be triggered when the amount reaches the set value in USD
Response
Public Response
batch_no
String
Y
The unique identifier of the response after successfully creating the subscription address list
Request and Response Sample
curl -H "Content-Type:application/json" -H "AccessKey:1bdb01c947c54919b64d1fc6794atest" -X POST "https://api.blockin.ai/v2/subscribe/history/append" -d'{Request json}'
Request json
{
"batch_no": "20230523080431237000036575012218",
"append_type": "ADD,"
"address_list": [
"0xdd3db40e569a28244790a9f58b59efc4efbbe937",
"0x0c14c154558ad0eb2f305bfa365426f6774894f4"
],
"amount": 10000,
"chain_names":"ETH,"
}
Return json
{
"success": true,
"data": {
"batch_no": "20230523080431237000036575012218"
},
"error_code": null,
"error_msg": null
}
Last updated