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

@dscvr-one/canvas-wallet-adapter

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dscvr-one/canvas-wallet-adapter

Custom canvas wallet that provides a bridge between the canvas client sdk and the managed host wallets

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@dscvr-one/canvas-wallet-adapter

Custom canvas wallet that provides a bridge between the canvas client sdk and the managed host wallets.

Current features include:

  • register a custom canvas wallet into the standard wallet discovery process.

Installation

Install with your favorite package manager:

npm install @dscvr-one/canvas-wallet-adapter

yarn

yarn add @dscvr-one/canvas-wallet-adapter

Usage

To use the SDK:

  1. Import registerCanvasWallet function into your typescript project:
import { registerCanvasWallet } from '@dscvr-one/canvas-wallet-adapter';
  1. Apply function tp the CanvasClient instance:
const canvasClient = new CanvasClient();
registerCanvasWallet(canvasClient);
  1. Use a package of your chose to access the installed wallets: e.g (for Vue):
import { useWallet } from 'solana-wallets-vue';

const { wallets } = useWallet();

onMounted(() => {
  // you should be able to see `Dscvr Canvas` detected as installed
  console.log(wallets.value);
});

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or submit a pull request.

Keywords

FAQs

Package last updated on 30 Aug 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