Parameters
string
required
Hash of the block (32 bytes)
boolean
required
If
true, returns full transaction objects; if false, returns transaction hashesReturns
object
Block object or
nullShow properties
Show properties
string
Block number (hex)
string
Block hash (32 bytes)
string
Parent block hash
string
PoW nonce (8 bytes)
string
SHA3 of uncles data
string
Bloom filter for logs
string
Root of transaction trie
string
Root of state trie
string
Root of receipts trie
string
Beneficiary address
string
Block difficulty (hex)
string
Total chain difficulty (hex)
string
Extra data field
string
Block size in bytes (hex)
string
Max gas allowed (hex)
string
Total gas used (hex)
string
Unix timestamp (hex)
array
Transaction objects or hashes
array
Array of uncle hashes
string
Base fee per gas (EIP-1559)
Example
curl -X POST "https://edge.goldsky.com/standard/evm/1?secret=demo" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": ["0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", false], "id": 1}'
const response = await fetch('https://edge.goldsky.com/standard/evm/1?secret=demo', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
false
],
"id": 1
})
});
const { result } = await response.json();
console.log(result);
import requests
response = requests.post(
'https://edge.goldsky.com/standard/evm/1?secret=demo',
json={
"jsonrpc": "2.0",
"method": "eth_getBlockByHash",
"params": [
"0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae",
false
],
"id": 1
}
)
print(response.json()['result'])