Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-56b3b4.svg)](https://github.com/prettier/prettier) [![npm version](https://img.shields.io/npm/v/reblocks.svg)](https://www.npmjs.org/package/reblocks) [![CircleCI](https://circleci
A React wrapper around the Brainblocks payment button that makes it simple to start taking Raiblocks payments in React projects.
Demo: goldcaddy77.github.io/reblocks
yarn add reblocks
import { ReblocksPayment } from 'reblocks';
const onSuccess = (data: PaymentResponse) => {
console.log('Got transaction token', data.token);
};
const Button = (
<ReblocksPayment
accountId="xrb_3ritoyx4zcixshfbezg4aycb49xbupw9ggink1rfm43tm6uh87t4ifuxg5dm"
amount={200000}
onPaymentSuccess={onSuccess}
/>
);
Note: this package is built with TypeScript and already contains the relevant TypeScript type definitions.
To initiate a payment, use the ReblocksPayment
component. The ReblocksPayment
takes in the following props:
accountId
{string} account to send funds toamount
{string} ammount of xrb
to send (Note: 1 xrb = 1/1,000,000 XRB)onPaymentSuccess
{function} function to run on successful payment. This is passed { token: 'TOKEN'}Link to demo
To display the current value of XRB in a fiat currency, use the ReblocksFiatConversion
component. The
ReblocksFiatConversion
takes in the following props:
currency
{currency} 3 digit fiat currency you want to display the current value of 1 XRBLink to demo
To create a QR code for payments, use the ReblocksQRCode
component. The ReblocksQRCode
component takes in the
following props:
accountId
{string} account to send funds toamount
{string - optional} ammount of xrb
to send (Note: 1 xrb = 1/1,000,000 XRB)label
{string - optional} see - RaiBlocks QR Code specificationmessage
{string - optional} see - RaiBlocks QR Code specificationYou can also style the QR Code itself using the params we pass into qrcode.react:
size
{number - optional} SizebgColor
{string (CSS color) - optional} Background colorfgColor
{string (CSS color) - optional} Foreground colorLink to demo
If you like this project and want to help support future development, test it out by buying me a 🍺: xrb_3ritoyx4zcixshfbezg4aycb49xbupw9ggink1rfm43tm6uh87t4ifuxg5dm
PRs accepted. Note that this library uses a bunch of linters/code formatters to keep things consistent:
MIT © Dan Caddigan
FAQs
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-56b3b4.svg)](https://github.com/prettier/prettier) [![npm version](https://img.shields.io/npm/v/reblocks.svg)](https://www.npmjs.org/package/reblocks) [![CircleCI](https://circleci
The npm package reblocks receives a total of 1 weekly downloads. As such, reblocks popularity was classified as not popular.
We found that reblocks 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.