
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
react-solana-nftmint
Advanced tools
yarn add react-use-mint
const MyComponent = () => {
import { AnchorWallet, useAnchorWallet, useConnection } from "@solana/wallet-adapter-react"
import * as anchor from "@project-serum/anchor"
import { LAMPORTS_PER_SOL, PublicKey } from "@solana/web3.js"
import useMint, { MintProps } from "../effects/useMint"
const anchorWallet = useAnchorWallet()
const {mintNft, ready, error} = useMint(mintProps, anchorWallet);
const mintProps: MintProps = {
loading: false,
rpc: "https://api.devnet.solana.com",
title: "My NFT",
creeators: [
{
address: new PublicKey("6xnRdTedrerREnaveYndZPioRuK1JcQPfnyA5mQME6vT"),
verified: false,
share: 100 // sums must total 100 if you have more than one creator
},
],
mintPrice: new anchor.BN(0.25 * LAMPORTS_PER_SOL),
symbol: "MY_SYMBOL",
priceReceiver: new PublicKey("6xnRdTedrerREnaveYndZPioRuK1JcQPfnyA5mQME6vT"),
royalty: 500, // 5%
}
const handleMint = useCallback(async () => {
if (!anchorWallet) {
return
}
let nftURL ="https://files.sdrive.app/1frzxgr.json";
await mintNft(nftURL);
setLoading(false)
}, [nftData, anchorWallet])
return (
<div>
<Button disabled={!ready || !!error} text={`Mint ${name}`} variant={VARIANT.SMALL} onClick={handleMint} />
</div>
)
};
FAQs
UseEffect hook to mint NFT 1/1s
The npm package react-solana-nftmint receives a total of 26 weekly downloads. As such, react-solana-nftmint popularity was classified as not popular.
We found that react-solana-nftmint 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.