Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@covalenthq/goldrush-kit
Advanced tools
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/covalenthq/goldrush-kit/main/src/static/goldrush-kit-log
Install goldrush-kit
using npm
:
npm install @covalenthq/goldrush-kit
or yarn
:
yarn add @covalenthq/goldrush-kit
GoldRushProvider
import { GoldRushProvider } from "@covalenthq/goldrush-kit";
GoldRushProvider
around the application.apikey
props with your Covalent API key. You can register for a free key on Covalent's website.<GoldRushProvider apikey="<YOUR_API_KEY>">{children}</GoldRushProvider>
import "@covalenthq/goldrush-kit/styles.css";
next.js
versions ^13.0
and are using app
router, make sure you have use client;
at the top of the file to disable Next's server component modules. Visit GoldRush's component documentation for more information.import {
GoldRushProvider,
NFTWalletTokenListView,
TokenBalancesListView,
TokenTransfersListView,
AddressActivityListView,
} from "@covalenthq/goldrush-kit";
Here's a full example to get you started. If you're using next.js
versions ^13.0
and are using app
router, make sure you have use client;
at the top of the file to disable Next's server component modules.
Note: You should always keep your API key private, never put it directly into your code, especially front end code. Instead, use an environment variable to inject the key into your code.
Be sure to secure your key to prevent unauthorized use in the Covalent platform by restricting usage to specific URLs.
// 'use client';
// If using Next.js, put your API key in a .env.local file
<GoldRushProvider
apikey={process.env.NEXT_PUBLIC_API_KEY}
mode="dark"
color="emerald"
>
<TokenBalancesListView
chain_names={[
"eth-mainnet",
"matic-mainnet",
"bsc-mainnet",
"avalanche-mainnet",
"optimism-mainnet",
]}
hide_small_balances
address="0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de"
/>
<TokenTransfersListView
chain_name="eth-mainnet"
address="0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de"
contract_address="0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
/>
<AddressActivityListView address="0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de" />
<NFTWalletTokenListView
address="0xfc43f5f9dd45258b3aff31bdbe6561d97e8b71de"
chain_names={[
"eth-mainnet",
"matic-mainnet",
"bsc-mainnet",
"avalanche-mainnet",
"optimism-mainnet",
]}
/>
</GoldRushProvider>
Template | Description | Link |
---|---|---|
Wallet & Portfolio UI | Display your tokens and NFTs across multiple chains. | https://github.com/covalenthq/goldrush-wallet-portfolio-ui |
NFT Collection Gallery & Analytics UI | Coming soon! | |
Uniswap-like Analytics UI | Coming soon! |
The components used above are built React, Tailwind, and TypeScript. You can preview and customize the components using Storybook.
Storybook provides developers with a way to quickly prototype and develop components in isolation, while React provides the tools to quickly build out a web application. Tailwind provides a library of pre-built UI components and utility classes, while TypeScript adds type safety and autocompletion to the development process. Together, these tools provide developers with the tools they need to quickly and easily build complex, modern web applications.
Create and add a .env
file to the root directory of your project and the following to the file.
STORYBOOK_COVALENT_API_KEY = "<YOUR_API_KEY>"
npm run dev
npm run build:library
npm run build:storybook
Contributions, issues and feature requests are welcome! Feel free to check issues page.
Give a ⭐️ if this project helped you!
This project is Apache 2.0 licensed.
FAQs
Beautifully designed React components for web3 dApp frontend. Easily fetch data from 200+ blockchains. Open-source. Customizable.
We found that @covalenthq/goldrush-kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.