Create history subscription
Description
Description: Create history subscription
Path: https://api.blockin.ai/v2/subscribe/history/add
Encoding: UTF-8
Method: HTTPS POST
Request Headed
Content-Type
String
Y
application/json
AccessKey
String
Y
AccessKey
Request Parameters
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
address_type
String
N
User address(default) and token address
address_list
List
Y
Address list you want to subscription
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/add" -d'{Request json}'
Request json
{
"address_list": [
"0xdd3db40e569a28244790a9f58b59efc4efbbe937",
"0x0c14c154558ad0eb2f305bfa365426f6774894f4"
],
"amount": 10000,
"chain_names": "ETH,BSC"
}
Return json
{
"success": true,
"data": {
"batch_no": "20230608101229019001997117564066"
},
"error_code": null,
"error_msg": null
}
Last updated