wagmi-sapphire-provider

1.0.0 • Public • Published

Wagmi Sapphire Paratime

A library to use Sapphire ParaTime with Wagmi

Getting started

npm install wagmi-sapphire-provider

How to use it

import { sapphireJsonRpcProvider } from 'wagmi-sapphire-provider';

const sapphireTestnet = {
    id: 23295,
    name: 'SapphireTestnet',
    network: 'SapphireTestnet',
    nativeCurrency: {
      name: 'TEST',
      symbol: '$',
      decimals: 18,
    },
    rpcUrls: {
      default: 'https://testnet.sapphire.oasis.dev',
    },
    testnet: true,
    blockExplorers: {
      default: { name: 'Sapphire Explorer', url: 'https://testnet.explorer.sapphire.oasis.dev' }
    }
  };

const { chains, provider } = configureChains(
    [sapphireTestnet],
    [
      sapphireJsonRpcProvider({
        rpc: (chain) => {
          return { http: chain.rpcUrls.default };
        },
      }),
    ],
  );

Readme

Keywords

Package Sidebar

Install

npm i wagmi-sapphire-provider

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

2.81 kB

Total Files

3

Last publish

Collaborators

  • nytyr