Layer 2 ยท testnet

Hold AFG. Transact.
Never touch ETH.

AFGCoin Network is an OP Stack rollup with an ERC-4337 paymaster baked in. Your smart wallet holds only AFGCoin; gas pays itself from the same pocket.

Get test AFG Bridge L1 โ†’ L2

Live services

Everything below is HTTPS, Let's Encrypt-signed, public.

How it works

A user holds AFGCoin and zero ETH. The paymaster covers gas in ETH and is reimbursed in AFG.

  user (smart account)         AFGPaymaster              EntryPoint
    โ”‚  holds 100 AFG              โ”‚                        โ”‚
    โ”‚  holds 0 ETH                โ”‚                        โ”‚
    โ”‚                             โ”‚                        โ”‚
    โ”‚  sendUserOperation()        โ”‚                        โ”‚
    โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ  โ”‚                        โ”‚
    โ”‚  approve(paymaster, MAX)    โ”‚                        โ”‚
    โ”‚                             โ”‚  pulls AFG (pre-op)    โ”‚
    โ”‚                             โ”‚  signs paymasterData   โ”‚
    โ”‚                             โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚
    โ”‚                             โ”‚                        โ”‚  charges paymaster's
    โ”‚                             โ”‚                        โ”‚  ETH deposit for gas
    โ”‚                             โ”‚  โ—„โ”€โ”€โ”€ refund (post-op)
    โ”‚  โ—„โ”€โ”€ balance: 99.94 AFG     โ”‚

For developers

EVM-equivalent, OP Stack L2, chain id 42069.

Chain nameAFGCoin Network
Chain ID42069 (0xa455)
RPC URLhttps://rpc.afgcoin.network
WebSocketwss://ws.afgcoin.network
Bundler (ERC-4337)https://bundler.afgcoin.network
Currency symbolETH (gas) ยท AFG (paymaster)
Block time~2 s
DA modeCalldata to L1
AFGCoin ERC-200x5FbDB2315678afecb367f032d93F642f64180aa3
EntryPoint v0.70xe7f1725E7734CE288F8367e1Bb143E90bb3F0512
SimpleAccountFactory0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0
AFGPaymaster0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9

Foundry quick-start

forge create MyContract \
  --rpc-url https://rpc.afgcoin.network \
  --private-key 0x...

Hardhat config

networks: {
  afgcoin: {
    url: "https://rpc.afgcoin.network",
    chainId: 42069,
  },
},

Pay gas in AFG (with permissionless.js + viem)

const aaClient = createSmartAccountClient({
  account: simpleSmartAccount,
  chain: afgcoinNetwork,
  bundlerTransport: http("https://bundler.afgcoin.network"),
  paymaster: {
    async getPaymasterData() {
      return {
        paymaster: "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
        paymasterData: "0x",
      }
    },
  },
})
const hash = await aaClient.sendUserOperation({
  calls: [{ to: "...", data: "0x..." }],
})

Tokenomics

Total supply 1,000,000,000 AFG, hard-capped at the L1 ERC-20 constructor.

1 B total supply
  • Community / Airdrops30 %
  • Ecosystem & Grants20 %
  • Treasury (DAO-bound)20 %
  • Liquidity (DEX/CEX)10 %
  • Team & Advisors10 %
  • Staking & Sequencer Rewards10 %

Roadmap

What's shipped, what's queued.

Phase 0

Foundations & AFGCoin ERC-20

Repo, CI, AFGCoin deployed to Sepolia + Arbitrum Sepolia.

Phase 1'

Local OP Stack devnet

Kurtosis L1 + L2 producing blocks at 2 s.

Phase 2'

ERC-4337 contracts deployed

EntryPoint v0.7, SimpleAccountFactory, AFGPaymaster.

Phase 3'

Self-hosted Rundler bundler

Custom chain spec, public RPC.

Phase 4'

Pay-gas-in-AFG demo

Headline UserOp: 0.065 AFG charged, ETH untouched.

Phase 5'

Faucet UI

50 AFG/wallet/day, IP+wallet rate limit.

Phase 6'

Bridge UI

L1 โ†’ L2 ETH deposits with ~30 s confirmation.

Phase 8'

Public website + MetaMask add-network

This page; Chainlist metadata at /chain.json.

Phase 12'

Staking + governance multisig

Stake AFG, earn rewards. Treasury under Safe multisig.

Mainnet

Audit + cut over

Multi-server topology, real-key flow, monitoring.

Network added to MetaMask