Returns the outputId of the current unspent nft output for nftId.
GEThttp://127.0.0.1:14265/api/indexer/v1/outputs/nft/:nftId
Returns the outputId of the current nft output for nftId.
Request
Path Parameters
nftId stringrequired
Unique identifier of the nft.
Example: 0x19c82b32761fd8729a1a6c77f7c17597e4b9b01759794e52381f6a0050b0c11f
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- Query results in single outout
Schema
ledgerIndex integerrequired
The current ledger index for which the request was made.
cursor stringnullable
The cursor to use for getting the next page of results.
items string[]required
The output IDs (transaction hash + output index) of the outputs satisfying the query. Hex-encoded with 0x prefix.
{
"ledgerIndex": 0,
"cursor": "string",
"items": [
"string"
]
}
{
"ledgerIndex": 101,
"items": [
"0x0c78e998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a790000"
]
}
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/indexer/v1/outputs/nft/:nftId' \
-H 'Accept: application/json'
ResponseClear