/AWS1/CL_WA2PAYMENTNETWORK¶
A blockchain payment network configuration for receiving AI bot monetization payments. Specifies the blockchain chain, your wallet address on that chain, and the price per request.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_chain TYPE /AWS1/WA2BLOCKCHAINCHAIN /AWS1/WA2BLOCKCHAINCHAIN¶
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).
iv_walletaddress TYPE /AWS1/WA2WALLETADDRESS /AWS1/WA2WALLETADDRESS¶
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.
it_prices TYPE /AWS1/CL_WA2PRICE=>TT_PRICES TT_PRICES¶
The price configuration for this payment network. Currently supports a single price entry in USDC.
Queryable Attributes¶
Chain¶
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).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_CHAIN() |
Getter for CHAIN, with configurable default |
ASK_CHAIN() |
Getter for CHAIN w/ exceptions if field has no value |
HAS_CHAIN() |
Determine if CHAIN has a value |
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_WALLETADDRESS() |
Getter for WALLETADDRESS, with configurable default |
ASK_WALLETADDRESS() |
Getter for WALLETADDRESS w/ exceptions if field has no value |
HAS_WALLETADDRESS() |
Determine if WALLETADDRESS has a value |
Prices¶
The price configuration for this payment network. Currently supports a single price entry in USDC.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_PRICES() |
Getter for PRICES, with configurable default |
ASK_PRICES() |
Getter for PRICES w/ exceptions if field has no value |
HAS_PRICES() |
Determine if PRICES has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_PAYMENTNETWORKS¶
TYPES TT_PAYMENTNETWORKS TYPE STANDARD TABLE OF REF TO /AWS1/CL_WA2PAYMENTNETWORK WITH DEFAULT KEY
.