Skip to content

PaymentNetwork

Source code in docs_src/capo_wafv2/types/payment_network.py
class PaymentNetwork(TypedDict, closed=True):
    chain: "capo_wafv2.types.blockchain_chain.BlockchainChain"
    """<p>The blockchain network for receiving payments. Production networks: <code>BASE</code> (Base mainnet), <code>SOLANA</code> (Solana mainnet). Test networks: <code>BASE_SEPOLIA</code> (Base Sepolia testnet), <code>SOLANA_DEVNET</code> (Solana Devnet).</p>"""
    wallet_address: "capo_wafv2.types.wallet_address.WalletAddress"
    """<p>Your wallet address on the specified blockchain where payments are sent. For EVM chains (Base, Base Sepolia), provide a valid Ethereum address (42 characters including 0x prefix). For Solana chains, provide a valid Base58-encoded public key (32-44 characters).</p> <p>For EVM addresses, WAF performs EIP-55 checksum validation for typo detection when the address uses a mix of lower and upper case letters. You can bypass this validation by providing the address in all lowercase or all uppercase.</p>"""
    prices: "capo_wafv2.types.prices.Prices"
    """<p>The price configuration for this payment network. Currently supports a single price entry in USDC.</p>"""

chain instance-attribute

The blockchain network for receiving payments. Production networks: BASE (Base mainnet), SOLANA (Solana mainnet). Test networks: BASE_SEPOLIA (Base Sepolia testnet), SOLANA_DEVNET (Solana Devnet).

prices instance-attribute

prices: Prices

The price configuration for this payment network. Currently supports a single price entry in USDC.

wallet_address instance-attribute

wallet_address: WalletAddress

Your wallet address on the specified blockchain where payments are sent. For EVM chains (Base, Base Sepolia), provide a valid Ethereum address (42 characters including 0x prefix). For Solana chains, provide a valid Base58-encoded public key (32-44 characters).

For EVM addresses, WAF performs EIP-55 checksum validation for typo detection when the address uses a mix of lower and upper case letters. You can bypass this validation by providing the address in all lowercase or all uppercase.