Socket
Book a DemoInstallSign in
Socket

@harishraisinghani/web3-components

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harishraisinghani/web3-components

This web3 library is powered by the [Covalent Unified API](https://www.covalenthq.com/?utm_source=web3_components&utm_medium=docs) and consists of useful React components to fetch any on-chain data across any of the 30+ Covalent supported blockchain netwo

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Web3 Components Library

This web3 library is powered by the Covalent Unified API and consists of useful React components to fetch any on-chain data across any of the 30+ Covalent supported blockchain networks.

These components do not require an active web3 provider since data is hosted, indexed and queried from the Covalent Network. However, an API Key is required to use them.

Please refer to the Covalent API reference for documentation on how the API works.

Quick Start

Install with npm: npm install @covalenthq/web3-components

or

Install with yarn: yarn install @covalenthq/web3-components

Web3 Components

<TokenBalances />

Token balances table

The <TokenBalances /> component provides a complete and paginated balances table with all the ERC20 tokens and NFTs for a given wallet address and chainId.

Props:

  • apikey
  • address
  • chainId

Sample code:

import { TokenBalances } from '@covalenthq/web3-components';

function App() {
  return(
    <div className="TokenBalances">
      <TokenBalances apikey={process.env.REACT_APP_COVALENT_API_KEY} address="demo.eth" chainId="1" />
    </div>
  )
}

export default App;

FAQs

Package last updated on 24 Jun 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