Skip to content

Network config ​

Copy-paste configurations for the common toolchains. Every one of them sets evmVersion / evm_version to shanghai — read EVM compatibility if you have not, because that is not an optional detail on this chain.

The values ​

MainnetTestnet
Chain ID55520205552040
RPChttps://rpc.windpay.org/rpchttps://rpc.windpay.org/trpc
WebSocketwss://rpc.windpay.org/rpcwswss://rpc.windpay.org/trpcws
SymbolWIND (18 decimals)WIND
Explorerhttps://explorer.windpay.orghttps://texplorer.windpay.org
Min gas price476190476191 wei476190476191 wei

ethers v6 ​

js
import { ethers } from 'ethers'

const provider = new ethers.JsonRpcProvider('https://rpc.windpay.org/rpc', {
  chainId: 5552020,
  name: 'windpay',
})

const wallet = new ethers.Wallet(process.env.PRIVATE_KEY, provider)

Passing the network explicitly saves a round trip on startup and makes a wrong-endpoint mistake fail immediately rather than silently.

viem ​

ts
import { defineChain, createPublicClient, createWalletClient, http } from 'viem'
import { privateKeyToAccount } from 'viem/accounts'

export const windpay = defineChain({
  id: 5552020,
  name: 'Windpay',
  nativeCurrency: { name: 'WIND', symbol: 'WIND', decimals: 18 },
  rpcUrls: {
    default: {
      http: ['https://rpc.windpay.org/rpc'],
      webSocket: ['wss://rpc.windpay.org/rpcws'],
    },
  },
  blockExplorers: {
    default: { name: 'Windpay Explorer', url: 'https://explorer.windpay.org' },
  },
})

export const windpayTestnet = defineChain({
  ...windpay,
  id: 5552040,
  name: 'Windpay Testnet',
  rpcUrls: {
    default: {
      http: ['https://rpc.windpay.org/trpc'],
      webSocket: ['wss://rpc.windpay.org/trpcws'],
    },
  },
  blockExplorers: {
    default: { name: 'Windpay Testnet Explorer', url: 'https://texplorer.windpay.org' },
  },
  testnet: true,
})

const publicClient = createPublicClient({ chain: windpay, transport: http() })
const walletClient = createWalletClient({
  chain: windpay,
  transport: http(),
  account: privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`),
})

Hardhat ​

js
// hardhat.config.js
require('@nomicfoundation/hardhat-toolbox')

module.exports = {
  solidity: {
    version: '0.8.24',
    settings: {
      // REQUIRED. Windpay's EVM is at Shanghai; recent solc defaults to Cancun or
      // later and will emit MCOPY, which this chain does not implement.
      evmVersion: 'shanghai',
      optimizer: { enabled: true, runs: 200 },
    },
  },
  networks: {
    windpay: {
      url: 'https://rpc.windpay.org/rpc',
      chainId: 5552020,
      accounts: [process.env.PRIVATE_KEY],
      gasPrice: 476190476191,
    },
    windpayTestnet: {
      url: 'https://rpc.windpay.org/trpc',
      chainId: 5552040,
      accounts: [process.env.PRIVATE_KEY],
      gasPrice: 476190476191,
    },
  },
  etherscan: {
    apiKey: { windpay: 'not-needed' },
    customChains: [
      {
        network: 'windpay',
        chainId: 5552020,
        urls: {
          apiURL: 'https://explorer.windpay.org/api',
          browserURL: 'https://explorer.windpay.org',
        },
      },
    ],
  },
}
bash
npx hardhat run scripts/deploy.js --network windpay

Foundry ​

toml
# foundry.toml
[profile.default]
src = "src"
out = "out"
libs = ["lib"]

# REQUIRED — see the Hardhat note above.
evm_version = "shanghai"
optimizer = true
optimizer_runs = 200

[rpc_endpoints]
windpay = "https://rpc.windpay.org/rpc"
windpay_testnet = "https://rpc.windpay.org/trpc"

[etherscan]
windpay = { key = "not-needed", url = "https://explorer.windpay.org/api", chain = 5552020 }
bash
forge create src/MyContract.sol:MyContract \
  --rpc-url windpay \
  --private-key $PRIVATE_KEY \
  --with-gas-price 476190476191

web3.js ​

js
const { Web3 } = require('web3')

const web3 = new Web3('https://rpc.windpay.org/rpc')
const account = web3.eth.accounts.privateKeyToAccount(process.env.PRIVATE_KEY)
web3.eth.accounts.wallet.add(account)

wagmi / RainbowKit ​

ts
import { createConfig, http } from 'wagmi'
import { windpay } from './chains'     // the viem definition above

export const config = createConfig({
  chains: [windpay],
  transports: { [windpay.id]: http() },
})

MetaMask, programmatically ​

js
await window.ethereum.request({
  method: 'wallet_addEthereumChain',
  params: [{
    chainId: '0x54b794',                       // 5552020
    chainName: 'Windpay',
    nativeCurrency: { name: 'WIND', symbol: 'WIND', decimals: 18 },
    rpcUrls: ['https://rpc.windpay.org/rpc'],
    blockExplorerUrls: ['https://explorer.windpay.org'],
  }],
})

chainId must be the hex string. 5552020 as a number is rejected.

Deployment checklist ​

  1. evmVersion is shanghai. Not the default.
  2. Gas price at or above 476190476191.
  3. The deployer holds enough WIND — contract deployment runs to roughly 0.7 WIND at the floor price for a medium contract.
  4. Deployed to the testnet first and exercised there.
  5. Verified on the explorer afterwards, with the EVM version set to Shanghai there too.

Next step ​

Back to Introduction, or Contract addresses for the system contract ABIs.

Verified 2026-10-22. Chain IDs confirmed with eth_chainId on both /rpc (0x54b794) and /trpc (0x54b7a8). Gas price from eth_gasPrice. Endpoint paths read from the nginx vhost 2.rpc_windpay.conf. The Shanghai requirement follows from the genesis fork schedule, which contains shanghaiTime and no cancunTime. The ethers and viem snippets were exercised against the live endpoint; the Hardhat, Foundry, web3.js and wagmi snippets are standard configurations for these values and were not separately executed.

Figures on this site were read from the live chain. Each page names the getter or command used.