Skip to content

Chains, tokens and merchant contracts

The enabled chains and listed tokens define what the checkout can offer. This page covers Collection → Chains & tokens and Security & access → Quote signer keys, plus the checkout network order under Merchant & checkout.

Taking a chain from added to ready for payments involves, in order:

  1. Adding the chain with an RPC endpoint.
  2. Preparing a quote signer key.
  3. Deploying and verifying this merchant’s contracts (on Solana, creating the merchant account).
  4. Listing tokens.
  5. Enabling the chain.

A new chain is always added switched off. Adding a chain, changing chain settings and RPC endpoints, listing tokens and verifying contracts require the admin role and step-up verification.

FlowPayra Lite supports three chain families. They differ in address format, contract model and quote signer key:

Chain family Merchant contracts Quote signer key
EVM This merchant’s Router and Subscriptions contracts, created through the shared factory secp256k1
TRON This merchant’s Router and Subscriptions contracts, created through the shared TRON factory secp256k1 (shared with EVM)
Solana A merchant account under the shared program ed25519

The system ships presets for common networks, covering the chain identifier, name, native coin, network type, confirmations and block explorer:

Chain family Presets
EVM mainnets Ethereum, BNB Smart Chain, Polygon, Avalanche C-Chain, Arbitrum One, OP Mainnet, Base, X Layer, Linea, Scroll, Gnosis, Celo, Arc, Robinhood Chain
EVM testnets Sepolia, BNB Smart Chain Testnet, Polygon Amoy, Avalanche Fuji, Arbitrum Sepolia, OP Sepolia, Base Sepolia, X Layer Testnet, Linea Sepolia, Scroll Sepolia, Gnosis Chiado, Celo Sepolia, Arc Testnet, Robinhood Chain Testnet
TRON Mainnet, Nile, Shasta
Solana Mainnet, devnet, testnet
  1. Open Collection → Chains & tokens, select Add chain, and choose the EVM chain family.
  2. Enter the RPC URL. Built-in network (optional) can be left blank so the network is detected from the RPC; when one is chosen, the chain ID the RPC returns is checked against it.
  3. The system probes the endpoint and fills in what it finds:
    • the chain identifier and latest block, and whether it is a built-in network or a custom chain;
    • the block time, measured from recent blocks;
    • the confirmations (the recommended value for a built-in network; for a custom chain, derived from the block time for about a 2-minute wait);
    • the block explorer and network type;
    • the contract check: whether the shared contracts are present on the network.
  4. For a custom chain, add the name, native coin symbol and block explorer.
  5. Select Add chain and complete step-up verification.

Add chain dialog: choose the chain family and enter the RPC URL; the probe reports the chain identifier, block time and confirmations

On adding, the system probes the chain’s capabilities automatically: dynamic fees (EIP-1559), the safe / finalized finality tags, the block span of a single log query, and whether the CREATE2 deployment proxy, Permit2 and Multicall3 are deployed. From these it suggests a confirmation method and fee handling. The results appear on the chain’s Settings tab, where Probe again reruns them.

An EVM-compatible chain that is not a preset can be added as a custom chain; the console labels it Custom. Compared with a built-in network:

  • The name, native coin symbol and block explorer are entered by hand (a local devnet needs no explorer).
  • Confirmations are the number of blocks in about 2 minutes at the measured block time, and can be adjusted afterwards.
  • An icon can be set for the chain.
  • The chain can be enabled only after its contracts are verified.

With the TRON or Solana chain family, a wizard runs in four steps: 1. Chain, 2. Node and details, 3. Deployment, 4. Probe and enable. The steps can be finished later from the chain’s cards.

Chain family Node and details
TRON The JSON-RPC URL must end in /jsonrpc; TronGrid is the default. The HTTP API base URL, Solidity node URL and TronGrid API key are optional. On TronGrid mainnet an API key is required before enabling
Solana Enter the RPC endpoint (https://) and the commitment. Leave the program id empty for FlowPayra’s official program. With finalized, payments are booked after about 13 seconds; confirmed is faster but may still roll back

The server checks the conditions for enabling and reports what is missing: complete node details and a healthy endpoint; for TRON, recorded contracts; for Solana, a merchant account on chain that matches the active ed25519 quote signer key.

Every chain is a mainnet, a testnet or a local devnet. The network type decides routing: live orders are paid on mainnets, test orders on testnets, and local devnets take both. Built-in testnets are marked as testnets when added. The network type can be changed in the chain settings, with step-up verification.

The Enabled switch at the top right of the chain’s page controls whether the chain is offered at the checkout. Once disabled, the chain is removed from the checkout at once; payments already submitted are tracked to completion, and subscriptions in progress on the chain keep charging on schedule.

Each chain can have several endpoints, managed on its RPC endpoints tab. Two or more https endpoints and a wss endpoint are recommended. URLs that contain keys are stored encrypted.

Setting Description
Roles Read, Broadcast, Subscribe. https endpoints read and broadcast transactions; wss endpoints deliver new heads
Priority Lower goes first
Weight Share of reads within a priority
Log block span The largest block range of a single log query
Rate limit (req/s) Empty for no limit
Enabled A single endpoint can be disabled. The last readable https endpoint cannot be removed or disabled

Health checks. Every 15 seconds each endpoint is probed for chain ID, head and latency. An endpoint that falls clearly behind the highest head, or responds too slowly, is marked Degraded. Repeated failures mark it Down until it is retried after a backoff. An endpoint that returns the wrong chain ID is disabled.

Failover. Reads go to healthy endpoints first, by priority, and rotate by weight within a priority; on failure the next endpoint is tried. An error in which an endpoint reports trouble of its own (a rate or usage limit reached, historical data that needs a paid plan or an API key, an unsupported method, missing block state, a busy backend and so on) also moves the read to the next endpoint and counts as a failure of that endpoint; an error about the request itself, such as a contract revert, is returned as the answer. TRON and Solana endpoints follow the same rule. Transactions are broadcast to every endpoint that has the broadcast role. When every endpoint of an enabled chain is unavailable, the system raises an alert.

Listening. With a wss endpoint the system subscribes to new heads and scans at once; if the subscription drops, it falls back to polling at the block time. Booking always follows the index scan.

Confirmation. By block count, or by the endpoint’s safe / finalized block tag (support is checked when the setting is saved).

Reconciliation. Every hour the system rechecks recent payment events against another endpoint and recovers any that are missing.

Public RPC (for wallets adding the network) is used when a payer’s wallet lacks the network: the checkout passes it to the wallet when adding the network. Never enter an endpoint that contains an API key here.

  1. On the chain’s Tokens tab, select Add token.
  2. Enter the token contract address. Optionally enter a display symbol (the contract’s symbol is used when left empty), the peg currency (USD, EUR and so on for stablecoins; empty for other tokens) and a holder address (used to simulate a transfer and detect transfer fees).
  3. Start the probe and add the token.
  4. The token is added unlisted. After reviewing the probe result, turn on its listing switch in the table.

On a Solana chain, enter the mint address and the token program (Token or Token-2022); the symbol is required. Token-2022 extensions are checked against an allow list: mints with transfer fees, transfer hooks, a permanent delegate, non-transferable tokens, or an extension the list does not name are not accepted (see Networks and tokens).

The Tokens tab of a chain: icon, detected authorization methods, forced method and the listing switch

When a token is added, the system probes:

Probed Purpose
Symbol, name, decimals Display and amount conversion
Authorization support (EIP-3009, EIP-2612, DAI permit, Permit2) Decides which authorization methods the checkout can use and whether gas can be sponsored. EIP-3009 must pass a simulation: receiveWithAuthorization accepts calls only from the receiving address named in the authorization, and refuses signatures of another type and invalid signatures. A token that fails it, or whose check meets a node error, is not treated as supporting EIP-3009
Blocklist or freeze query function Used by payee address checks
Transfer fees and rebase interfaces The token is refused if either is detected
Proxy implementation address For upgradeable proxy tokens the implementation is recorded and shown as proxy → implementation

For an upgradeable proxy token the implementation is checked every hour. When it changes, the token is paused, quotes already issued are withdrawn, the token is probed again and an alert is raised. The token can be resumed only after an admin has reviewed the new implementation in the console with Review.

The Forced method column sets, separately for one-time payments and subscriptions, EIP-3009, Permit, Permit2 or Approve (limited to what the probe detected). The default is Automatic. With a method chosen, the checkout starts with it and keeps approve as the fallback when a signature is declined. The methods are described in Networks and tokens.

Icons can be set only for custom chains and custom tokens that have no bundled icon. Chains and tokens with a bundled icon always use it.

  • Upload an image: PNG, JPEG or WebP, up to 64 KB, 16–1024 pixels per side, at most twice as wide as high. SVG is not accepted.
  • Or enter an https image URL: the server fetches it once, stores it and serves the image itself. The checkout loads no external images.
  • When an icon is removed, the first letter is shown instead.

The token view groups tokens by symbol across chains and offers an emergency pause: a token can be paused or resumed on all chains by its symbol. While paused, the token disappears from every checkout, new quotes are refused, issued quotes are withdrawn, sponsorship is refused and subscriptions are not charged. Operators can pause; resuming requires an admin and step-up verification.

The token view: the chains each currency is on, its status with Pause and Resume, and the depeg monitoring settings

A price feed can also be set for each pegged token to watch for a depeg: the system records the peg price periodically and raises an alert when it deviates beyond the threshold or the feed cannot be read.

A quote signer key signs quotes and subscription terms. Its address is embedded in the merchant contracts on every chain, and the contracts accept only quotes signed by it. Keys are managed under Security & access → Quote signer keys.

Quote signer keys page: the active secp256k1 and ed25519 keys with their contract addresses per chain, and one pending key

  • secp256k1 keys sign on EVM and TRON chains; an ed25519 key signs on Solana chains. One key of each scheme is active at a time.
  • A key moves through Pending, Active, Retiring and Retired. In an emergency rotation the old key is also marked Compromised.

Select Generate a key, choose the key scheme and enter a name. The key is generated on the server and stored encrypted under the master key. The private key never reaches the browser, and the console neither shows nor downloads it. An offline backup is made on the server, for secp256k1 and ed25519 (Solana) keys alike:

Terminal window
flowpayra-lite signer export --address <address> --out <directory>
flowpayra-lite signer check-backup --keystore <file> --expect <address>

The backup file is encrypted under a password of at least 12 characters; keep the password apart from the file. check-backup needs neither the database nor the master key, so it runs on an offline machine; signer import --keystore <file> restores the backup as the same key (pending).

A secp256k1 key can also live in AWS KMS or Google Cloud KMS. The private key stays in the KMS; the system requests signatures by digest and checks each one locally against the signer address. This feature is off by default.

  1. Under Signing backends / KMS at the bottom of the page, select Switch KMS on.
  2. Select Add KMS connection, choose the service, and enter its location and credentials:
    • AWS KMS: the region and an optional endpoint. Credentials are an access key, or the server environment (environment variables, task role or instance role).
    • Google Cloud KMS: an optional endpoint. Credentials are a service account key file, or the metadata server.
  3. Test the connection.
  4. Add a key from the KMS: choose the connection and enter the key. The system derives the signer address from the public key and registers it as a pending key.
  5. From there the steps are the same as for a local key: deploy and verify the merchant contracts, then activate.
Item Description
Key specification ECC_SECG_P256K1 on AWS KMS; EC_SIGN_SECP256K1_SHA256 on Google Cloud KMS
Credentials Stored encrypted under the master key and not shown again
Backup A KMS key cannot be exported; backup and durability are the cloud provider’s responsibility. Keep the key and its access until every subscription on its merchant contracts has ended
When unavailable The system does not fall back to another key. The checkout stops quoting and an alert is raised; the alert clears when the KMS recovers
Scope Quote signer keys (secp256k1) only. ed25519 keys and the hot wallet remain local keys

The signer address embedded in the merchant contracts cannot be changed, so replacing a key means deploying a new set of merchant contracts for the new key.

  1. Generate a new key (or add one from a KMS). It starts as Pending.
  2. On the key’s card, select Contracts for each chain, then deploy and verify that chain’s merchant contracts for the new key.
  3. Once every enabled chain has verified contracts, select Activate this key and type the last 4 characters of the new signer address to confirm.
  4. New quotes and subscription terms now use the new key and its contracts. The previous key becomes Retiring: payments made with its quotes within their validity still land and are booked, and subscriptions on its contracts keep charging on schedule.
  5. After all of the previous key’s quotes have expired, select Retire. A retired key is still used to cancel the subscriptions on its contracts on chain, so it must be kept until those subscriptions have all ended.

Emergency rotation. When the current key has leaked or is suspected to have leaked, use Emergency activation (current key leaked). The new key is activated at once and the previous key is marked as compromised. Its open quotes and unsubmitted subscription terms are withdrawn immediately and payers obtain new quotes. The compromised key’s contracts book only payments that match quotes this system issued.

Moving subscriptions. Subscriptions on the previous key’s contracts are not moved automatically. Ask payers to move subscriptions sends the subscription.migration_requested event to the business system; payers then re-authorize to the new contracts in “My subscriptions”, using the change-payment-method flow.

Rotation actions require the admin role and step-up verification each time, are written to the audit log, and notify other admins.

Deploying and verifying merchant contracts

Section titled “Deploying and verifying merchant contracts”
Category Contents Deployed by
Shared contracts EVM: the CREATE2 deployment proxy, Permit2, the FlowPay factory and implementations. TRON: the factory. Solana: the official program FlowPayra, once per network; shared by every merchant. On EVM chains their addresses are the same everywhere, whoever deploys them
Merchant contracts EVM and TRON: this merchant’s Router and Subscriptions. Solana: the merchant account The merchant, from the console

The deployment checklist in the console only shows the state of the shared contracts; a merchant neither needs to nor can deploy them from the console. Where a network has no shared contracts, the checklist says so and gives the deploy command (deploy/shared-contracts.sh <network> for the networks the repository script supports, flowpayra-lite deploy factory --rpc <RPC> for other EVM networks); merchant contracts can be created only on networks that have them.

The merchant contracts embed the quote signer’s address, so first generate and activate a secp256k1 key on the Quote signer keys page. Without an active key, the chain page and the Contracts tab point to that step.

The sender of a deployment transaction gets no rights over the contracts: whoever pays the gas, the result is the same.

  1. On the chain’s Contracts tab, select Deploy. When rotating a key, open Contracts from that key’s card on the Quote signer keys page instead.
  2. The checklist shows the CREATE2 deployment proxy, Permit2, the FlowPay factory and implementations, the merchant Router / Subscriptions and the quote signer. Contracts that already exist are only verified.
  3. Select Deploy for the merchant Router / Subscriptions and send the transaction, paying its gas, in one of these ways:
    • a browser wallet, or a mobile wallet connected through WalletConnect;
    • a deployment private key entered in the page. The key signs in the page only and the server relays just this one deployment. A throwaway key holding only the gas is recommended.
  4. Once the deployment confirms, verification and recording start by themselves; complete step-up verification. The system compares each contract’s code hash with the release and, if they all match, records the contract addresses. If you dismissed the verification, select Verify and record below the checklist later; the addresses follow from the quote signer’s address, so nothing is lost.

EVM deployment checklist: shared contracts, merchant Router / Subscriptions, quote signer and code hashes all pass

Once verified and recorded, the chain can be enabled. Without an active quote signer key, or without its merchant contracts on the chain, enabling is refused with the reason. Multicall3 is optional; FlowPay does not depend on it.

  1. Open the chain’s contract deployment dialog. It shows the official factory FlowPayra deployed on this network.
  2. Choose TRON wallet (a browser wallet such as TronLink, OKX or Bitget) or Private key, then select Sign and deploy. The page shows the estimated TRX cost and the deploying account’s balance; the account needs enough TRX for the energy.
  3. When the transaction is on chain, the Router and Subscriptions addresses are read from the factory and filled in.
  4. Recording starts right away; complete step-up verification. If you dismissed it, select Verify and record later.

TRON deployment: the official factory, the filled-in Router and Subscriptions addresses, and Verify and record

The dialog also offers a command-line method as a fallback.

A Solana chain has no contracts to deploy. Instead, a merchant account is created under the shared program. The merchant account derives from the active ed25519 quote signer key and the network (cluster): each network has its own, at its own address.

  1. Generate and activate an ed25519 key on the Quote signer keys page.
  2. Create the merchant account in one of two ways:
    • With a Solana hot wallet configured, enabling the chain creates the account from the hot wallet automatically.
    • Without a hot wallet, select Create merchant account for the chain, choose Solana wallet (Phantom, Solflare, Backpack and others) or Private key, then select Sign and create. The key signs in the browser only and is never sent to the server; after the paying wallet signs, the server adds the quote signer’s signature and sends the transaction (the program requires both).
  3. Select Verify and record and complete step-up verification.

Solana merchant account: the official program id, the quote signer it belongs to, and a merchant account that is created and waiting to be recorded

Creating the merchant account costs a rent deposit and a transaction fee, paid by the wallet that sends the creation. The dialog shows the amounts and the paying address’s balance.

A merchant account created on Solana devnet before 2026-11-16 (the format before internal review round 3) can no longer be used once the program is upgraded: the page says it must be created again; create the new merchant account with the steps above, and it replaces the old one. Subscriptions on the old account must be opened again by their payers.

The checkout lists networks in the order the merchant sets: the first 3 are shown, the rest under More. A payer whose browser wallet is on a supported network starts on that network.

  1. Open Collection → Merchant & checkout, find the Checkout network order card on the Merchant and look tab, and select Edit.
  2. Move networks up or down, or select Sort by name to return to the default.
  3. Select Save.

Checkout network order: arranging the networks; the first 3 are shown in the checkout

  • With no custom order, networks are sorted by name.
  • With a custom order, networks enabled later follow by name.
  • The same order is used on subscription pages and when changing the payment method in “My subscriptions”.

For what the payer sees, see Networks and tokens.