Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@gnosis.pm/safe-apps-react-sdk
Advanced tools
[![npm](https://img.shields.io/npm/v/@gnosis.pm/safe-apps-react-sdk)](https://www.npmjs.com/package/@gnosis.pm/safe-apps-react-sdk)
This SDK should provide a simple way to write a React.js Safe app
yarn add @gnosis.pm/safe-apps-react-sdk
npm i @gnosis.pm/safe-apps-react-sdk
SafeProvider
Safe provider accepts loader
and options
props// ... other imports
import SafeProvider from '@gnosis.pm/safe-apps-react-sdk';
ReactDOM.render(
<React.StrictMode>
<SafeProvider>
<App /> // Your app
</SafeProvider>
</React.StrictMode>,
document.getElementById('root'),
);
// ... other imports
import { useSafeAppsSDK } from '@gnosis.pm/safe-apps-react-sdk';
const App = () => {
const { sdk, connected, safe } = useSafeAppsSDK();
return <div>{safe.safeAddress}</div>;
};
import { BaseTransaction } from '@gnosis.pm/safe-apps-sdk'
const txs: BaseTransaction[] = [
{
to: '0x31415629...',
value: '0',
data: '0xbaddad',
},
//...
];
// Returns a hash to identify the Safe transaction
const safeTxHash: string = await sdk.txs.send({ txs });
const safeTx: SafeTransaction = await sdk.txs.getBySafeTxHash(safeTxHash);
For all available sdk methods, please refer to the safe-apps-sdk documentation
FAQs
[![npm](https://img.shields.io/npm/v/@gnosis.pm/safe-apps-react-sdk)](https://www.npmjs.com/package/@gnosis.pm/safe-apps-react-sdk)
The npm package @gnosis.pm/safe-apps-react-sdk receives a total of 75 weekly downloads. As such, @gnosis.pm/safe-apps-react-sdk popularity was classified as not popular.
We found that @gnosis.pm/safe-apps-react-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.