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.
react-watchbchaddress
Advanced tools
notification component for watching transactions to a specified address
grab from NPM
npm i react-watchbchaddress
You can set the address to watch and the message. One case can be when a user deposits bch to their account on your web app.
import WatchAddress from 'react-watchbchaddress';
<WatchAddress
address="bitcoincash:qrv8w60f40yjhqzfswyc39n78anxjhcx75ppt2df5c"
text="You have deposited"
callbackPath="api/test"
/>
the callback will POST the transaction object to the endpoint specified. An example body would look like
[ {
tx:
{
h: '1237cc09307fc8b4073942884c1f7047f23676497834c4846c25a14cd2fe986'
},
in: [ [Object] ],
out: [ [Object], [Object] ],
_id: '12d3b329223c3f002edcc881'
}
]
The value will display as satoshis if the value is "low". Otherwise, it will display as BCH.
git clone https://github.com/paOol/react-watchbchaddress
cd react-watchbchaddress
npm i
npm run start
then browse to http://localhost:3001
It's possible to watch several addresses by passing in an array, but that is not the purpose of this component.
You can contribute if you'd like. Having more customizable props such as the position of the notification, styling, etc would make this component much more useful.
FAQs
notification component for watching transactions to a specified address
The npm package react-watchbchaddress receives a total of 2 weekly downloads. As such, react-watchbchaddress popularity was classified as not popular.
We found that react-watchbchaddress 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
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.