getConfirmedBlock abstract method

  1. @Deprecated('Use getBlock instead')
Future<Block> getConfirmedBlock(
  1. int slot, {
  2. Encoding? encoding,
  3. TransactionDetailLevel? transactionDetails,
  4. bool? rewards = false,
  5. Commitment? commitment = Commitment.finalized,
})

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.

Implementation

@Deprecated('Use getBlock instead')
Future<Block> getConfirmedBlock(
  int slot, {
  Encoding? encoding,
  TransactionDetailLevel? transactionDetails,
  bool? rewards = false,
  Commitment? commitment = Commitment.finalized,
});