This event is triggered when:
- A customer has a rule using the
event_type
as a variable type, with the variable set toblock
. - A new
block
is mined or validated on the blockchain.
Supported Protocols
bitcoin/mainnet
bitcoin/testnet
bitcoincash/mainnet
dogecoin/mainnet
ethereum/mainnet
ethereum/holesky
litecoin/mainnet
optimism/mainnet
polkadot/mainnet
polkadot/westend
polygon/mainnet
polygon/amoy
Schema
{
"data": {
"block_hash": "string",
"block_number": "integer",
"block_timestamp": "integer",
"parent_hash": "string"
}
}
The table below shows the schema breakdown:
Field | Type | Description |
---|---|---|
block_hash | string | The block hash. |
block_number | integer | The block number. |
block_timestamp | integer | The UNIX timestamp when the block was mined/validated. |
parent_hash | string | The hash of the parent block. |
Examples
Bitcoin Example
{
"protocol": "bitcoin",
"network": "mainnet",
"event_type": "unified_block",
"data": {
"block_hash": "0000000000000000000278b53131091627eaa00f772f3c7b2a59c374666520d7",
"block_number": 831663,
"block_timestamp": 1708679008,
"parent_hash": "00000000000000000001030ba3d1016bd94e4c48b90b3fd64d1b18bdb29c4f6f"
}
}
Bitcoin Cash Example
Note:
Bitcoin Cash (BCH) address events use the Cash Address format with the "
bitcoincash
: prefix". To convert between formats, you can use this Cash Address Converter.
{
"protocol": "bitcoincash",
"network": "mainnet",
"event_type": "unified_block",
"data": {
"block_hash": "0000000000000000016cbf11bbdba1f50bc5f3a66518b18608bf336921b6a1d4",
"block_number": 865738,
"block_timestamp": 1727716896,
"parent_hash": "000000000000000000b1bc726d47c1b5eeeeafe129e7fe69e49aa7d933d67eb6"
}
}
Optimism Example
{
"protocol": "optimism",
"network": "mainnet",
"event_type": "unified_block",
"data": {
"block_hash": "0x0ef57dbf9aaa36a95f2805b0c5f899d8a6e330ccf922bd4189851ddc7a6666fa",
"block_number": 126441808,
"block_timestamp": 1728482393,
"parent_hash": "0x4bd76f1774c98fbb3216c53dae5e19ad4f5332faede6dc4a1bdcde2ecfdd413b"
}
}
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.