diff --git a/proto/utxorpc/v1alpha/query/query.proto b/proto/utxorpc/v1alpha/query/query.proto index 89a9582..b9aa78b 100644 --- a/proto/utxorpc/v1alpha/query/query.proto +++ b/proto/utxorpc/v1alpha/query/query.proto @@ -13,6 +13,13 @@ message ChainPoint { bytes hash = 2; // Block hash. } +message AnyChainBlock { + bytes native_bytes = 1; // Original bytes as defined by the chain + oneof chain { + utxorpc.v1alpha.cardano.Block cardano = 2; // A parsed Cardano block. + } +} + // Represents a reference to a transaction output message TxoRef { bytes hash = 1; // Tx hash. @@ -121,6 +128,7 @@ message AnyChainTx { oneof chain { utxorpc.v1alpha.cardano.Tx cardano = 2; // A Cardano transaction. } + AnyChainBlock block = 3; // Block containing the transaction } // Response containing the transaction associated with the requested hash. diff --git a/proto/utxorpc/v1alpha/watch/watch.proto b/proto/utxorpc/v1alpha/watch/watch.proto index b72809c..99c89ed 100644 --- a/proto/utxorpc/v1alpha/watch/watch.proto +++ b/proto/utxorpc/v1alpha/watch/watch.proto @@ -11,6 +11,13 @@ message BlockRef { bytes hash = 2; // Hash of the content of the block } +message AnyChainBlock { + bytes native_bytes = 1; // Original bytes as defined by the chain + oneof chain { + utxorpc.v1alpha.cardano.Block cardano = 2; // A parsed Cardano block. + } +} + // Represents a tx pattern from any supported blockchain. message AnyChainTxPattern { oneof chain { @@ -38,6 +45,7 @@ message AnyChainTx { oneof chain { utxorpc.v1alpha.cardano.Tx cardano = 1; // A Cardano transaction. } + AnyChainBlock block = 2; // Block containing the transaction } // Response containing the matching chain transactions.