wagmihub
  • πŸ‘‹Introduction
  • 🚩Problem
  • πŸ’‘Solution
  • βš™οΈFeatures
  • πŸͺ™Token
    • πŸ“ŠTokenomics
    • ⏳Vesting Schedule
    • πŸ› οΈToken Utility
  • ⛓️WAGMI Chain
    • Resources for EVM Development
    • Adding WAGMI Chain
    • Adding WAGMI Chain to MetaMask
    • Hardhat Config for WAGMI chain
    • Wagmi Config for WAGMI chain
    • Do I need WAGMI for gas?
    • Deploy smart contracts
    • Developing the UI
    • Add Network Button Example
    • FAQ
    • Support
  • πŸ—ΊοΈRoadmap
  • πŸ’ΌBusiness model
  • πŸ‘₯Socials
  • πŸ‘¨β€πŸ’»Team
  • 🀝Partners
  • πŸ“œLegal Notice
Powered by GitBook
On this page
  1. WAGMI Chain

Wagmi Config for WAGMI chain

import { http, createConfig } from 'wagmi';
import { aurora, auroraTestnet } from 'wagmi/chains';
import { injected, metaMask, safe, walletConnect } from 'wagmi/connectors';
import { type Chain } from 'viem';

export const wagmi = {
  id: 1313161572,
  name: 'Wagmi',
  nativeCurrency: { name: 'Wagmi', symbol: 'WAGMI', decimals: 18 },
  rpcUrls: {
    default: { http: ['https://rpc-0x4e454164.aurora-cloud.dev/'] },
  },
  blockExplorers: {
    default: { name: 'Explorer', url: 'https://explorer.wagmi.aurora.dev' },
  },
} as const satisfies Chain;

const projectId = '<WALLET_CONNECT_PROJECT_ID>';
const showQrModal = true;


export const config = createConfig({
  chains: [wagmi],
  connectors: [
    injected(),
    walletConnect({ projectId, showQrModal }),
    metaMask(),
    safe(),
  ],
  transports: {
    [wagmi.id]: http(),
  },
});
PreviousHardhat Config for WAGMI chainNextDo I need WAGMI for gas?

Last updated 3 months ago

⛓️