getWalletEventData method

  1. @override
Map<String, dynamic> getWalletEventData()
override

Wallet-specific event data (to be implemented by concrete events)

Implementation

@override
Map<String, dynamic> getWalletEventData() {
  return {
    'txid': txid,
    'rawHex': rawHex,
    'blockHeight': blockHeight,
    'bumpProof': bumpProof,
    'totalOutputSats': totalOutputSats,
    'numInputs': numInputs,
    'numOutputs': numOutputs,
    'txVersion': txVersion,
    'txLockTime': txLockTime,
    'walletReceivingAddresses': walletReceivingAddresses,
    'walletReceivedSats': walletReceivedSats,
    'totalInputSats': totalInputSats,
    'sendingAddresses': sendingAddresses,
    if (ancestors.isNotEmpty) 'ancestors': [for (final a in ancestors) a.toMap()],
    if (counterpartyMarker != null) 'counterpartyMarker': counterpartyMarker,
    if (memo != null) 'memo': memo,
  };
}