Returns block data as JSON by its identifier.
GEThttp://127.0.0.1:14265/api/core/v3/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: 0x2de585533d9c9684747e49f70e5e620a4e6c3fd1c7d8b73520c198c7def29a050200000000000000
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- application/vnd.iota.serializer-v2
- Schema
- Example (from schema)
- Basic Block - Empty Payload
- Basic Block - Transaction Payload
- Basic Block - Tagged Data Payload
- Validation Block
Schema
allOf Block
{
"allOf": {
"header": {
"protocolVersion": 0,
"networkId": "string",
"issuingTime": "string",
"slotCommitmentId": "string",
"latestFinalizedSlot": 0,
"issuerId": "string"
}
}
}
{
"header": {
"protocolVersion": 3,
"networkId": "8342982141227064571",
"issuingTime": "1695275852000000000",
"slotCommitmentId": "0x3a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d70767ea58d2a",
"latestFinalizedSlot": 500,
"issuerId": "0x17432c5a7a672503480241125e3952414a7a320441080c624c264b004e09614a"
},
"body": {
"type": 0,
"strongParents": [
"0x27e0461873f37040c9e59c35ad8a106fa1b94f5ec9ef89499b31904f9a3de59be58dd44a",
"0x714821f8f257e0a502b71ac7ee57530bb9dc29fe12ff3936f925b835a297680400b76948",
"0x9951e512546cd9c9fbdab348b6cba91a601a29b50854e55a6e14f6803ca1d81ac7eff5ce",
"0xaaa7bacf26f1aa4754d42edeab45d6169ea723b7fdf0f6ff3b6ebe90d09dbff6bc553936",
"0xba75a143de4ac932986fbe7b1d78f639bc6ee8aee10d510d41572851530be884778052aa",
"0xea5315941f4337752905599710b55e64018c71f4d8f299d0636d50484d05e6ac5667b503"
],
"maxBurnedMana": "864"
},
"signature": {
"type": 0,
"publicKey": "0x2daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac",
"signature": "0x74e57aa62358bb91ee931c05337a3af2e624fa9b20b04fcb4e15da0a9a4b4281a50ef6384ab7977179d16bd326cebb714c4653e1711447f18cefe1066aa1610d"
}
}
{
"header": {
"protocolVersion": 3,
"networkId": "8342982141227064571",
"issuingTime": "1695275942000000000",
"slotCommitmentId": "0x3a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d707601000000",
"latestFinalizedSlot": 0,
"issuerId": "0x17432c5a7a672503480241125e3952414a7a320441080c624c264b004e09614a"
},
"body": {
"type": 0,
"strongParents": [
"0x27e0461873f37040c9e59c35ad8a106fa1b94f5ec9ef89499b31904f9a3de59be58dd44a",
"0x714821f8f257e0a502b71ac7ee57530bb9dc29fe12ff3936f925b835a297680400b76948",
"0x9951e512546cd9c9fbdab348b6cba91a601a29b50854e55a6e14f6803ca1d81ac7eff5ce",
"0xaaa7bacf26f1aa4754d42edeab45d6169ea723b7fdf0f6ff3b6ebe90d09dbff6bc553936",
"0xba75a143de4ac932986fbe7b1d78f639bc6ee8aee10d510d41572851530be884778052aa",
"0xea5315941f4337752905599710b55e64018c71f4d8f299d0636d50484d05e6ac5667b503"
],
"payload": {
"type": 1,
"transaction": {
"networkId": "8342982141227064571",
"creationSlot": 11,
"contextInputs": [
{
"type": 0,
"commitmentId": "0x3a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d707601000000"
},
{
"type": 1,
"accountId": "0x17432c5a7a672503480241125e3952414a7a320441080c624c264b004e09614a"
},
{
"type": 2,
"index": 0
}
],
"inputs": [
{
"type": 0,
"transactionId": "0xf09d3cd648a7246c7c1b2ba2f9182465ae5742b78c592392b4b455ab8ed7195200000000",
"transactionOutputIndex": 0
},
{
"type": 0,
"transactionId": "0xd2c5ccba12b6fad51652131289867492799c9fc5710244418aa6e955f8fa826100000000",
"transactionOutputIndex": 0
}
],
"allotments": [
{
"accountId": "0x476820096e7038107d071a4e473f1e295f346e2d0824263e5e3e7d004f6b6915",
"mana": "2189"
},
{
"accountId": "0x7e0d0a5848362b23120f55115b096774036d7610137a631413221f5573344507",
"mana": "2285"
}
],
"capabilities": "0x01",
"outputs": [
{
"type": 0,
"amount": "100000",
"mana": "0",
"unlockConditions": [
{
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0xed1484f4d1f7d8c037087fed661dd92faccae1eed3c01182d6fdd6828cea144a"
}
}
],
"features": [
{
"type": 5,
"id": "0x086372557616532f714f104e5f44297b7a286d077956291a6d4f59081f484463712a64300c00",
"amount": "0x14be8149371263f4"
}
]
},
{
"type": 1,
"amount": "100000",
"mana": "5000",
"accountId": "0x0000000000000000000000000000000000000000000000000000000000000000",
"foundryCounter": 0,
"unlockConditions": [
{
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0xed1484f4d1f7d8c037087fed661dd92faccae1eed3c01182d6fdd6828cea144a"
}
}
],
"features": [
{
"type": 2,
"entries": {
"hello": "0x776f726c64"
}
},
{
"type": 6,
"expirySlot": 4294967295,
"blockIssuerKeys": [
{
"type": 0,
"pubKeyHash": "0x295409de79016133647d4078cb01618a4ba018eb74ff613138d8ff8dc05de73c"
},
{
"type": 0,
"pubKeyHash": "0x868f4c6ef7b5b1d55838cbfb8ae4f3a9776c53cdd3e3d33000094d72acab5a2f"
}
]
},
{
"type": 7,
"stakedAmount": "10000",
"fixedCost": "400",
"startEpoch": 0,
"endEpoch": 4294967295
}
]
}
]
},
"unlocks": [
{
"type": 0,
"signature": {
"type": 0,
"publicKey": "0x2daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac",
"signature": "0x5bb409d59e01d2ea9f1a1fb67feb681d0d3ecb05787cadad2f89fdf13ef7ff03ad5cebf28df5dddd8510992596d98b133f86e14f76824e6ccc369a8f5df44806"
}
},
{
"type": 1,
"reference": 0
}
]
},
"maxBurnedMana": "864"
},
"signature": {
"type": 0,
"publicKey": "0x2daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac",
"signature": "0xb4300837bafda6e0e590124b367a1beb87abd9afbde50bc2afe5e335c7118c13ba59ba58d082eb329c84f527a536bf2c1943b3bcf0444d770dcf7b05f135f50a"
}
}
{
"header": {
"protocolVersion": 3,
"networkId": "8342982141227064571",
"issuingTime": "1695275852000000000",
"slotCommitmentId": "0x3a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d70767ea58d2a",
"latestFinalizedSlot": 500,
"issuerId": "0x17432c5a7a672503480241125e3952414a7a320441080c624c264b004e09614a"
},
"body": {
"type": 0,
"strongParents": [
"0x27e0461873f37040c9e59c35ad8a106fa1b94f5ec9ef89499b31904f9a3de59be58dd44a",
"0x714821f8f257e0a502b71ac7ee57530bb9dc29fe12ff3936f925b835a297680400b76948",
"0x9951e512546cd9c9fbdab348b6cba91a601a29b50854e55a6e14f6803ca1d81ac7eff5ce",
"0xaaa7bacf26f1aa4754d42edeab45d6169ea723b7fdf0f6ff3b6ebe90d09dbff6bc553936",
"0xba75a143de4ac932986fbe7b1d78f639bc6ee8aee10d510d41572851530be884778052aa",
"0xea5315941f4337752905599710b55e64018c71f4d8f299d0636d50484d05e6ac5667b503"
],
"payload": {
"type": 0,
"tag": "0x746167",
"data": "0x6c754128356c071e5549764a48427b"
},
"maxBurnedMana": "864"
},
"signature": {
"type": 0,
"publicKey": "0x2daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac",
"signature": "0xc2982c2476379db0c8d39a204801163fc05dc1c7aa7df537e6041f91491943ab1de29a2dfe6076588c53b8d2ccf5eabe49f2cb64198303682859fd0c58348b0d"
}
}
{
"header": {
"protocolVersion": 3,
"networkId": "8342982141227064571",
"issuingTime": "1695275852000000000",
"slotCommitmentId": "0x3a1e3b617060146e0362361a4b752833186108395f3b2b3d3e6c655e287d70767ea58d2a",
"latestFinalizedSlot": 500,
"issuerId": "0x17432c5a7a672503480241125e3952414a7a320441080c624c264b004e09614a"
},
"body": {
"type": 1,
"strongParents": [
"0x27e0461873f37040c9e59c35ad8a106fa1b94f5ec9ef89499b31904f9a3de59be58dd44a",
"0x714821f8f257e0a502b71ac7ee57530bb9dc29fe12ff3936f925b835a297680400b76948",
"0x9951e512546cd9c9fbdab348b6cba91a601a29b50854e55a6e14f6803ca1d81ac7eff5ce",
"0xaaa7bacf26f1aa4754d42edeab45d6169ea723b7fdf0f6ff3b6ebe90d09dbff6bc553936",
"0xba75a143de4ac932986fbe7b1d78f639bc6ee8aee10d510d41572851530be884778052aa",
"0xea5315941f4337752905599710b55e64018c71f4d8f299d0636d50484d05e6ac5667b503"
],
"highestSupportedVersion": 3,
"protocolParametersHash": "0x0c0a5be47669365426b3e34ecd68f8fe6c70656a54139a1e1cd6fd779bfb476f"
},
"signature": {
"type": 0,
"publicKey": "0x2daefbcbadd044da470acd2f7fcf6fcb04b873cc801e7ee408018e1dfa0257ac",
"signature": "0x3b6185bb5757d5e7fd576eeedf0c765c44cbcfe148261b8558a942867528f2cfe5a39a6ecd7bf7e82e134867a75df05385624be8c4102b3b77b397163459460b"
}
}
- 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/v3/blocks/:blockId' \
-H 'Accept: application/json'
ResponseClear