SignX402PaymentParams
Defined in: src/x402/client.ts:165
Parameters for X402PaymentSigner.sign.
Properties
idempotencyKey?
readonlyoptionalidempotencyKey?:string
Defined in: src/x402/client.ts:185
Optional reasoning-step idempotency key (M5-1, Half B). When supplied, the
EIP-3009 nonce is derived deterministically from it (instead of random)
so a re-signed same-intent payment produces the same on-chain nonce — the
token contract’s authorizationState then rejects the duplicate
settlement. For a byte-identical re-sign, also pin validBefore. Build the
key with createIdempotencyKeyBuilder from kawasekit/idempotency.
paymentRequirements
readonlypaymentRequirements:X402PaymentRequirements
Defined in: src/x402/client.ts:167
The chosen entry from the server’s accepts array.
resource?
readonlyoptionalresource?:X402ResourceInfo
Defined in: src/x402/client.ts:169
Optional X402ResourceInfo to echo back in the payload.
validAfter?
readonlyoptionalvalidAfter?:bigint
Defined in: src/x402/client.ts:171
Unix-seconds override of validAfter. Defaults to 0n.
validBefore?
readonlyoptionalvalidBefore?:bigint
Defined in: src/x402/client.ts:176
Unix-seconds override of validBefore. Defaults to now + lifetime
where lifetime = min(signer default, requirements.maxTimeoutSeconds).