Parameters
chainId
string
default: "8217"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default: "2.0"
required
JSON-RPC version.
method
string
default: "kaia_getBlockByHash"
required
JSON-RPC method name.
Parameters: [blockHash, fullTransactions]. Positional parameters for kaia_getBlockByHash: params[0]: 32 Bytes - hash of the block where this transaction was included. Null when pending.params[1]: If true, includes full transaction objects; otherwise only hashes.
Returns
A Kaia block object. Null if the block cannot be found. Block number in hex. Null when the block is pending.
Hash of the block. Null when the block is pending.
Hash of the parent block.
Bloom filter for logs associated with this block. Null when pending.
Root of the transaction trie of the block.
Root of the final state trie of the block.
Root of the receipts trie of the block.
Author (beneficiary) address of the block.
Difficulty for this block.
Total chain difficulty up to this block.
Extra data field of the block.
Size of the block in bytes (hex).
Maximum gas limit for this block.
Total gas used by transactions in this block.
Unix timestamp of when the block was sealed.
Array containing transaction hashes or full transaction objects. Legacy transaction (pre-EIP-2718). Legacy transaction (pre-EIP-2718). 32 Bytes - hash of the transaction.
Quantity - (optional) Integer of a nonce. This allows you to overwrite your own pending transactions that use the same nonce.
32 Bytes - hash of the block where this transaction was included. Null when pending.
Block number where this transaction was included. Null when pending. The transaction’s index position in the block. Null when pending.
20 Bytes - The address the transaction is sent from.
20 Bytes - The address the transaction is directed to. (Optional when creating new contract)
Quantity - (optional) Integer of the value sent with this transaction.
Quantity - (optional) Integer of the gas price used for each paid gas.
Quantity - (optional) Integer of the gas provided for the transaction execution. (eth_call consumes zero gas)
The data sent along with the transaction.
The standardised V field of the signature.
The standardised V field of the signature (0 or 1). Only applicable to legacy transactions.
The R field of the signature.
Public key of the signer.
The chain id of the transaction, if any.
Conditional submission of the transaction. Can be an object with a block number ({ block: 1 }), a UTC timestamp in seconds ({ time: 1491290692 }), or null. UTC timestamp condition in seconds
32-byte transaction hash.
Array of uncle block hashes.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId= 8217 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "kaia_getBlockByHash",
"params": [
"0x9a4e12c1b8ef6f2f726755efaf3f0b0f3788c2d9d11b9bd65d9f8c17e7a019d2",
true
]
}'
{
"jsonrpc" : "2.0" ,
"id" : 1 ,
"result" : {}
}