Find an output by its identifier.
GEThttp://127.0.0.1:14265/api/core/v2/outputs/:outputId
Find an output by its identifier.
Request
Path Parameters
outputId stringrequired
Identifier of the output encoded in hex. An output is identified by the concatenation of transactionId+outputIndex
. Hex-encoded with 0x prefix.
Example: 0xfa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a20100
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- application/vnd.iota.serializer-v1
- Schema
- Example (from schema)
- unspent
- spent
Schema
metadata OutputMetadataResponse
output objectrequired
{
"metadata": {
"blockId": "string",
"transactionId": "string",
"outputIndex": 0,
"isSpent": true,
"milestoneIndexSpent": 0,
"milestoneTimestampSpent": 0,
"transactionIdSpent": "string",
"milestoneIndexBooked": 0,
"milestoneTimestampBooked": 0,
"ledgerIndex": 0
}
}
{
"metadata": {
"blockId": "0x9cd745ef6800c8e8c80b09174ee4b250b3c43dfa62d7c6a4e61f848febf731a0",
"transactionId": "0x1ee46e19f4219ee65afc10227d0ca22753f76ef32d1e922e5cbe3fbc9b5a5298",
"outputIndex": 1,
"isSpent": false,
"milestoneIndexBooked": 946699,
"milestoneTimestampBooked": 1643207130,
"ledgerIndex": 946704
},
"output": {
"type": 3,
"amount": "1000",
"unlockConditions": [
{
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0x8eaf87ac1f52eb05f2c7c0c15502df990a228838dc37bd18de9503d69afd257d"
}
}
]
}
}
{
"metadata": {
"blockId": "0x9cd745ef6800c8e8c80b09174ee4b250b3c43dfa62d7c6a4e61f848febf731a0",
"transactionId": "0xfa0de75d225cca2799395e5fc340702fc7eac821d2bdd79911126f131ae097a2",
"outputIndex": 1,
"isSpent": true,
"milestoneIndexSpent": 946700,
"milestoneTimestampSpent": 1643207176,
"transactionIdSpent": "0xaf7579fb57746219561072c2cc0e4d0fbb8d493d075bd21bf25ae81a450c11ef",
"milestoneIndexBooked": 946699,
"milestoneTimestampBooked": 1643207130,
"ledgerIndex": 946704
},
"output": {
"type": 3,
"amount": "1000",
"unlockConditions": [
{
"type": 0,
"address": {
"type": 0,
"pubKeyHash": "0x8eaf87ac1f52eb05f2c7c0c15502df990a228838dc37bd18de9503d69afd257d"
}
}
]
}
}
- Schema
Schema
string binary
output in raw binary format
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/outputs/:outputId' \
-H 'Accept: application/json'
ResponseClear