Query Module
Spec

Query

AnyChainDatum

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

FieldTypeLabelDescription
keybytes
native_bytesbytesAn opaque bytestring corresponding to native representation in the source chain.
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
txo_refTxoRefHash of the previous transaction.
native_bytesbytesAn opaque bytestring corresponding to native representation in the source chain.
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

Reques to search for UTxO based on a pattern.

FieldTypeLabelDescription
predicateUtxoPredicatePattern to match UTxOs by.
field_maskgoogle.protobuf.FieldMaskField mask to selectively return fields.

SearchUtxosResponse

Response containing the UTxOs that match the requested addresses.

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

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