Query Module
Spec

Query

AnyChainDatum

An evenlope that holds a datum for any of the compatible chains

FieldTypeLabelDescription
native_bytesbytesOriginal bytes as defined by the chain
keybytes
cardanoutxorpc.v1alpha.cardano.PlutusDataA cardano UTxO

AnyChainParams

An evenlope that holds parameter data from any of the compatible chains

FieldTypeLabelDescription
cardanoutxorpc.v1alpha.cardano.PParamsCardano parameters

AnyUtxoData

An evenlope that holds an UTxO from any of compatible chains

FieldTypeLabelDescription
native_bytesbytesOriginal bytes as defined by the chain
txo_refTxoRefHash of the previous transaction.
cardanoutxorpc.v1alpha.cardano.TxOutputA cardano UTxO

AnyUtxoPattern

An evenlope that holds an UTxO patterns from any of compatible chains

FieldTypeLabelDescription
cardanoutxorpc.v1alpha.cardano.TxOutputPattern

ChainPoint

Represents a specific point in the blockchain.

FieldTypeLabelDescription
slotuint64Slot number.
hashbytesBlock hash.

ReadDataRequest

Request to get data (as in plural of datum)

FieldTypeLabelDescription
keysbytesrepeated
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields in the response.

ReadDataResponse

Response containing data (as in plural of datum)

FieldTypeLabelDescription
valuesAnyChainDatumrepeatedThe value of each datum.
ledger_tipChainPointThe chain point that represent the ledger current position.

ReadParamsRequest

Request to get the chain parameters

FieldTypeLabelDescription
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields in the parsed response.

ReadParamsResponse

Response containing the chain parameters

FieldTypeLabelDescription
valuesAnyChainParamsThe value of the parameters.
ledger_tipChainPointThe chain point that represent the ledger current position.

ReadUtxosRequest

Request to get specific UTxOs

FieldTypeLabelDescription
keysTxoRefrepeatedList of keys UTxOs.
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields.

ReadUtxosResponse

Response containing the UTxOs associated with the requested addresses.

FieldTypeLabelDescription
itemsAnyUtxoDatarepeatedList of UTxOs.
ledger_tipChainPointThe chain point that represent the ledger current position.

SearchUtxosRequest

Request to search for UTxO based on a pattern.

FieldTypeLabelDescription
predicateUtxoPredicatePattern to match UTxOs by.
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields.
max_itemsint32The maximum number of items to return.
start_tokenstringThe next_page_token value returned from a previous request, if any.

SearchUtxosResponse

Response containing the UTxOs that match the requested addresses.

FieldTypeLabelDescription
itemsAnyUtxoDatarepeatedList of UTxOs.
ledger_tipChainPointThe chain point that represent the ledger current position.
next_tokenstringToken to retrieve the next page of results, or empty if there are no more results.

TxoRef

Represents a reference to a transaction output

FieldTypeLabelDescription
hashbytesTx hash.
indexuint32Output index.

UtxoPredicate

Represents a simple utxo predicate that can composed to create more complex ones

FieldTypeLabelDescription
matchAnyUtxoPatternPredicate is true if tx exhibits pattern.
notUtxoPredicaterepeatedPredicate is true if tx doesn't exhibit pattern.
all_ofUtxoPredicaterepeatedPredicate is true if utxo exhibits all of the patterns.
any_ofUtxoPredicaterepeatedPredicate is true if utxo exhibits any of the patterns.

QueryService

Service definition for querying the state of the chain.

Method NameRequest TypeResponse TypeDescription
ReadParamsReadParamsRequestReadParamsResponseGet overall chain state.
ReadUtxosReadUtxosRequestReadUtxosResponseRead specific UTxOs by reference.
SearchUtxosSearchUtxosRequestSearchUtxosResponseSearch for UTxO based on a pattern.
ReadDataReadDataRequestReadDataResponseRead specific datum by hash