Returns block data as JSON by its identifier.
GEThttp://127.0.0.1:14265/api/core/v2/blocks/:blockId
Find a block by its identifier. This endpoint returns the given block as JSON.
Request
Path Parameters
blockId stringrequired
Identifier of the block.
Example: 0xf532a53545103276b46876c473846d98648ee418468bce76df4868648dd73e5d
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- application/vnd.iota.serializer-v1
- Schema
- Example (from schema)
- Empty Payload
- Transaction Payload
- Milestone Payload
- Tagged Data Payload
Schema
allOf Block
{
"allOf": {
"protocolVersion": 0,
"parents": [
"string"
],
"nonce": "string"
}
}
{
"protocolVersion": 2,
"parents": [
"0xc0b728d4c292860b57747c7bfbd989ccc40be8c76229022644c05e1352bf1ea3",
"0xe8db39681478cf9826bd2f31d045f16f5e1f478c5abc3030419da7911df9e288"
],
"payload": null,
"nonce": "1481"
}
{
"protocolVersion": 2,
"parents": [
"0x6c5bc96948813faaf6d5a5f0c6bc453bf2e5343664884aea2873041bdc47c4ca",
"0x97e2c4fce0f6e1023c19ed634e37a44744e21a743a79e8f1fc16d31dc8f47481",
"0xc107c5f3d6189954c9b1b8e2fa556db4bcf7ad2da717d328ecf6d9a841a5f37d",
"0xea19397d2670f904c4d8c8616ef7a0724321512f1c09f8eb2aeb0cc4299e2441"
],
"payload": {
"type": 6,
"essence": {
"type": 1,
"networkId": "1337133713371337",
"inputsCommitment": "0x0e6c2998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a79",
"inputs": [
{
"type": 0,
"transactionId": "0x0c78e998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a79",
"transactionOutputIndex": 0
},
{
"type": 0,
"transactionId": "0x309b169bfa60c8cf80afd730741862d200405d5df7cabfe9b564361dce1f7036",
"transactionOutputIndex": 0
},
{
"type": 0,
"transactionId": "0xc138ecdc882010245e9574fbc1f1f43cc7c182fa890e46e018365dd49de0f16e",
"transactionOutputIndex": 0
}
],
"outputs": [
{
"type": 3,
"amount": "50000000",
"unlockConditions": [
{
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0xd49931814e6bfbb8e221f1b2936e206e5a6b6abeb9c070f8603814c525c9abe3"
}
}
]
}
],
"payload": null
},
"unlocks": [
{
"type": 0,
"signature": {
"type": 0,
"publicKey": "0x40d0c00fd629a5f528e4bcab4333926a90d06613a3f36a325defcdaf4c9e4092",
"signature": "0xed4a63a3e1b22c85f9813b00a21c8576ed72c1f5bc939d01fcea7dcd678c2d0d8d80a2499965d8ce5574c9e92aa0d42b72b969bab3a2a35fe7dbc64659a0d703"
}
},
{
"type": 1,
"reference": 0
},
{
"type": 1,
"reference": 0
}
]
},
"nonce": "1020884"
}
{
"protocolVersion": 2,
"parents": [
"0x23d388b13f64c2e24788d61891079c74daf6d036b768d75ad38e473c9d4da83b",
"0x242974b25cab6f8378fe718ea729fa65492f03df4ce74b631899589242fa12b7",
"0x2a331c562b48e261c11f073c7465551ffcc80c35ab6d09f4fd1cc81782e5fdc1",
"0x438a14a651b8872896b4e57c92041e8962ca7d78cc38c774534020feefeff31a",
"0x73c90398fb548a4410b49264e182e58a91baeecaa949cbfc1d01a9066cbd9935",
"0xb9adfdc1effd3242b5c1d7b6df43d4b53e58943e820ced89c7dd39b8b52fcef0"
],
"payload": {
"type": 1,
"index": 16241,
"timestamp": 1617959712,
"protocolVersion": 2,
"previousMilestoneId": "0xa6db9d0b3ecb274d90c21e9dde04012b2d13ad8aa0b90e82e7d3b626be67119d",
"parents": [
"0x23d388b13f64c2e24788d61891079c74daf6d036b768d75ad38e473c9d4da83b",
"0x242974b25cab6f8378fe718ea729fa65492f03df4ce74b631899589242fa12b7",
"0x2a331c562b48e261c11f073c7465551ffcc80c35ab6d09f4fd1cc81782e5fdc1",
"0x438a14a651b8872896b4e57c92041e8962ca7d78cc38c774534020feefeff31a",
"0x73c90398fb548a4410b49264e182e58a91baeecaa949cbfc1d01a9066cbd9935",
"0xb9adfdc1effd3242b5c1d7b6df43d4b53e58943e820ced89c7dd39b8b52fcef0"
],
"inclusionMerkleRoot": "0x0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8",
"appliedMerkleRoot": "0x9cd745ef6800c8e8c80b09174ee4b250b3c43dfa62d7c6a4e61f848febf731a0",
"publicKeys": [
"0x7205c145525cee64f1c9363696811d239919d830ad964b4e29359e6475848f5a",
"0xe468e82df33d10dea3bd0eadcd7867946a674d207c39f5af4cc44365d268a7e6"
],
"options": [
{
"type": 1,
"targetMilestoneIndex": 16245,
"protocolVersion": 2,
"params": "0x174612e0a436f756e743a203037323935320a54696d657374616d703a203132372e3030302e3030302e303030"
}
],
"signatures": [
"0xa642e96f71094f8523790131481e0fbfdc8265caa8e4b08793628b286065c317a5595d56edb5e918b24d4ee749768a2b5ae6010e751bf31f0d8145a390b82c00",
"0x4bdfa2684bed01ce3a9a630b0688e868c290b8524c679daa79cb9d9f0f2aa5c57cf00a0fc694d1fed3696053ffa9bba6154ccb1564532cd49f807ba77de9a70c"
]
},
"nonce": "1229782938247321090"
}
{
"protocolVersion": 2,
"parents": [
"0x222e88a63e5aca8ef48d3b8749e2fab51d1bc7c34c5604a2933ca2f180b342c9",
"0xa22137ebe61435c6d0f3e16ad148376778d7bfb36e27329f02c221ec109525a6",
"0xa6db9d0b3ecb274d90c21e9dde04012b2d13ad8aa0b90e82e7d3b626be67119d",
"0xfd31d9c926b5d97ae016535d66baee511dfa3b713b61d8eba2ae5c9929e38ca7"
],
"payload": {
"type": 5,
"tag": "0x68656c6c6f20776f726c64",
"data": "0x5370616d6d696e6720646174612e0a436f756e743a203037323935320a54696d657374616d703a20323032312d30322d31315431303a32333a34392b30313a30300a54697073656c656374696f6e3a203934c2b573"
},
"nonce": "2102864"
}
- Schema
Schema
string
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"
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'http://127.0.0.1:14265/api/core/v2/blocks/:blockId' \
-H 'Accept: application/json'
ResponseClear