Returns the outputId of the current unspent alias output for aliasId.
GET/api/indexer/v1/outputs/alias/:aliasId
Returns the outputId of the current unspent alias output for aliasId.
Request
Path Parameters
Unique identifier of the alias.
Responses
- 200
- 400
- 403
- 404
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- Query results in single output
Schema
The current ledger index for which the request was made.
The cursor to use for getting the next page of results.
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
The application error code.
The error reason.
{
"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
The application error code.
The error reason.
{
"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
The application error code.
The error reason.
{
"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
The application error code.
The error reason.
{
"error": {
"code": 500,
"message": "internal server error"
}
}