New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wharfkit/wallet-plugin-anchor

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wharfkit/wallet-plugin-anchor

An Anchor plugin for use with @wharfkit/session.

1.4.0
latest
npm
Version published
Weekly downloads
1.1K
76.62%
Maintainers
0
Weekly downloads
 
Created
Source

@wharfkit/wallet-plugin-anchor

A Session Kit wallet plugin for the Anchor wallet.

Usage

Include this wallet plugin while initializing the SessionKit.

NOTE: This wallet plugin will only work with the SessionKit and requires a browser-based environment.

import {WalletPluginAnchor} from '@wharfkit/wallet-plugin-anchor'

const kit = new SessionKit({
    // ... your other options
    walletPlugins: [new WalletPluginAnchor()],
})

Custom buoy url and websocket class are supported.

import WebSocket from 'isomorphic-ws'
import {WalletPluginAnchor} from '@wharfkit/wallet-plugin-anchor'

const kit = new SessionKit({
    // ... your other options
    walletPlugins: [
        new WalletPluginAnchor({
            buoyUrl: 'https://cb.anchor.link',
            buoyWs: Websocket,
        }),
    ],
})

Developing

You need Make, node.js and yarn installed.

Clone the repository and run make to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint.

Made with ☕️ & ❤️ by Greymass, if you find this useful please consider supporting us.

FAQs

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