
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
connect-wallet-npm
Advanced tools
Library for connecting wallets with Wagmi
npm i connect-wallet-npm
import { defaultWagmi } from 'wagmi'; //use default library wagmi
import { defaultWagmiCore } from '@wagmi/core'; //use default action wagmi
import { defaultWagmiChains } from '@wagmi/core'; //use default chains wagmi
import { defaultViem } from 'viem'; // //use default viem
//config.ts
import { setupWagmiConfig, defaultWagmiChains } from 'connect-wallet-npm';
const { mainnet, sepolia, goerli } = defaultWagmiChains;
const supportedChains = [mainnet, sepolia, goerli];
export const config = setupWagmiConfig({
//To get the API key of Alchemy provider ---> https://www.alchemy.com/
alchemyApiKey: 'key',
//To get the projectId ---> https://cloud.walletconnect.com/
walletConnectProjectId: 'key',
supportedChains
});
//main.ts
import React from 'react';
import ReactDOM from 'react-dom/client';
import { defaultWagmi } from 'connect-wallet-npm';
import App from './App.tsx';
import { config } from '.config.ts';
const {WagmiConfig} = defaultWagmi;
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<WagmiConfig config={config}>
<AppProvider>
<App />
</WagmiConfig>
</React.StrictMode>
);
useWrite - hook for write data to contract.
useTransactionHash - this hook is designed to save the transaction hash in localstore until the process is completed.
import { useTransactionHash, useWrite } from 'connect-wallet-npm';
const { write, data } = useWrite({
address: contract_address,
functionName: 'withdraw', //name function in contract
abi: contractAbi, //use Abi contract
args: ['arguments', 854, 9000002n] //array arguments, type of string or number or bigint, optional parameter
});
const transaction = useTransactionHash(data?.hash);
return (
<>
<button onClick={() => write?.()}>Write contract</button>
</>
);
{
data?: { hash: Hex }
error?: Error
isError: boolean
isIdle: boolean
isLoading: boolean
isSuccess: boolean
write: ((args?: WriteContractConfig) => void) | undefined
writeAsync: ((args?: WriteContractConfig) => Promise<{ hash: Hex }>) | undefined
reset: () => void
status: 'idle' | 'error' | 'loading' | 'success'
}
return TransactionReceipt. Type for Transaction Receipts
FAQs
Library for connecting wallets with Wagmi
The npm package connect-wallet-npm receives a total of 0 weekly downloads. As such, connect-wallet-npm popularity was classified as not popular.
We found that connect-wallet-npm 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.