API Reference

Blocks

This endpoint returns transaction data. Return the latest as well as historical transactions.

Method: GET

Endpoint: https://api.syve.ai/v1/filter/blocks

Request Parameters

NameType(s)Description
filterbystringThe filterby parameter is used to retrieve a subset of the data. You can filter according to exact values (using eq) or between ranges (using lt, lte, gt and gte).

All fields are accepted by filterby. For all available fields look at the "Response Fields" section below.
sizeintegerThe size parameter controls how many records to return in the response. Default is 100. Maximum is 100,000.
sortbooleanIf true sorts response according to timestamp in asc order. Default: false.
eqstring, integer, doubleThe "equals to" operator. Used to retrieve records match a specific value of a field.

Must be used in combination with the filterby
lt, lteinteger, doubleThe "less than" and "less than or equal to" operators. Used in combination with filterby to retrieve records for which the values of a specific field are less than or equal to a specific number.
gt, gteinteger, doubleThe "greater than" and "greater than or equal to" operators. Used in combination with filterby to retrieve records for which the values of a specific field are greater than or equal to a specific number.
from_{block_number|timestamp}integerReturn results whose block_number or timestamp are greater than or equal to the provided value.
until_{block_number|timestamp}integerReturn results whose block_number or timestamp are less than or equal to the provided value.

Response Fields

FieldTypeDescription
transaction_hashstringThe transaction hash of the event log.
transaction_indexintegerThe position of the transaction in a block of the log.
block_numberintegerThe block number (i.e. height) of the event log.
block_hashstringThe hash of the block header of the current block.
timestampintegerUNIX timestamp in seconds.

The zero value corresponds to the 1st of January 1970 at UTC, called the Unix Epoch.
parent_hashstringThe hash of the parent block. The parent block is the block from which a block was generated.
mix_hashstringThe mix hash of the block used in the Proof of Work algorithm.
noncestringThe block nonce value used during mining to demonstrate proof of work for a block.
sha3_unclesstringThe hash of the block's uncle blocks.
difficultyintegerNote: After Proof-of-Stake this is 0
total_difficultyintegerTotal difficulty of all blocks up until the block.
size_bytesintegerThe block's size (in bytes).
base_fee_per_gas_gweidoubleThe minimum gas price (in Gwei) that can be paid for a transaction to be included in a block. The base fee was introduced with the London Hark Fork.
gas_limitintegerThe maximum amount of gas that can be used in the block.
gas_usedintegerThe total amount of gas used by all transactions in the block.
transactions_countintegerThe number of transactions in the block.
miner_addressstringThe address of the miner that mined the block.
uncle_countintegerThe number of uncle blocks included in the block. The maximum that can be included is two for any given block.

Live Example

Press Try It to make a request and see what the response looks like. Feel free to try different query parameters.

Language
Click Try It! to start a request and see the response here!