T402 API Reference - v2.8.0
    Preparing search index...

    Type Alias LightningPayload

    Lightning Network payment payload Contains proof of payment via preimage

    type LightningPayload = {
        paymentHash: string;
        preimage: string;
        bolt11Invoice: string;
    }
    Index

    Properties

    paymentHash: string

    SHA-256 payment hash (hex-encoded) Identifies the payment on the Lightning Network

    preimage: string

    Payment preimage (hex-encoded) Proof that the payment was completed (SHA-256(preimage) === paymentHash)

    bolt11Invoice: string

    BOLT11 invoice string that was paid