buildCheckoutSendTransactionFailed function

Map<String, Object?> buildCheckoutSendTransactionFailed(
  1. String error
)

Builds the reply sent back when the transaction could not be signed / broadcast. error is shown to the user.

Implementation

Map<String, Object?> buildCheckoutSendTransactionFailed(String error) {
  return <String, Object?>{
    'event': 'crypto:send-transaction:failed',
    'data': <String, Object?>{'error': error},
  };
}