Skip to content

CreateX402PaymentSignerParams

Defined in: src/x402/client.ts:61

Parameters for createX402PaymentSigner.

Properties

account

readonly account: Account

Defined in: src/x402/client.ts:75

EOA / LocalAccount that signs the EIP-3009 TransferWithAuthorization. MUST be the same address the requirements’ from will name.


defaultLifetimeSeconds?

readonly optional defaultLifetimeSeconds?: number

Defined in: src/x402/client.ts:81

Default authorization lifetime in seconds. Bounded by each requirement’s maxTimeoutSeconds at sign time. Defaults to X402_DEFAULT_AUTHORIZATION_LIFETIME_SECONDS.


domainOverride?

readonly optional domainOverride?: X402TokenDomain

Defined in: src/x402/client.ts:88

Optional override of the EIP-712 domain name / version. Skips the lookup of paymentRequirements.extra.name / .version. Useful when the caller wants to pin to a known-good domain regardless of what the server advertised.


network

readonly network: "testnet" | "mainnet"

Defined in: src/x402/client.ts:70

Declared production-vs-test intent. Each sign() call verifies that paymentRequirements.network resolves to a chain whose isTestnet agrees with this value, and throws otherwise. The point is to refuse to sign a real-funds payment when the signer was configured for testnet (e.g. the server unexpectedly demanded polygon-mainnet instead of polygon-amoy).