Returns basic outputs filtered based on parameters.
GET/api/indexer/v1/outputs/basic
Returns basic outputs filtered based on parameters.
Request
Query Parameters
The Bech32-encoded address that should be searched for in the Address Unlock Condition of outputs.
The Bech32-encoded address that should be searched for in all possible Unlock Conditions of outputs.
Filters outputs based on the presence of native tokens.
Filters outputs that have at least a certain number of distinct native tokens.
Filters outputs that have at most a certain number of distinct native tokens.
Filters outputs based on the presence of storage deposit return unlock condition.
Filter outputs based on the presence of a specific return address in the storage deposit return unlock condition.
Filters outputs based on the presence of timelock unlock condition.
Return outputs that are timelocked before a certain Unix timestamp.
Return outputs that are timelocked after a certain Unix timestamp.
Filters outputs based on the presence of expiration unlock condition.
Return outputs that expire before a certain Unix timestamp.
Return outputs that expire after a certain Unix timestamp.
Filter outputs based on the presence of a specific return address in the expiration unlock condition.
Filters outputs based on the presence of validated Sender (bech32 encoded).
Filters outputs based on matching Tag Feature.
Return outputs that were created before a certain Unix timestamp.
Return outputs that were created after a certain Unix timestamp.
The maximum amount of items returned in one call. If there are more items, a cursor to the next page is returned too. The parameter is ignored when pageSize is defined via the cursor parameter.
Starts the search from the cursor (confirmationMS+outputId.pageSize).
Responses
- 200
- 400
- 403
- 500
Successful operation.
- application/json
- Schema
- Example (from schema)
- Query results in 3 outputs
- No matching outputIds found
- Paging - more items found than it can fit on single page
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",
"0x0c78e998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a790100",
"0x0c78e998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a790200"
]
}
{
"ledgerIndex": 101,
"items": [
null
]
}
{
"ledgerIndex": 101,
"cursor": "61fa44a14d35ce14b9d0e7ee6ac9af70c0af156be269f69348be6d6f83c80a3a8a44ce440000.2",
"items": [
"0x0c78e998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a790000",
"0x0c78e998f5177834ecb3bae1596d5056af76e487386eecb19727465b4be86a790100"
]
}
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 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"
}
}