Check if the account is ready to issue a block.
GET/api/core/v3/accounts/:bech32Address/congestion
Check the readiness of the node to issue a new block, the reference mana cost based on the rate setter and current network congestion, and the block issuance credits of the requested account.
Request
Path Parameters
The Account Address in bech32.
Responses
- 200
- 400
- 403
- 500
- 503
Successful operation.
- application/json
- Schema
- Example (from schema)
- CongestionResponse
Schema
The slot index for which the congestion estimate is provided.
Indicates if a node is ready to issue a block in a current congestion or should wait.
The cost in mana for issuing a block in a current congestion estimated based on RMC and slot index.
The Block Issuance Credits of the requested account.
{
"slot": 0,
"ready": true,
"referenceManaCost": "string",
"blockIssuanceCredits": "string"
}
{
"slot": 20,
"ready": true,
"referenceManaCost": "50000",
"blockIssuanceCredits": "10000000"
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 400,
"message": "invalid data provided"
}
}
Unsuccessful operation: indicates that the endpoint is not available for public use.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that an unexpected, internal server error happened which prevented the node from fulfilling the request.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}
Unsuccessful operation: indicates that the node is not synced.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
The application error code.
The error reason.
{
"error": {
"code": 503,
"message": "service unavailable"
}
}