addSignatureAndSend method

Future<Map?> addSignatureAndSend(
  1. String address,
  2. dynamic signed,
  3. dynamic onStatusChange(
    1. String
    )
)

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;
}