
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@metaphor-xyz/ens-claim
Advanced tools
React hooks and components that help notify users to claim their $ENS airdrop.
This package provides React hooks and components helpful in notifying users of products that they have unclaimed $ENS tokens from the ENS DAO airdrop, and directing them to claim those tokens.
npm install --save @metaphor-xyz/ens-claim
or
yarn save @metaphor-xyz/ens-claim
The ENSClaimButton renders a button, if and only if the user's wallet as an open $ENS claim available, that when clicked shows a modal explaining how to claim the tokens.
import { BaseProvider } from 'ethers';
import { ENSClaimButton } from '@metaphor-xyz/ens-claim';
function SomeComponent({ address, provider }: { address: string, provider: BaseProvider }) {
return <ENSClaimButton
address={address}
provider={provider} // optional
delegate='metaphor.xyz' // optional, ENS name for default delegate
/>;
}

If you would like to create your own button, the useENSClaim hook tells you whether or not an address has ENS tokens to claim.
function SomeComponent() {
const { hasClaim } = useENSClaim();
if (!hasClaim) {
return null;
}
// ... render notification
}
MIT
There are a few possible improvements for the library:
FAQs
React hooks and components that help notify users to claim their $ENS airdrop.
We found that @metaphor-xyz/ens-claim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.