Socket
Book a DemoInstallSign in
Socket

@deficonnect/defi-link

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deficonnect/defi-link

defilink SDK for Crypto.com DeFi Wallet Extension

1.0.11
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Deprecated: This package has been deprecated. Please use this package instead: https://www.npmjs.com/package/deficonnect

Install

yarn add "@deficonnect/defi-link"

Usage

for web3-react

if you use web3-react, it is easy to integrat:

DeFiLinkConnector has implement AbstractConnector from web3-react

import { DeFiLinkConnector } from '@deficonnect/defi-link'

const connector = new DeFiLinkConnector({
  supportedChainIds: [1],
  rpc: [1: 'https://mainnet.infura.io/v3/INFURA_API_KEY'],
  pollingInterval: 15000,
})
connector.activate()

normally

import { DeFiLinkConnector } from '@deficonnect/defi-link'
import Web3 from "web3"

const connector = new DeFiLinkConnector({
  supportedChainIds: [1],
  rpc: [1: 'https://mainnet.infura.io/v3/INFURA_API_KEY'],
  pollingInterval: 15000,
})
connector.activate()
const provider = await connector.getProvider()
const web3 = new Web3(provider)

FAQs

Package last updated on 05 Nov 2021

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.