Skip to content

@lelantos-org/sdk / x402 / timeoutSeconds

Function: timeoutSeconds() ​

ts
function timeoutSeconds(req): number;

Defined in: @lelantos-org/sdk/dist/x402/eip3009.d.ts:41

Server-supplied maxTimeoutSeconds, validated and clamped to MAX_AUTHORIZATION_SECONDS. An invalid value throws X402PaymentError (not a RangeError from BigInt), so the selector falls through to the next accepts[] entry.

Parameters ​

ParameterType
reqPaymentRequirements

Returns ​

number