Support to check whether the subscription is successful.
POST https://www.okx.com/api/v5/waas/check-subscribe
Parameter | Type | Required | Description |
---|---|---|---|
url | String | Yes | URL for webhook callback |
type | String | Yes | Currently supports TRANSACTION-Any transaction related to any address will trigger BLOCK_HEIGHT-Any block generated will trigger |
chainId | String | No | Unique identifier of the chain |
Parameter | Type | Description |
---|---|---|
curl --location --request POST 'https://www.okx.com/api/v5/waas/check-subscribe' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data '{
"callbackUrl":"http://your.server.com/webhook",
"type":"TRANSACTION"
}'
{
"code": "0",
"msg": "success",
"data": [
true
]
}