POST
Simulate block webhook
Simulates and tests a block webhook so you can view its response.
Path Params
-
coinstring requiredA cryptocurrency or token ticker symbol -
webhookIdstring requiredThe ID of the webhook to simulate
Query Params
-
prevIdstringThe ID returned asnextBatchPrevIdby a previous response, to fetch the next page of notifications -
limitstring numberMaximum number of notifications to return
Body Params
object
Simulate V2 Block Webhook Request Body
The request body for simulating a block webhook: the hash of the block that the simulated notification is created for.
-
blockIdstring requiredThe hash of the block to create the simulated notification for.
The block must exist on the coin network.
Responses
200
OK
Response Body
object
The webhook notifications of the webhook owner after a simulation, newest first.
-
webhookNotificationsarray of objects requiredwebhookNotifications object
-
idstring required -
idempotencyKeystringUnique ID that can be used to de-duplicate notifications. -
typestringThe type of event that created the notification. -
walletstringThe ID of the wallet the notification belongs to. -
enterprisestringThe ID of the enterprise the notification belongs to. -
organizationstringThe ID of the organization the notification belongs to. -
bankAccountstringThe ID of the bank account the notification belongs to. -
urlstring uri -
hashstringA transaction hash for transactions, or a block hash for block notifications. -
coinstringA cryptocurrency or token ticker symbol. -
coinChainstringThe chain the coin belongs to. -
transferstringThe ID of the transfer the notification belongs to. -
statestringDelivery state of the notification, for exampleneworprocessed. -
simulationbooleanWhether the notification was created by a simulation. -
retriesnumberThe number of retries that have been attempted for this notification. -
webhookstringThe ID of the webhook that created the notification. -
updatedAtstring date-time -
nextAttemptstring date-time -
versionnumber2 for coins running on API v2. -
allowBlockedHostsbooleanWhether the notification may be sent to blocked hosts. Admin only. -
heightToConfirmnumberThe block height at which the notification is sent. Admin only. -
payloadstringThe payload that was sent to the URL. Admin only. -
responseobjectThe response that the URL returned. Admin only.response object
-
codenumber or string -
typestring -
bodystring -
errorstring
-
-
-
nextBatchPrevIdstringThe ID to pass asprevIdto fetch the next page. Present only when more notifications exist.
400
Bad Request
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
401
Unauthorized
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id
404
Not Found
Response Body
object
-
namestringError code -
contextmap of objects requiredProperties that apply to a specific error namecontext object
-
<key>object
-
-
errorstring requiredHuman-readable error message -
requestIdstring requiredClient request id