onflow / docs

Flow Developer Portal. Discover the developer ecosystem and master the Flow blockchain
https://developers.flow.com
Apache License 2.0
7 stars 51 forks source link

Add testnet evm config to viem #703

Open bthaile opened 5 months ago

bthaile commented 5 months ago

Add the following config to viem, need to verify the properties.

https://github.com/wevm/viem/tree/main/src/chains/definitions

import { defineChain } from '../../utils/chain/defineChain.js'

export const flowTestnet = /*#__PURE__*/ defineChain({
  id: 545,
  name: 'FlowEVM Testnet',
  nativeCurrency: {
    decimals: 18,
    name: 'Flow',
    symbol: 'FLOW',
  },
  rpcUrls: {
    default: {
      http: ['https://testnet.evm.nodes.onflow.org'],
    },
  },
  blockExplorers: {
    default: {
      name: 'Testnet Explorer',
      url: 'https://testnet.flowdiver.io',
    },
  },
})
bthaile commented 5 months ago

Added PR to add evm testnet https://github.com/wevm/viem/pull/2144