Skip to main content

Get Contract Status

Retrieves the status of various contract components for a specific node, including burn, fee, listing, rent, and secondary statuses.

Request

GET /v2/admin/node/{node_id}/contract/status

Parameters

NameTypeInDescription
node_idstringpathRequired. The ID of the node to retrieve contract status for

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --request GET \
--url '\{\{baseUrl\}\}/v2/admin/node/67d6bc4c79cbf60512347a29/contract/status' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \

Response

{
"data": {
"burn": {
"status": 2,
"error": null
},
"fee": {
"status": 3,
"error": null
},
"listing": {
"status": 3,
"error": null
},
"rent": {
"status": 3,
"error": null
},
"secondary": {
"status": 3,
"error": null
}
}
}

Response Fields

FieldTypeDescription
data.burn.statusnumberStatus code for the burn contract component
data.burn.errorstringError message for burn component (null if no error)
data.fee.statusnumberStatus code for the fee contract component
data.fee.errorstringError message for fee component (null if no error)
data.listing.statusnumberStatus code for the listing contract component
data.listing.errorstringError message for listing component (null if no error)
data.rent.statusnumberStatus code for the rent contract component
data.rent.errorstringError message for rent component (null if no error)
data.secondary.statusnumberStatus code for the secondary contract component
data.secondary.errorstringError message for secondary component (null if no error)

Status Codes

Status CodeDescription
200Success
401Unauthorized - Invalid or missing authentication token
404Not Found - Node ID does not exist
500Internal Server Error

Contract Status Values

Status ValueDescription
1 (Started)The transaction has been created
2 (InProgress)The transaction is being processed by the relevant unit
3 (Done)The transaction has been successfully completed
4 (Error)The transaction has failed to complete