createOmniaL2PaymentPort
@totemsdk/edge-adapters / createOmniaL2PaymentPort
Function: createOmniaL2PaymentPort()
createOmniaL2PaymentPort(
config):EdgePaymentPort
Omnia L2 payment adapter.
Routes payments over Omnia payment channels using multi-hop HTLC execution. The local node must already have open channels forming a path to the recipient.
pay() finds a route, builds a PaymentRequest, and executes atomically:
- Forward phase — locks HTLCs across each hop.
- Reveal phase — reveals the preimage in reverse to settle all hops. Rollback (best-effort timeoutHTLC) fires on any failure.
Parameters
config
Returns
EdgePaymentPort