Avalanche payments
Keep the network, token, recipient, and gas account aligned.
Network configuration
| Network | Chain ID | Native gas token |
|---|---|---|
| Avalanche testnet | 43113 | AVAX |
| Avalanche mainnet | 43114 | AVAX |
# Testnet example — supply the token used by your deployment
AVALANCHE_NETWORK=fuji
AVALANCHE_CHAIN_ID=43113
AVALANCHE_RPC_URL=https://api.avax-test.network/ext/bc/C/rpc
AVALANCHE_USDC=0xYOUR_TOKEN_CONTRACTThe configured token must have six decimals. The platform verifies the receipt’s token address, not just its symbol. Two tokens both labelled USDC are not interchangeable. Keep the policy CHAIN_ID/RPC_URL aliases aligned with AVALANCHE_CHAIN_ID/AVALANCHE_RPC_URL.
USDC and AVAX have separate jobs
USDC is the payment asset. Native AVAX pays transaction gas. The customer needs AVAX to transfer USDC. The deployment signer needs AVAX to create a contract, even when the new vault has no USDC yet.
Configure provider-funded gas in Dashboard → Network & gas. The dedicated account holds one AVAX balance on Avalanche; settlement and registry fee budgets are separate accounting limits. New provider-bound mandates use the authorized provider account as enforcer. Delegated keys stay encrypted on the server and are never pasted into chat.
Read the checkout before paying
Use the exact provider recipient and token from the checkout. Confirm the network in your wallet. Keep the same transaction hash for confirmation retries. For mandate funding, verify that the contract exists on that chain and holds the configured token before transferring.
Deploy and activate public Fuji
If a registry is already configured and verified, reuse its manifest. Provider onboarding does not require a new registry per customer or provider. Registry studio places separate-registry deployment behind an advanced disclosure once the registry is connected.
# In your own terminal; never paste the key or password into chat.
pnpm fuji:registry import
pnpm fuji:registry plan
pnpm fuji:registry deploy
pnpm fuji:registry status
# Prepare private configuration, review preflight, then activate explicitly.
pnpm fuji:prepare
pnpm fuji:activate
pnpm fuji:activate --applyImport stores an encrypted Foundry keystore. Deployment requires local review and confirmation. Signed bytes and their hash are journaled before broadcast; resume recovers those same bytes. The deployment tool verifies public Fuji genesis, bytecode, runtime and confirmations. Activation selects the verified registry and a separate public-chain database on the existing localhost ports; it does not deploy hosted web services.
Anvil can also report chain ID 43113. Its state and token/registry addresses are not public Fuji state. Keep test fixtures in a separate checkout; pnpm setup -- --anvil is explicit. Never import development balances or signing authority into the public runtime.