https://github.com/wharfkit/wallet-plugin-anchor
WalletPlugin for the Wharf Session Kit. Allow users to login and sign transactions with the Anchor authenticator.
https://github.com/wharfkit/wallet-plugin-anchor
anchor-authenticator wallet-plugin
Last synced: 4 months ago
JSON representation
WalletPlugin for the Wharf Session Kit. Allow users to login and sign transactions with the Anchor authenticator.
- Host: GitHub
- URL: https://github.com/wharfkit/wallet-plugin-anchor
- Owner: wharfkit
- License: other
- Created: 2023-02-06T20:28:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-07-26T23:58:51.000Z (11 months ago)
- Last Synced: 2025-10-11T22:00:47.306Z (8 months ago)
- Topics: anchor-authenticator, wallet-plugin
- Language: TypeScript
- Homepage: https://wharfkit.com
- Size: 399 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# @wharfkit/wallet-plugin-anchor
A Session Kit wallet plugin for the [Anchor](https://www.greymass.com/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.
```ts
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.
```ts
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](https://www.gnu.org/software/make/), [node.js](https://nodejs.org/en/) and [yarn](https://classic.yarnpkg.com/en/docs/install) installed.
Clone the repository and run `make` to checkout all dependencies and build the project. See the [Makefile](./Makefile) for other useful targets. Before submitting a pull request make sure to run `make lint`.
---
Made with ☕️ & ❤️ by [Greymass](https://greymass.com), if you find this useful please consider [supporting us](https://greymass.com/support-us).