salt-sdk - v0.0.45
    Preparing search index...

    Type Alias SignedPayment

    A payment signed ahead of the request it pays for.

    Plain data, so it survives JSON.stringify and can be signed by whatever holds the payer's wallet and spent by whatever makes the call.

    type SignedPayment = {
        expiresAt?: number;
        headers: Record<string, string>;
        terms: FeeTerms;
    }
    Index
    expiresAt?: number

    When the authorisation stops being spendable, in unix seconds. Signing ahead of time buys latency, not an open-ended credit: past this the payment is dead on chain and the call it was meant for will 402. Undefined if the scheme states no deadline.

    headers: Record<string, string>

    Headers carrying the authorisation. The name depends on the protocol version the backend quoted, so read them as a map — never assume one.

    terms: FeeTerms

    The terms this was signed against.