Wallet Provider
Outbound Transaction Ok

Outbound Transaction Ok

This event is used to communicate the successful "burning" of existing tokens in the Ledger module.

Event Signature

An Outbound Transaction Ok event has the following form:

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

Note:

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

{
    "tokens": {
        "{tokenName}": tokenAmount,
        ...,
    },
    "memo": "{memoString}"
}

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

type OutboundTransactionOkContent = {
    tokens: Record<string, bigint>,
    memo?: string,
};

Not that both of these are equal to those for Outbound Transaction Start events.

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 successfully paid Lightning invoices.