serializeWSolTokenTransaction static method

Future serializeWSolTokenTransaction(
  1. SerializeWSOLTransaction transaction
)

Seralize unwrap SOL transaction transaction is a SerializeWSOLTransaction object

Implementation

static Future<dynamic> serializeWSolTokenTransaction(
    SerializeWSOLTransaction transaction) async {
  const method = "enhancedSerializeTransaction";
  final params = ["unwrap-sol", transaction];
  return await SolanaService.rpc(method, params);
}