// Copyright 2017 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ----------------------------------------------------------------------------- syntax = "proto3"; option java_multiple_files = true; option java_package = "sawtooth.sdk.protobuf"; option go_package = "client_receipt_pb2"; import "transaction_receipt.proto"; // Fetches a specific txn by its id (header_signature) from the blockchain. message ClientReceiptGetRequest { repeated string transaction_ids = 1; } // A response that returns the txn receipt specified by a // ClientTransactionReceiptGetRequest. // // Statuses: // * OK - everything worked as expected, txn receipt has been fetched // * INTERNAL_ERROR - general error, such as protobuf failing to deserialize // * NO_RESOURCE - no receipt exists for the transaction id specified message ClientReceiptGetResponse { enum Status { STATUS_UNSET = 0; OK = 1; INTERNAL_ERROR = 2; NO_RESOURCE = 5; INVALID_ID = 8; } Status status = 1; repeated TransactionReceipt receipts = 2; }