initiateHandshake method
Initiate the handshake with Coinbase Wallet app
Implementation
Future<List<ReturnValueWithAccount>> initiateHandshake(
List<Action>? initialActions,
) async {
final actionsJson =
(initialActions ?? []).map((action) => action.toJson()).toList();
final result = await CoinbaseWalletSdkFlutterPlatform.instance
.call('initiateHandshake', jsonEncode(actionsJson));
final returnValuesWithAccounts = (result ?? [])
.map(
(e) {
final map = Map<String, dynamic>.from(e);
return ReturnValueWithAccount.fromJson(map);
},
)
.cast<ReturnValueWithAccount>()
.toList();
return returnValuesWithAccounts;
}