Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion docs/protocol/access-onchain-data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,11 @@ message SendTransactionResponse {

`GetTransaction` gets a [transaction](#transaction) by ID.

Any type of transaction - user submitted, scheduled transaction or a system transaction can be queried.

If the transaction is not found in the access node cache, the request is forwarded to a collection node.

_Currently, only transactions within the current epoch can be queried._
_Currently, only transactions within the current network upgrade can be queried._

```proto
rpc GetTransaction (GetTransactionRequest) returns (TransactionResponse)
Expand Down Expand Up @@ -347,6 +349,10 @@ message TransactionResponse {

`GetTransactionsByBlockID` gets all the [transactions](#transaction) for a specified block.

The response includes user transactions and scheduled transactions.

_Response does not include the system transaction_
Comment on lines +352 to +354
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The response includes user transactions and scheduled transactions.
_Response does not include the system transaction_
The response includes user transactions, scheduled transactions, and system transactions.


```proto
rpc GetTransactionsByBlockID(GetTransactionsByBlockIDRequest) returns (TransactionsResponse);
```
Expand All @@ -373,6 +379,8 @@ message TransactionsResponse {

`GetTransactionResult` gets the execution result of a transaction.

Any type of transaction - user submitted, scheduled transaction or a system transaction can be queried.

```proto
rpc GetTransactionResult (GetTransactionRequest) returns (TransactionResultResponse)
```
Expand Down Expand Up @@ -409,6 +417,8 @@ message TransactionResultResponse {

`GetTransactionResultByIndex` gets a transaction's result at a specified block and index.

Any type of transaction - user submitted, scheduled transaction or a system transaction can be queried.

```proto
rpc GetTransactionResultByIndex(GetTransactionByIndexRequest) returns (TransactionResultResponse);
```
Expand Down Expand Up @@ -444,6 +454,8 @@ message TransactionResultResponse {

`GetTransactionResultsByBlockID` gets all the transaction results for a specified block.

Any type of transaction - user submitted, scheduled transaction or a system transaction can be queried.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Any type of transaction - user submitted, scheduled transaction or a system transaction can be queried.
The response includes results for user transactions, scheduled transactions, and system transactions.


```proto
rpc GetTransactionResultsByBlockID(GetTransactionsByBlockIDRequest) returns (TransactionResultsResponse);
```
Expand All @@ -470,6 +482,8 @@ message TransactionResultsResponse {

`GetSystemTransaction` gets the system transaction for a block.

_Scheduled Transactions will not be included in the response_

```proto
rpc GetSystemTransaction(GetSystemTransactionRequest) returns (TransactionResponse);
```
Expand All @@ -495,6 +509,8 @@ message TransactionResponse {

`GetSystemTransactionResult` gets the system transaction result for a block.

_Scheduled Transactions will not be included in the response_

```proto
rpc GetSystemTransactionResult(GetSystemTransactionResultRequest) returns (TransactionResultResponse);
```
Expand Down