X-PAYMENT header.
Scheme identification
Every payment is identified by a tuple of three values:| Field | Example | Description |
|---|---|---|
scheme | "exact" | The payment method |
network | "solana-devnet" | The blockchain network |
asset | "USDC" | The token being used |
Solana schemes
SPL Token payments
The primary Solana scheme uses SPL token transfers for payments. The client signs a transaction transferring tokens from their wallet to the merchant’s address.Native SOL
Faremeter also supports native SOL transfers for Solana payments.EVM schemes
EIP-3009 gasless transfers
The EVM scheme uses EIP-3009transferWithAuthorization for gasless USDC payments. The client signs an EIP-712 typed message authorizing the transfer. The facilitator submits the transaction on-chain and pays the gas fees.
How schemes compose
Faremeter’s plugin architecture allows multiple schemes to coexist. A server can accept both Solana and EVM payments simultaneously:Adding new schemes
New payment schemes can be added through the payment handler interface. See Extensions for community-contributed schemes.Further reading
- Wallets & Signing — How wallets interact with payment schemes.
- Networks & Assets — Supported networks and tokens.