Socket
Socket
Sign inDemoInstall

@snapwallet/init

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @snapwallet/init

The official Snap Wallet widget initialization tool.


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
812 kB
Created
Weekly downloads
 

Readme

Source

Snap Wallet Init

The Snap Wallet fiat to cryptocurrency widget init script.

Up and Running

import SnapWallet, { WidgetEnvironments } from '@snapwallet/init'

// Base configuration
const snap = new SnapWallet({
  environment: WidgetEnvironments.PRODUCTION,
  appName: 'Donate',
  intent: 'donate',
  payee: 'Snap Wallet',
  wallets: [
    { asset: 'btc', address: '1BpnDtnUJk24P6XKEVu7XaYx5qPZx9AyKg' },
    { asset: 'eth', address: '0x6d47da1135b13d0068bd38c7236fcb59838cbbdd' },
  ],
})

// Create a Snap Wallet URI for a React Native WebView
const uri = snap.generateURL()

// or open the iframe for web
snap.openWeb()

Donate to Snap Wallet

Keywords

FAQs

Last updated on 08 Jun 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc