# Get Blockchain Event Subscription Details By Reference ID

Through this endpoint the customer can get detailed information for a callback subscription by providing its reference ID.

Currently Crypto APIs 2.0 offers certain Blockchain event endpoints which allow the user to subscribe for one/a few/all and receive callback notifications when the specific event occurs.

- **Endpoint:** `GET https://rest.cryptoapis.io/blockchain-events/{blockchain}/{network}/{referenceId}`
- **Authentication:** `x-api-key` header
- **Credits cost:** 30 credits for 1 result
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/delete-blockchain-event-subscription/get-blockchain-event-subscription-details-by-reference-id/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. Allowed values: `bitcoin`, `bitcoin-cash`, `dash`, `dogecoin`, `litecoin`, `ethereum`, `ethereum-classic`, `binance-smart-chain`, `zcash`, `polygon`, `tron`, `xrp`, `tezos`, `optimism`, `arbitrum`, `avalanche`, `solana`, `base`, `kaspa`. |
| `network` | string | yes | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "sepolia" are test networks. Allowed values: `mainnet`, `testnet`, `sepolia`, `mordor`, `amoy`, `nile`, `shadownet`, `fuji`, `devnet`. |
| `referenceId` | string | yes | Represents a unique ID used to reference the specific callback subscription. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The request has been successful. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 404 | The specified resource has not been found. |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "item": {
      "address": "tb1qtm44m6xmuasy4sc7nl7thvuxcerau2dfvkkgsc",
      "blockchain": "bitcoin",
      "callbackSecretKey": "yourSecretKey",
      "callbackUrl": "http://example.com",
      "confirmationsCount": 5,
      "createdTimestamp": 1966238648,
      "deactivationReasons": [
        {
          "reason": "maximum_retry_attempts_reached",
          "timestamp": 1642102581
        }
      ],
      "eventType": "ADDRESS_COINS_TRANSACTION_CONFIRMED",
      "isActive": false,
      "network": "testnet",
      "referenceId": "bc243c86-0902-4386-b30d-e6b30fa1f2aa",
      "transactionId": "742b4a8d54a663d372fa16abf74093595ae6fc950f2fa2bb7388c7f4d061d7b8"
    }
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.item` | object | yes |  |
| `data.item.address` | string | no | Represents the address of the transaction. |
| `data.item.blockchain` | string | yes | Represents the specific blockchain protocol name, e.g. Ethereum, Bitcoin, etc. |
| `data.item.callbackSecretKey` | string | no | Represents the Secret Key value provided by the customer. This field is used for security purposes during the callback notification, in order to prove the sender of the callback as Crypto APIs. For more information please see our [Documentation](https://project-2a14af.doxify.ai/v-1.2023-04-25-105/RESTapis/general-information/callbacks#callback-security). |
| `data.item.callbackUrl` | string | yes | Represents the URL that is set by the customer where the callback will be received at. The callback notification will be received only if and when the event occurs. |
| `data.item.confirmationsCount` | integer | no | Represents the number of confirmations, i.e. the amount of blocks that have been built on top of this block. |
| `data.item.createdTimestamp` | integer | yes | Defines the specific time/date when the subscription was created in Unix Timestamp. |
| `data.item.deactivationReasons` | array of object | no | Represents the deactivation reason details, available when a blockchain event subscription has status isActive - false. |
| `data.item.deactivationReasons[].reason` | string | yes | Defines the deactivation reason as a message. |
| `data.item.deactivationReasons[].timestamp` | integer | yes | Represents the time of the subscription deactivation. |
| `data.item.eventType` | string | yes | Defines the type of the specific event available for the customer to subscribe to for callback notification. |
| `data.item.isActive` | boolean | yes | Defines whether the subscription is active or not. Set as boolean. |
| `data.item.network` | string | yes | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while network like "testnet" is a test network. |
| `data.item.referenceId` | string | yes | Represents a unique ID used to reference the specific callback subscription. |
| `data.item.transactionId` | string | no | Represents the unique identification string that defines the transaction. |
