toJson method

  1. @override
List toJson()
override

Converts the request to JSON format.

Implementation

@override
List<dynamic> toJson() {
  return [
    slot,
    SolanaRPCUtils.createConfig([
      commitment?.toJson(),
      encoding?.toJson(),
      transactionDetails?.toJson(),
      {"maxSupportedTransactionVersion": maxSupportedTransactionVersion},
      {"rewards": rewards},
    ]),
  ];
}