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(),
},
});
Last updated