GetBlockConfig class
Get Block Config
- Inheritance
-
- Object
- Serializable
- CommitmentConfig
- GetBlockConfig
Constructors
- GetBlockConfig.new({Commitment? commitment, TransactionEncoding? encoding, TransactionDetail? transactionDetails, u64? maxSupportedTransactionVersion, bool? rewards})
-
JSON RPC configurations for
getBlock
methods.
Properties
- commitment → Commitment?
-
The type of block to query for the request. If commitment is not provided, the node will
default to Commitment.finalized.
finalinherited
- encoding → TransactionEncoding?
-
The encoding for each returned transaction (default: TransactionEncoding.json).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxSupportedTransactionVersion → u64?
-
The max transaction version to return in responses. If the requested block contains a
transaction with a higher version, an error will be returned.
final
- rewards → bool?
-
If true, populate the response's rewards array (default:
true
).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transactionDetails → TransactionDetail?
-
The level of transaction details to return (default: TransactionDetail.full).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialises
this
class into a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited