Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cryptafriq/react-crypto-wallet-sdk

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptafriq/react-crypto-wallet-sdk

React Js SDK for integrating cryptocurrency wallet functionality into your website.

  • 0.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
45
decreased by-83.52%
Maintainers
0
Weekly downloads
 
Created
Source

Crypto Wallet SDK

A React Js SDK for integrating cryptocurrency wallet functionality into your website. This SDK provides a seamless way to handle crypto transactions and wallet management on your websites.

Installation

Using npm

npm install @cryptafriq/react-crypto-wallet-sdk

Using yarn

yarn add @cryptafriq/react-crypto-wallet-sdk

Usage

Import useCryptoWallet to any component in your application and pass your config

import { useCryptoWallet } from './dist/index';

  const config = {
    apiKey: 'BSCAPIK_TEST_861d25e1987b1a0e705360Z',
    callbackUrl: 'https://www.google.com',
    customerEmail: 'johndeo@email.com',
    businessName: 'Example Business',
    businessLogo:
      'https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png',
  };
  useCryptoWallet(config);

Hooks

import React from 'react';
import { useCryptoWallet } from './dist/index';

export default function App() {
  const config = {
    apiKey: 'BSCAPIK_TEST_861d25e1987b1a0e705360Z',
    callbackUrl: 'https://www.google.com',
    customerEmail: 'johndeo@email.com',
    businessName: 'Example Business',
    businessLogo:
      'https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_272x92dp.png',
  };

  const handleCryptoWallet = useCryptoWallet(config);

  return (
    <div className="App">
     <h1>Testing!!1</h1>

      <button
        onClick={() => {
          handleCryptoWallet();
        }}
      >
        Launch Crypto Wallet Modal
      </button>
    </div>
  );
}

Keywords

FAQs

Package last updated on 15 Nov 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc