支持取消订阅 project 维度下所有地址的交易事件,及交易相关数据。取消订阅后,将不再接收相关 webhook 推送。
POST https://www.okx.com/api/v5/waas/unsubscribe
Parameter | Type | Required | Description |
---|---|---|---|
url | String | Yes | webhook 回调的 URL |
type | String | Yes | TRANSACTION: 有任何地址相关的交易发生,都会触发 BLOCK_HEIGHT: 有任何区块产生,都会触发 |
chainId | String | no | 链唯一标识 |
Parameter | Type | Description |
---|---|---|
curl --location --request POST 'https://www.okx.com/api/v5/waas/unsubscribe' \
--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": []
}