Socket
Book a DemoInstallSign in
Socket

xdcpay-web3modal

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xdcpay-web3modal

A custom xdcpay provider for web3modal

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

xdcpay-web3modal

A custom xdcpay provider for web3modal

NPM JavaScript Style Guide

Install

npm install --save xdcpay-web3modal

Usage

import React, { Component } from 'react'
import Web3Modal from 'web3modal';
import { getXdcModal } from 'xdcpay-web3modal'
import WalletConnect from "@walletconnect/web3-provider";


const App = () => {
  const web3Modal = new Web3Modal({
    cacheProvider: true,
    disableInjectedProvider: false,
    providerOptions: {
      walletconnect: {
        package: WalletConnect, // required
        options: {
          infuraId: "223f20f418c34a758240a7f416435110", // Required
          network: "mainnet",
          qrcodeModalOptions: {
            mobileLinks: ["rainbow", "metamask", "argent", "trust", "imtoken", "pillar"]
          }
        }
      },
      'custom-xdc': getXdcModal, // Add One line for  xdc pay web3modal provider
    }
  });
  //REST of your code
}

License

MIT © jurjees23

Keywords

react

FAQs

Package last updated on 20 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts