0.0.9 • Published 1 year ago

web3-react-magic v0.0.9

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

web3-react-magic-connect

Magic Connect connector for web3-react.

Install

npm install web3-react-magic

Usage

import { initializeConnector } from "@web3-react/core"
import { MagicConnect } from "web3-react-magic"

// Initialize the MagicConnect connector
export const [magicConnect, hooks] = initializeConnector<MagicConnect>(
  (actions) =>
    new MagicConnect({
      actions,
      options: {
        apiKey: "pk_live_5D6B70DDBFDD649A", // Magic Connect Publishable API key
        networkOptions: {
          rpcUrl: "https://goerli.infura.io/v3/84842078b09946638c03157f83405213", // RPC URL
          chainId: 5, // Chain ID for network
        },
      },
    })
)

Nextjs Example

Nextjs example usage here

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago