REST API›Wallet & Transact›Webhook

GET

Returns block webhooks. The types of webhooks are block and wallet_confirmation notifications.

Path Params

  • coin string required
    A cryptocurrency or token ticker symbol

Responses

200
OK

Response Body

object

The block webhooks of a user for a coin.
  • webhooks array of objects required
    webhooks object
    • id string required

      matches ^[0-9a-f]{32}$

    • created string date-time required
    • coin string required
      A cryptocurrency or token ticker symbol.
    • type string enum required
      The type of event the webhook listens to, either block or wallet_confirmation.
      blockwallet_confirmation
    • url string uri required
    • version number required
      2 for coins running on API v2.
    • state string enum required
      If 'active', indicates the webhook can trigger and send to the URL. If 'suspended', indicates the webhook can't trigger.
      activesuspended
    • successiveFailedAttempts number required
    • listenToFailureStates boolean required
      Whether or not to listen to failed transactions on chain.
    • label string
      Label of the webhook.
    • scope string enum
      The scope of the webhook. Not stored for webhooks owned by a user, so usually absent.
      walletenterpriseorganizationsafe
    • userId string
      The ID of the user that owns the webhook.

      matches ^[0-9a-f]{32}$

    • numConfirmations number
      Number of confirmations before the webhook is triggered.
    • lastAttempt string date-time
    • failingSince string date-time
400
Bad Request

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id
401
Unauthorized

Response Body

object

  • name string
    Error code
  • context map of objects required
    Properties that apply to a specific error name
    context object
    • <key> object
  • error string required
    Human-readable error message
  • requestId string required
    Client request id