Get Epoch Info
GET/epoch/:epoch_id
Get epoch information for a given epoch ID.
Args:
request (Request): The incoming request object.
response (Response): The outgoing response object.
epoch_id (int): The epoch ID for which to retrieve information.
rate_limit_auth_dep (RateLimitAuthCheck, optional): The rate limit authentication check dependency. Defaults to rate_limit_auth_check.
Returns:
dict: A dictionary containing epoch information including timestamp, block number, and epoch end.
Request
Path Parameters
epoch_id Epoch Idrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
- any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- MOD1
- MOD2
- ]
- ]
detail object[]
loc object[]required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...