addSignatureAndSend method
onStatusChange
is a callback when tx status change.
@return txHash string
if tx finalized success.
Implementation
Future<Map?> addSignatureAndSend(
String address,
signed,
Function(String) onStatusChange,
) async {
final res = await service.addSignatureAndSend(
address,
signed,
onStatusChange,
);
if (res?['error'] != null) {
throw Exception(res?['error']);
}
return res;
}