
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
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 0 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.