Get events from block to block
Get events from block to block
Query Parameters
from_block number required
The minimum block number from which to get the transfers
Example: 999
to_block number required
The maximum block number from which to get the transfers
Example: 1000
cursor string
The cursor returned in the previous response (used for getting the next page).
limit number
Number of items returned, default: 20
Responses
- 200
200 Returns the events and corresponding date and timestamp
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
cursor string
The cursor returned in the previous response (used for getting the next page)
page number required
Page of results
limit number required
Limit of results
total_items number required
Total returned result items
data object[] required
[
{
"cursor": "string",
"page": 0,
"limit": 0,
"total_items": 0,
"data": [
{
"tx_hash": "0x8c7a005d0c03b6c696d46ebc8a6ea1a4ebf7593154ccc30e98b7388eb7a443a8",
"tx_index": "0x8c7a005d0c03b6c696d46ebc8a6ea1a4ebf7593154ccc30e98b7388eb7a443a8",
"contract_address": "0x0000000000000000000000000000000000001003",
"block_hash": 1,
"block_number": 1,
"timestamp": 1661314004,
"block_time": "1970-01-19T12:04:31.492Z",
"log_index": "0",
"data": "0",
"topic0": "string",
"topic1": "string",
"topic2": "string",
"topic3": "string",
"removed": "0"
}
]
}
]
GET /v1/events/block-to-block
Authorization
name: x-api-keytype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
python / requests
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
go / native
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
nodejs / axios
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
ruby / Net::HTTP
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
csharp / httpclient
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
php / cURL
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
java / unirest
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'
powershell / RestMethod
curl -L -X GET 'https://dev-eth-mainnet-api.blocklens.io/v1/events/block-to-block' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>'