Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@mintbase-js/react
Advanced tools
[//]: # { "title": "@mintbase-js/react", "order": "3" }
This package contains React helpers for interacting with Mintbase JS.
Example: You can check a quick example of Simple Login using Next.js 14 and @mintbase-js/react
Check our Templates repository for Mintbase.js
BitteWalletContextProvider (default) : The default Bitte Wallet provider
@mintbase-js/react relies on React and React Dom version v18.2.0 due to @near-wallet-selector/modal-ui
npm install @mintbase-js/react
npm install @near-wallet-selector/modal-ui
yarn add @mintbase-js/react
yarn add @near-wallet-selector/modal-ui
pnpm install @mintbase-js/react
pnpm install @near-wallet-selector/modal-ui
the default way of interacting with Mintbase Wallet is using the BitteWalletContextProvider
{% code title="app.tsx" overflow="wrap" lineNumbers="true" %}
contractAddress (optional): If you set this it will connect the user using Limited Access Keys, set with your near contract address / your mintbase store address
network : mainnet | testnet
callbackUrl : a valid https/http address to the user be sent after the transaction
onlyMbWallet : boolean, it sets up only MintbaseWallet or if false(default) MintbaseWallet + default wallets
additionalWallets : WalletModuleFactory[] extra wallets setup
import "@near-wallet-selector/modal-ui/styles.css";
import { BitteWalletContextProvider } from '@mintbase-js/react'
<BitteWalletContextProvider
contractAddress="mycontract.mintbase1.near"
network="mainnet"
callbackUrl="https://www.mywebsite.com/callback"
>
<Component {...pageProps} />
</BitteWalletContextProvider>
The wallet runs only on client-side.
Any other questions or issues you can contact support on our Telegram Channel.
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
FAQs
React app tools for Mintbase JS SDK
We found that @mintbase-js/react 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.