@@ -51,6 +51,8 @@ service AccessAPI {
51
51
52
52
// GetCollectionByID gets a collection by ID.
53
53
rpc GetCollectionByID (GetCollectionByIDRequest ) returns (CollectionResponse );
54
+ // GetFullCollectionByID gets a collection by ID.
55
+ rpc GetFullCollectionByID (GetFullCollectionByIDRequest ) returns (FullCollectionResponse );
54
56
55
57
// Transactions
56
58
@@ -189,7 +191,7 @@ service AccessAPI {
189
191
// if the status is "sealed", only sealed blocks will be returned.
190
192
rpc SubscribeBlocksFromLatest (SubscribeBlocksFromLatestRequest )
191
193
returns (stream SubscribeBlocksResponse );
192
-
194
+
193
195
// Subscribe block headers
194
196
195
197
// SubscribeBlockHeadersFromStartBlockID streams finalized or sealed block headers starting at the requested
@@ -317,11 +319,20 @@ message GetCollectionByIDRequest {
317
319
bytes id = 1 ;
318
320
}
319
321
322
+ message GetFullCollectionByIDRequest {
323
+ bytes id = 1 ;
324
+ }
325
+
320
326
message CollectionResponse {
321
327
entities.Collection collection = 1 ;
322
328
entities.Metadata metadata = 2 ;
323
329
}
324
330
331
+ message FullCollectionResponse {
332
+ repeated entities.Transaction transactions = 1 ;
333
+ entities.Metadata metadata = 2 ;
334
+ }
335
+
325
336
// Transactions
326
337
327
338
message SendTransactionRequest {
@@ -666,4 +677,4 @@ message SendAndSubscribeTransactionStatusesResponse {
666
677
TransactionResultResponse transaction_results = 1 ;
667
678
// The message index of the response message. Used by the client to ensure they received all messages. Starts from "0".
668
679
uint64 message_index = 2 ;
669
- }
680
+ }
0 commit comments