Skip to content

X402PaymentRequirements

PQSafe AgentPay API Reference v0.1.0


PQSafe AgentPay API Reference / X402PaymentRequirements

Interface: X402PaymentRequirements

Defined in: pqsafe/agent-pay/src/rails/x402.ts:43

Properties

amount?

optional amount?: string

Defined in: pqsafe/agent-pay/src/rails/x402.ts:51

Amount in token atomic units


maxTimeoutSeconds?

optional maxTimeoutSeconds?: number

Defined in: pqsafe/agent-pay/src/rails/x402.ts:55

Maximum age in seconds for a valid payment


network

network: string

Defined in: pqsafe/agent-pay/src/rails/x402.ts:47

Network (e.g. “base-mainnet”, “base-sepolia”)


scheme

scheme: string

Defined in: pqsafe/agent-pay/src/rails/x402.ts:45

Payment scheme: “exact” is the standard


to

to: string

Defined in: pqsafe/agent-pay/src/rails/x402.ts:53

Recipient address


tokenAddress?

optional tokenAddress?: string

Defined in: pqsafe/agent-pay/src/rails/x402.ts:49

Token contract address for payment