Table of Contents
Endpoints
Types
For now, GetFirstRequest is empty.
Field
Type
Label
height
uint64
For now, GetLastRequest is empty.
Field
Type
Label
height
uint64
Field
Type
Label
blockID
bytes
Field
Type
Label
blockID
bytes
height
uint64
Field
Type
Label
height
uint64
Field
Type
Label
height
uint64
commit
bytes
GetHeaderRequest
Field
Type
Label
height
uint64
GetHeaderResponse
Field
Type
Label
height
uint64
data
bytes
The data field contains a CBOR-encoded Flow header (flow.Header) as payload.
Here is an example of how to decode this field in a small Go program:
var header flow.Header
err := cbor .Unmarshal (response .Data , & header )
if err != nil {
return err
}
Field
Type
Label
height
uint64
types
string
repeated
Field
Type
Label
height
uint64
types
string
repeated
data
bytes
The data field contains a CBOR-encoded slice of Flow events ([]flow.Event) as payload.
Here is an example of how to decode this field in a small Go program:
var events []flow.Event
err := cbor .Unmarshal (response .Data , & events )
if err != nil {
return err
}
Field
Type
Label
transactionID
bytes
Field
Type
Label
transactionID
bytes
data
bytes
ListCollectionsForBlockRequest
Field
Type
Label
blockID
bytes
ListCollectionsForBlockResponse
Field
Type
Label
blockID
bytes
collectionIDs
bytes
repeated
ListTransactionsForBlockRequest
Field
Type
Label
blockID
bytes
ListTransactionsForBlockResponse
Field
Type
Label
blockID
bytes
transactionIDs
bytes
repeated
ListTransactionsForCollectionRequest
Field
Type
Label
collectionID
bytes
ListTransactionsForCollectionResponse
Field
Type
Label
collectionID
bytes
transactionIDs
bytes
repeated
Field
Type
Label
height
uint64
paths
bytes
repeated
Field
Type
Label
height
uint64
paths
bytes
repeated
values
bytes
repeated