Wallet Provider
Outbound Transaction Error

Outbound Transaction Error

This event is used to communicate errors encountered when trying to "burn" existing tokens in the Ledger module.

Event Signature

An Outbound Transaction Error event has the following form:

{
  "id": "{eventId}",
  "pubkey": "{ledgerPubkey}",
  "created_at": timestamp,
  "kind": 1112,
  "tags": [
    ["p", "{minterPubkey}"],
    ["p", "{minterPubkey}"],
    ["e", "{outboundTransactionEventId}"],
    ["t", "outbound-transaction-error"],
    ...,
  ],
  "content": "{outboundTransactionErrorContent}",
  "sig": "{signature}"
}

Note:

The content itself is the JSON serialization of an object of the following form:

{
    "messages": [
      "{errorMessage}"
    ]
}

An example TypeScript type definition for this event's content is:

type OutboundTransactionErrorContent = {
    messages: [string],
};

Emitters

This event is emitted by:

Targets

This event is targeted towards:

  • The URLx module.

Listeners

This event is listened for by:

  • The URLx module.
  • Any other agent listening for this event will learn about failures to pay Lightning invoices.