WebHook
Create WebHook Client
Object
WebHook
Name | Type | Content |
id | int | WebHook Unique Number |
category | string | Cryptocurrency Address Types(btc,bch,ltc,dash,eth,xmr) |
address | string | Cryptocurrency Address |
callaback | string | Address to request when event occurs (http, https) |
callback_error | int | Callback Address Call Error Count |
create_at | datetime | Webhook creation datetime |
WebHookResponse
Name | Type | Content |
webhook_id | int | WebHook Unique Number |
category | string | Cryptocurrency symbol |
address | string | Cryptocurrency address |
status | int | Callback Address Call Response Code |
event | string | Trading event(confirmed,unconfirmed) |
tx_hash | string | Transaction hash |
datetime | datetime | Event Date Time |
CallbackRequest
Name | Type | Content |
webhook_id | int | ID issued when creating web hook |
event | string | Event type (confirmed or unconfirmed) |
category | string | Coin Type (btc or bch or ltc or eth or dash or xmr) |
address | string | Cryptocurrency address where the event occurred |
tx_hash | string | Transaction hash |
api_token | string | User's api token |
ListHook
GET
https://api.blocksdk.com/v1/hook
Query Parameters
Name | Type | Description |
---|---|---|
offset | number | WebHook List Offset |
limit | number | Number of WebHook to import |
Response
Object webhook
CreateHook
POST
https://api.blocksdk.com/v1/hook
Headers
Name | Type | Description |
---|---|---|
x-api-key | string | API authentication key |
Request Body
Name | Type | Description |
---|---|---|
callback | string | Callback address to call when event occurs |
category | string | Cryptocurrency Types(btc,bch,ltc,dash,eth,xmr) |
address | string | Cryptocurrency Address |
DeleteHook
POST
https://api.blocksdk.com/v1/hook/{hook_id}/delete
Path Parameters
Name | Type | Description |
---|---|---|
hook_id | string | aWeb Hook Unique ID |
ListHookResponse
GET
https://api.blocksdk.com/v1/hook/response
Query Parameters
Name | Type | Description |
---|---|---|
offset | number | WebHookResponse List Offset |
limit | number | Number of WebHookResponse to import |
Response
Object WebHookResponse
GetHook
GET
https://api.blocksdk.com/v1/hook/{hook_id}
Response
Object WebHook
GetHookResponse
GET
https://api.blocksdk.com/v1/hook/{hook_id}/response
Query Parameters
Name | Type | Description |
---|---|---|
offset | number | WebHookResponse List Offset |
limit | number | Number of WebHookResponse to import |
Response
Object WebHookResponse
Last updated