Skip to main content
GET
/
internal
/
{shard}
/
raw
/
block
/
by-hash
/
{hash}
Get raw block by hash
curl --request GET \
  --url https://api.example.com/internal/{shard}/raw/block/by-hash/{hash}
const options = {method: 'GET'};

fetch('https://api.example.com/internal/{shard}/raw/block/by-hash/{hash}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.example.com/internal/{shard}/raw/block/by-hash/{hash}"

response = requests.get(url)

print(response.text)
false
{}

Path Parameters

shard
string
required

Shard ID

hash
string
required

Block hash (hex)

Query Parameters

withTxs
boolean

Include transactions in the block

withLogs
boolean

Include logs in the block

Response

Successful response

The response is of type object.