Skip to main content
Defined in: server.ts:217 Receiver wallet configuration for createX402Server. Controls how receiver wallet addresses are resolved:
  • "eoa" — provision a CDP EVM EOA + Solana account (default)
  • "smart" — provision a CDP Smart Contract Wallet + Solana account
  • "address" — use provided addresses directly, no provisioning needed

Type Declaration

type

CDP Server Wallet (EOA). Default when type is omitted.

accountName?

Named CDP account to use as the receiver wallet. Defaults to "x402-receiver-wallet-1".

type

CDP Smart Contract Wallet.

accountName?

Named CDP smart account. Defaults to "x402-receiver-wallet-1".

ownerAccountName

Owner EOA account name. Required for "smart" type.

type

Use provided addresses directly. No wallet provisioning is performed — CDP_WALLET_SECRET is not required. API key credentials (CDP_API_KEY_ID / CDP_API_KEY_SECRET) are still needed for the CDP facilitator. At least one of evm or solana should be provided, or all routes must supply explicit payTo values in the full x402 RouteConfig format.

evm?

EVM address to receive payments.

solana?

Solana address to receive payments.