Skip to content

Support your OP-Stack network with "opstack-kit" | Code base by Viem @2.17.11

License

Notifications You must be signed in to change notification settings

opstack-kit/opstack-kit-chains

 
 

Repository files navigation

opstack-kit-chains

Support your OP-Stack network with 'opstack-kit'

Npm Badge

important

Installation

npm i opstack-kit-chains

or

pnpm i opstack-kit-chains

or

bun i opstack-kit-chains

or

yarn add opstack-kit-chains

Currently supported networks

L1

L1 - Testnet
sepolia
L1 - Mainnet
mainnet

L2

L2 - Testnet
optimismSepolia, baseSepolia, zoraSepolia, fraxtalTestnet, modeTestnet, soneiumMinato
L2 - Mainnet
optimism, base, zora, fraxtal, mode, redstone,

Add networks

Example

Opstack Kit Chains Quickly customize your network that uses Op Stack chains.

// main.ts
import { sepolia, optimismSepolia } from 'opstack-kit-chains'

...
...
...
const config = getDefaultConfig({
  appName: 'My RainbowKit App',
  projectId: import.meta.env.VITE_SOME_KEY,
  chains: [sepolia, optimismSepolia],
  ssr: true,
});

------------------------- or --------------------------
// config.ts
import { createConfig, http } from 'wagmi'
import { sepolia, optimismSepolia } from 'opstack-kit-chains'

export const config = createConfig({
  chains: [sepolia, optimismSepolia],
  transports: {
    [sepolia.id]: http(),
    [optimismSepolia.id]: http(),
  },
})

(or you can use Viem =>2.17.11 you just need to add viem/chains the relevant chain object to work with opstack-kit)

You can add "opstack-kit-chains" a network at this.

Donate

0xB6Be617b1D6fE5DbdD21A6AcFD9e97A35ddCEfF5

About

Support your OP-Stack network with "opstack-kit" | Code base by Viem @2.17.11

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.4%
  • MDX 2.3%
  • Other 0.3%