BuildPaymentRequirementsParams
このコンテンツはまだ日本語訳がありません。
Defined in: src/x402/payment-requirements.ts:53
Parameters for buildPaymentRequirements.
Properties
amount
readonlyamount:string|bigint
Defined in: src/x402/payment-requirements.ts:61
Atomic-unit amount. Accepts bigint (preferred) or a decimal string.
asset
readonlyasset:`0x${string}`
Defined in: src/x402/payment-requirements.ts:57
ERC-20 contract address of the token to be transferred.
chainId
readonlychainId:137|80002
Defined in: src/x402/payment-requirements.ts:55
Numeric chain ID; converted to the CAIP-2 eip155:{chainId} form.
extra?
readonlyoptionalextra?:Record<string,unknown>
Defined in: src/x402/payment-requirements.ts:75
Optional explicit extra payload. When omitted and asset is JPYC,
kawasekit injects a default { assetTransferMethod: "eip3009", name: "JPY Coin", version: "1" }.
For non-JPYC assets extra is required (the client needs at least
name / version to reconstruct the EIP-712 domain).
maxTimeoutSeconds?
readonlyoptionalmaxTimeoutSeconds?:number
Defined in: src/x402/payment-requirements.ts:68
Optional. Defaults to X402_DEFAULT_MAX_TIMEOUT_SECONDS.
The maximum wall-clock time the client may take to produce a signed payload after receiving this 402 response.
payTo
readonlypayTo:`0x${string}`
Defined in: src/x402/payment-requirements.ts:59
Recipient wallet address.