GET /api/chains/{chain}/block/latest
Latest block
List supported blockchain networks
Endpoint​
GET https://api.web3identity.com/api/chains/{chain}/block/latest
Parameters​
| Name | In | Type | Required | Description |
|---|---|---|---|---|
chain | path | string | âś… | Blockchain network (ethereum, base, polygon, etc) |
Example Request​
curl -s "https://api.web3identity.com/api/chains/:chain/block/latest" | jq
Responses​
200 Block data​
{
"chain": "ethereum",
"blockNumber": 19234567,
"timestamp": 1707393600,
"miner": "0x1234567890123456789012345678901234567890",
"gasUsed": 15000000,
"gasLimit": 30000000,
"baseFee": 30000000000,
"transactions": 234
}
400 Bad request - invalid parameters​
{
"example": "response"
}
402 Payment required - free tier exhausted​
{
"example": "response"
}
404 Resource not found​
{
"example": "response"
}
429 Rate Limited​
{
"example": "response"
}
500 Internal Server Error - Something went wrong on our end​
{
"error": "Internal server error",
"code": "INTERNAL_ERROR"
}
Auto-generated from OpenAPI spec