Get desktop application:
View/edit binary Protocol Buffers messages
Execution Data API provides access to execution data from the Flow network
GetExecutionDataByBlockID returns execution data for a specific block ID. Errors: - InvalidArgument is returned if the request contains an invalid block ID. - NotFound is returned if the start block or execution data are not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for GetExecutionDataByBlockID
Block ID of the block to get execution data for.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
The response for GetExecutionDataByBlockID
BlockExecutionData for the block.
Warning: this endpoint is deprecated and will be removed in future versions. Use SubscribeExecutionDataFromStartBlockID, SubscribeExecutionDataFromStartBlockHeight or SubscribeExecutionDataFromLatest. SubscribeExecutionData streams execution data for all blocks starting at the requested start block, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new execution data as it becomes available. Errors: - InvalidArgument is returned if the request contains an invalid start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeExecutionData
Block ID of the first block to get execution data for. Only one of start_block_id and start_block_height may be provided, otherwise an InvalidArgument error is returned. If neither are provided, the latest sealed block is used.
Block height of the first block to get execution data for. Only one of start_block_id and start_block_height may be provided, otherwise an InvalidArgument error is returned. If neither are provided, the latest sealed block is used.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeExecutionDataFromStartBlockID streams execution data for all blocks starting at the requested start block, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new execution data as it becomes available. Errors: - InvalidArgument is returned if the request contains an invalid start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeExecutionDataFromStartBlockIDRequest
Block ID of the first block to get execution data for.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeExecutionDataFromStartBlockHeight streams execution data for all blocks starting at the requested start block, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new execution data as it becomes available. Errors: - InvalidArgument is returned if the request contains an invalid start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeExecutionDataFromStartBlockHeightRequest
Block height of the first block to get execution data for.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeExecutionDataFromStartBlockHeight streams execution data for all blocks starting from the latest block. Errors: - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeExecutionDataFromLatestRequest
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
Warning: this endpoint is deprecated and will be removed in future versions. Use SubscribeEventsFromStartBlockID, SubscribeEventsFromStartHeight or SubscribeEventsFromLatest. SubscribeEvents streams events for all blocks starting at the requested start block, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided EventFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heartbeat responses (SubscribeEventsResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid EventFilter or start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeEvents
Block ID of the first block to search for events. Only one of start_block_id and start_block_height may be provided, otherwise an InvalidArgument error is returned. If neither are provided, the latest sealed block is used.
Block height of the first block to search for events. Only one of start_block_id and start_block_height may be provided, otherwise an InvalidArgument error is returned. If neither are provided, the latest sealed block is used.
Filter to apply to events for each block searched. If no filter is provided, all events are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeEventsResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeEventsFromStartBlockID streams events for all blocks starting at the requested start block id, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided EventFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heatbeat responses (SubscribeEventsResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid block ID or EventFilter. - NotFound is returned if the start block id or execution data are not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeEventsFromStartBlockID
Block ID of the first block to search for events.
Filter to apply to events for each block searched. If no filter is provided, all events are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeEventsResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeEventsFromStartHeight streams events for all blocks starting at the requested start block height, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided EventFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heatbeat responses (SubscribeEventsResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid EventFilter. - NotFound is returned if the start block height or execution data are not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeEventsFromStartHeight
Block height of the first block to search for events.
Filter to apply to events for each block searched. If no filter is provided, all events are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeEventsResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeEventsFromLatest streams events for all blocks starting from the latest sealed block. The stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided EventFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heatbeat responses (SubscribeEventsResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid EventFilter.
The request for SubscribeEventsFromLatest
Filter to apply to events for each block searched. If no filter is provided, all events are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeEventsResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
GetRegisterValues gets the values for the given register IDs as of the given block height
request for GetRegisterValues
Block height of the execution state being queried.
Register IDs of the Ledger.RegisterID format with an owner and key.
response for GetRegisterValues
raw register values at the given height.
SubscribeAccountStatusesFromStartBlockID streams account statuses for all blocks starting at the requested start block ID, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided StatusFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heartbeat responses (SubscribeAccountStatusesResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid StatusFilter or start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeAccountStatusesFromStartBlockID
Block ID of the first block to search for events. Only one of start_block_id and start_block_height may be provided, otherwise an InvalidArgument error is returned. If neither are provided, the latest sealed block is used.
Filter to apply to events for each block searched. If no filter is provided, all statuses are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeAccountStatusesFromStartHeight streams account statuses for all blocks starting at the requested start block height, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided StatusFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heartbeat responses (SubscribeAccountStatusesResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid StatusFilter or start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeAccountStatusesFromStartHeight
Block height of the first block to search for events. Only one of start_block_id and start_block_height may be provided, otherwise an InvalidArgument error is returned. If neither are provided, the latest sealed block is used.
Filter to apply to events for each block searched. If no filter is provided, all statuses are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
SubscribeAccountStatusesFromLatestBlock streams account statuses for all blocks starting at the last sealed block, up until the latest available block. Once the latest is reached, the stream will remain open and responses are sent for each new block as it becomes available. Events within each block are filtered by the provided StatusFilter, and only those events that match the filter are returned. If no filter is provided, all events are returned. Responses are returned for each block containing at least one event that matches the filter. Additionally, heartbeat responses (SubscribeAccountStatusesResponse with no events) are returned periodically to allow clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. Errors: - InvalidArgument is returned if the request contains an invalid StatusFilter or start block. - NotFound is returned if the start block is not currently available on the node. This may happen if the block was from a previous spork, or if the block has yet not been received.
The request for SubscribeAccountStatusesFromLatestBlock
Filter to apply to events for each block searched. If no filter is provided, all statuses are returned.
Interval in block heights at which the server should return a heartbeat message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse with no events, and allows clients to track which blocks were searched. Clients can use this information to determine which block to start from when reconnecting. The interval is calculated from the last response returned, which could be either another heartbeat or a response containing events.
Preferred event encoding version of the block events payload. Possible variants: 1. CCF 2. JSON-CDC
EventFilter defines the filter to apply to block events. Filters are applied as an OR operation, i.e. any event matching any of the filters is returned. If no filters are provided, all events are returned. If there are any invalid filters, the API will return an InvalidArgument error.
Used in:
, , ,A list of full event types to include. All events exactly matching any of the provided event types will be returned. Event types have 2 formats: - Protocol events: flow.[event name] - Smart contract events: A.[contract address].[contract name].[event name]
A list of contracts who's events should be included. All events emitted by any of the provided contracts will be returned. Contracts have the following name formats: - Protocol events: flow - Smart contract events: A.[contract address].[contract name] This filter matches on the full contract including its address, not just the contract's name.
A list of addresses who's events should be included. All events emitted by any contract held by any of the provided addresses will be returned. Addresses must be Flow account addresses in hex format and valid for the network the node is connected to. i.e. only a mainnet address is valid for a mainnet node. Addresses may optionally include the 0x prefix.
StatusesFilter defines the filter to apply to block events. Filters match for events with types in the included event_type list, that are related to at least one address from the provided address list. An event who's type matches but address does not is ignored, and vice versa. If no event_types are provided, all account related protocol event types are matched. If no addresses are provided, any address matches. If there are any invalid filters, the API will return an InvalidArgument error.
Used in:
, ,A list of full event types to include. All events exactly matching any of the provided event types will be returned. Event types must be protocol events. e.g. flow.[event name]
A list of addresses who's events should be included. All events matching the provided event_types that are related to any of the provided addresses will be returned. If no addresses are provided, all events matching event_types will be returned. Addresses must be Flow account addresses in hex format and valid for the network the node is connected to. i.e. only a mainnet address is valid for a mainnet node. Addresses may optionally include the 0x prefix.
The response for SubscribeAccountStatuses
Used as response type in: ExecutionDataAPI.SubscribeAccountStatusesFromLatestBlock, ExecutionDataAPI.SubscribeAccountStatusesFromStartBlockID, ExecutionDataAPI.SubscribeAccountStatusesFromStartHeight
Block ID of the block containing the events.
Block height of the block containing the events.
The message index of the response message. Used by the client to ensure they received all messages. Starts from "0".
The API may return no results which signals a periodic heartbeat. This allows clients to track which blocks were searched. Client can use this information to determine which block to start from when reconnecting.
Used in:
Unique identifier for the account being streamed
Events matching the StatusFilter in the request.
The response for SubscribeEvents
Used as response type in: ExecutionDataAPI.SubscribeEvents, ExecutionDataAPI.SubscribeEventsFromLatest, ExecutionDataAPI.SubscribeEventsFromStartBlockID, ExecutionDataAPI.SubscribeEventsFromStartHeight
Block ID of the block containing the events.
Block height of the block containing the events.
Events matching the EventFilter in the request. The API may return no events which signals a periodic heartbeat. This allows clients to track which blocks were searched. Client can use this information to determine which block to start from when reconnecting.
Timestamp from the block containing the events.
The message index of the response message. Used by the client to ensure they received all messages. Starts from "0".
The response for SubscribeExecutionData
Used as response type in: ExecutionDataAPI.SubscribeExecutionData, ExecutionDataAPI.SubscribeExecutionDataFromLatest, ExecutionDataAPI.SubscribeExecutionDataFromStartBlockHeight, ExecutionDataAPI.SubscribeExecutionDataFromStartBlockID
Block height of the block containing the execution data.
BlockExecutionData for the block. Note: The block's ID is included within the BlockExecutionData.
Timestamp from the block containing the execution data.