
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
chaingate-react
Advanced tools
React hooks and providers for ChainGate — integrate multi-chain cryptocurrency wallets into React apps with two hooks. Create, import, and manage wallets across Bitcoin, Ethereum, and 30+ blockchains with zero boilerplate and automatic state synchronizati
React hooks and providers for the ChainGate cryptocurrency SDK.
useWallet() and useChainGate() for everythingnpm install chaingate-react chaingate react
import { ChainGateProvider, WalletProvider } from 'chaingate-react';
function App() {
return (
<ChainGateProvider>
<WalletProvider>
<YourApp />
</WalletProvider>
</ChainGateProvider>
);
}
import { useChainGate } from 'chaingate-react';
import { useEffect } from 'react';
function Init() {
const { initializeChainGate } = useChainGate();
useEffect(() => {
initializeChainGate({ apiKey: 'your-api-key' });
}, []);
return null;
}
import { useWallet } from 'chaingate-react';
function CreateWallet() {
const { newWallet } = useWallet();
const handleCreate = () => {
const { phrase, wallet } = newWallet();
console.log('Mnemonic:', phrase);
// wallet is now available across the app via useWallet().wallet
};
return <button onClick={handleCreate}>Create Wallet</button>;
}
import { useWallet } from 'chaingate-react';
function ImportWallet() {
const { importWallet, createWalletFromString } = useWallet();
// From mnemonic
importWallet({ phrase: 'abandon abandon abandon ...' });
// From private key
importWallet({ privateKey: '0x...' });
// From xpub (view-only)
importWallet({ xpub: 'xpub...' });
// Auto-detect any format
createWalletFromString('xprv9s21ZrQH143K...');
}
import { useChainGate, useWallet } from 'chaingate-react';
function Balance() {
const { chaingate } = useChainGate();
const { wallet } = useWallet();
const getBalance = async () => {
if (!chaingate || !wallet) return;
const eth = chaingate.connect(chaingate.networks.ethereum, wallet);
const { confirmed } = await eth.addressBalance();
console.log(confirmed.base(), confirmed.symbol);
};
return <button onClick={getBalance}>Get ETH Balance</button>;
}
const { chaingate } = useChainGate();
const { wallet } = useWallet();
const send = async () => {
if (!chaingate || !wallet) return;
const eth = chaingate.connect(chaingate.networks.ethereum, wallet);
const amount = chaingate.networks.ethereum.amount('0.1');
const tx = await eth.transfer(amount, '0xRecipient...');
tx.setFee('high');
const broadcasted = await tx.signAndBroadcast();
broadcasted.onConfirmed((details) => {
console.log('Confirmed in block', details.blockHeight);
});
};
const bsc = chaingate.networks.evmRpc({
rpcUrl: 'https://bsc-dataseed.binance.org',
chainId: 56,
name: 'BNB Smart Chain',
symbol: 'BNB',
});
const conn = chaingate.connect(bsc, wallet);
import { useWallet } from 'chaingate-react';
function RestoreWallet() {
const { deserializeWallet } = useWallet();
const restore = () => {
const saved = JSON.parse(localStorage.getItem('wallet')!);
deserializeWallet(saved, async () => {
return window.prompt('Enter your wallet password:');
});
};
return <button onClick={restore}>Restore Wallet</button>;
}
const { closeWallet } = useWallet();
<button onClick={closeWallet}>Log Out</button>
FAQs
React hooks and providers for ChainGate — integrate multi-chain cryptocurrency wallets into React apps with two hooks. Create, import, and manage wallets across Bitcoin, Ethereum, and 30+ blockchains with zero boilerplate and automatic state synchronizati
The npm package chaingate-react receives a total of 46,803 weekly downloads. As such, chaingate-react popularity was classified as popular.
We found that chaingate-react demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.