Returns the outputId of the current unspent foundry output for foundryId.
GEThttp://127.0.0.1:14265/api/indexer/v1/outputs/foundry/:foundryId
Returns the outputId of the current unspent foundry output for foundryId.
Request
Path Parameters
foundryId stringrequired
Unique identifier of the foundry.
Example: 0x081505ec099896ab05d9e08fbc7101ae4dff0093b3943b28f789ed2ca728bcc8d60100000000
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/foundry/:foundryId' \
-H 'Accept: application/json'
ResponseClear