getBlock abstract method
Future<Block?>
getBlock(
- int slot, {
- Encoding? encoding,
- TransactionDetailLevel? transactionDetails,
- bool? rewards = false,
- Commitment? commitment = Commitment.finalized,
- num? maxSupportedTransactionVersion = 0,
Returns identity and transaction information about a confirmed block in the ledger
slot
slot, as u64 integer
encoding
transactionDetails
Level of transaction detail to return.
rewards
Whether to populate the rewards array. If parameter not provided, the default
includes rewards.
commitment
For commitment
parameter description see this document
Commitment.processed is not supported as commitment
.
maxSupportedTransactionVersion
Set the max transaction version to return in responses.
If the requested block contains a transaction with a higher version, an error will be returned.
If this parameter is omitted, only legacy transactions will be returned, and a block containing any versioned transaction will prompt the error.
Implementation
Future<Block?> getBlock(
int slot, {
Encoding? encoding,
TransactionDetailLevel? transactionDetails,
bool? rewards = false,
Commitment? commitment = Commitment.finalized,
num? maxSupportedTransactionVersion = 0,
});