Update history subscription

Description

  • Description: Update history subscription

  • Path: https://api.blockin.ai/v2/subscribe/history/edit

  • Encoding: UTF-8

  • Method: HTTPS POST

Request Header

Parameter
Type
Required
Description

Content-Type

String

Y

application/json

AccessKey

String

Y

AccessKey

Request Parameters

Parameter
Type
Required
Description

batch_no

String

Y

The unique identifier of the response after successfully creating the subscription address list

address_list

List

Y

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

Parameter
Type
Required
Description

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/edit" -d'{Request json}'

Request json
{
   "batch_no": "20230523080431237000036575012218",
  "address_list": [
            "0xdd3db40e569a28244790a9f58b59efc4efbbe937",
            "0x0c14c154558ad0eb2f305bfa365426f6774894f4"
        ],
        "amount": 10000,
        "chain_names": "ETH,BSC"
}

Return json
{
    "success": true,
    "data": {
        "batch_no": "20230523080431237000036575012218"
    },
    "error_code": null,
    "error_msg": null
}

Last updated