Integrate with MFX Network

MFX Network is an EVM-compatible network, which means full compatibility with tools and contracts from the Ethereum ecosystem. This page contains everything you need to quickly start integrating your dApp or service.

Network Configuration

Network name:
MFX Mainnet
Chain ID:
2064
Currency symbol:
MFX
RPC (main):
https://rpc.mfx.network
Explorer:
https://explorer.mfx.network
Faucet:
https://wallet.mfx.network/v2/ (section "Faucet")

How to add MFX to MetaMask

  1. Open MetaMask โ†’ click "Add Network" (or "Add Network").
  2. Enter the network parameters listed above:
    • Network name: MFX Mainnet
    • RPC URL: https://rpc.mfx.network
    • Chain ID: 2064
    • Currency symbol: MFX
    • Block explorer: https://explorer.mfx.network
  3. Save and select the MFX network.

WalletConnect / Other Wallets

MFX Network uses a standard EVM config, so most wallets that support EVM networks can work with MFX using the same parameters. Just specify Chain ID 2064 and RPC URL https://rpc.mfx.network.

RPC Endpoints

Public RPC

https://rpc.mfx.network

Main public RPC endpoint for working with the MFX network. Supports all standard EVM JSON-RPC methods.

WebSocket

wss://rpc.mfx.network/ws

WebSocket connection for subscribing to events and receiving real-time updates.

Limits & Recommendations

  • Don't abuse frequent requests โ€” use reasonable intervals for polling.
  • Cache responses where possible (e.g., block data that doesn't change).
  • Use request batching (if your client supports it) to reduce the number of HTTP requests.
  • For production applications, it is recommended to use your own RPC nodes or proxy.

Code Examples

curl: eth_blockNumber request

curl -X POST https://rpc.mfx.network \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_blockNumber",
    "params": [],
    "id": 1
  }'

ethers.js: provider connection

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://rpc.mfx.network", {
  chainId: 2064,
  name: "MFX Mainnet"
});

// Get block number
const blockNumber = await provider.getBlockNumber();
console.log("Current block:", blockNumber);

web3.js: get address balance

import Web3 from "web3";

const web3 = new Web3("https://rpc.mfx.network");

// Get address balance
const address = "0x..."; // your address
const balance = await web3.eth.getBalance(address);
const balanceInEth = web3.utils.fromWei(balance, "ether");
console.log("Balance:", balanceInEth, "MFX");

viem: connection and balance

import { createPublicClient, http } from "viem";
import { mainnet } from "viem/chains";

const mfxChain = {
  ...mainnet,
  id: 2064,
  name: "MFX Mainnet",
  nativeCurrency: {
    name: "MFX",
    symbol: "MFX",
    decimals: 18,
  },
  rpcUrls: {
    default: {
      http: ["https://rpc.mfx.network"],
    },
  },
};

const client = createPublicClient({
  chain: mfxChain,
  transport: http(),
});

const address = "0x..."; // your address
const balance = await client.getBalance({ address });
console.log("Balance:", balance.toString(), "wei");

FAQ

Q: Is the network compatible with standard EVM contracts?

A: Yes, contracts written for Ethereum and other EVM-compatible networks generally work without changes. MFX Network uses the standard Ethereum Virtual Machine (EVM), so all familiar development tools (Hardhat, Truffle, Remix, etc.) work out of the box.

Q: Where to view logs and events?

A: All transaction events and logs can be viewed in the MFX Explorer. For each transaction, full event logs (logs), topics and data are available. You can also use standard RPC methods eth_getLogs and eth_getTransactionReceipt for programmatic access to events.

Q: Are there gas limits?

A: MFX Network uses the standard EVM gas model, as in Ethereum. Gas limit for transactions is determined automatically or can be specified manually. Fees in the MFX network are significantly lower than in Ethereum, making the network attractive for mass transactions and micropayments.

Q: How to check transaction status?

A: Transaction status can be checked in several ways:

  • Through MFX Explorer โ€” enter the transaction hash in the search.
  • Through RPC method eth_getTransactionReceipt โ€” returns a receipt with full information about execution status.
  • Through RPC method eth_getTransactionByHash โ€” returns transaction data, including block inclusion status.

Q: What libraries are supported for working with the network?

A: All popular libraries for working with EVM networks are supported: ethers.js, web3.js, viem, wagmi and others. Just specify RPC URL https://rpc.mfx.network and Chain ID 2064 when initializing the provider.

MFX RPC Endpoints (Canonical)

Use these endpoints depending on your client:

Notes: /rpc is kept for compatibility and has stricter limits. New integrations should use /rpc-wallet (wallet) or /rpc-explorer (explorer).