Find the metadata of a given block.
GEThttp://127.0.0.1:14265/api/core/v3/blocks/:blockId/metadata
Find the metadata of a given block.
Request
Path Parameters
Identifier of the block.
Responses
- 200
- 400
- 403
- 404
- 500
- 503
Successful operation.
- application/json
- Schema
- Example (from schema)
- New Block with Transaction Payload
- New Block without Transaction Payload
- Confirmed with Transaction Payload
- Confirmed without Transaction Payload
- Conflicting with Transaction Payload
Schema
1
- denotes that the block is too old to issue.2
- denotes that the block's parents are too old.3
- denotes that one of block's parents does not exist.4
- denotes that one of block's parents is invalid.5
- denotes that the issuer account could not be found.6
- denotes that the block version is invalid to retrieve the corresponding protocol information.7
- denotes that the Mana cost could not be calculated.8
- denotes that the issuer account burned insufficient Mana for the block.9
- denotes that the account is invalid, e.g. the account has negative Block Issuance Credits, or the account has expired.10
- denotes that the signature is invalid.11
- denotes that the block is dropped due to congestion.12
- denotes that the payload is invalid.255
- denotes that the block is invalid.
The identifier of the block. Hex-encoded with 0x prefix.
Possible values: [pending
, confirmed
, finalized
, rejected
, failed
]
If pending
, the block is stored but not confirmed. If confirmed
, the block is confirmed with the first level of knowledge. If finalized
, the block is included and cannot be reverted anymore. If rejected
, the block is rejected by the node, and user should reissue payload if it contains one. If failed
, the block is not successfully issued due to failure reason.
Possible values: [1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
, 12
, 255
]
Values:
transactionMetadata TransactionMetadataResponse
{
"blockId": "string",
"blockState": "pending",
"blockFailureReason": 1,
"transactionMetadata": {
"transactionId": "string",
"transactionState": "pending",
"transactionFailureReason": 1
}
}
{
"blockId": "0x0482f0eba39a23c9a13072c93d828b55543132c47f5f57514d9e55535e9d4f4f35000000",
"blockState": "pending",
"transactionMetadata": {
"transactionId": "0x72f0dfa9ad116ade8bdac8ef291ed2fb8065c6c75d5d3666e8b2053696c94a9e00001000",
"transactionState": "pending"
}
}
{
"blockId": "0x0482f0eba39a23c9a13072c93d828b55543132c47f5f57514d9e55535e9d4f4f35000000",
"blockState": "pending"
}
{
"blockId": "0xf7ac0552041789a3931ae76eafa47df063632cddd3f8b11bd0bfffba1bc8c46800000000",
"blockState": "confirmed",
"transactionMetadata": {
"transactionId": "0x72f0dfa9ad116ade8bdac8ef291ed2fb8065c6c75d5d3666e8b2053696c94a9e00001000",
"transactionState": "confirmed"
}
}
{
"blockId": "0x3848a6d17070830206e5032fbce2ae3939e60eec0816546e074316b1f66977d04d010000",
"blockState": "confirmed"
}
{
"blockId": "0x3848a6d17070830206e5032fbce2ae3939e60eec0816546e074316b1f66977d04d010000",
"blockState": "confirmed",
"transactionMetadata": {
"transactionId": "0x72f0dfa9ad116ade8bdac8ef291ed2fb8065c6c75d5d3666e8b2053696c94a9e00001000",
"transactionState": "failed",
"transactionFailureReason": 2
}
}
Unsuccessful operation: indicates that the provided data is invalid.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"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
{
"error": {
"code": 403,
"message": "not available for public use"
}
}
Unsuccessful operation: indicates that the requested data was not found.
- application/json
- Schema
- Example (from schema)
Schema
error objectrequired
{
"error": {
"code": 404,
"message": "could not find data"
}
}
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
{
"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
{
"error": {
"code": 503,
"message": "service unavailable"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'http://127.0.0.1:14265/api/core/v3/blocks/:blockId/metadata' \
-H 'Accept: application/json'