diff --git a/proto/utxorpc/v1alpha/cardano/cardano.proto b/proto/utxorpc/v1alpha/cardano/cardano.proto index 10fc893..f6bf062 100644 --- a/proto/utxorpc/v1alpha/cardano/cardano.proto +++ b/proto/utxorpc/v1alpha/cardano/cardano.proto @@ -30,6 +30,11 @@ message TxInput { Redeemer redeemer = 4; // Redeemer for the Plutus script. } +// Represents a list of cardano addresses +message AddressArray { + repeated bytes items = 1; // Array of Cardano addresses +} + // Represents a transaction output in the Cardano blockchain. message TxOutput { bytes address = 1; // Address receiving the output. diff --git a/proto/utxorpc/v1alpha/query/query.proto b/proto/utxorpc/v1alpha/query/query.proto index 1fe074f..3965d16 100644 --- a/proto/utxorpc/v1alpha/query/query.proto +++ b/proto/utxorpc/v1alpha/query/query.proto @@ -28,6 +28,11 @@ message TxoRef { uint32 index = 2; // Output index. } +// An array of TxoRefs +message TxoRefArray { + repeated TxoRef items = 1; +} + // Request to get the chain parameters message ReadParamsRequest { google.protobuf.FieldMask field_mask = 1; // Field mask to selectively return fields in the parsed response. @@ -99,7 +104,10 @@ message AnyUtxoData { // Request to get specific UTxOs message ReadUtxosRequest { - repeated TxoRef keys = 1; // List of keys UTxOs. + oneof query_args { + TxoRefArray txoRefs = 1; // Array of Tx Output references + utxorpc.v1alpha.cardano.AddressArray cardano_addresses = 2; // Array of Cardano addresses + } google.protobuf.FieldMask field_mask = 2; // Field mask to selectively return fields. }