@peakd/hive-wallet-sdk
v0.2.3
Published
The simple way to support all the wallets of the Hive blockchain.
Downloads
51
Readme
hive-wallet-sdk
The simple way to support all the wallets of the Hive blockchain.
IMPORTANT: The package is still under development and things may break unexpectedly.
Installation
$ npm i @peakd/hive-wallet-sdk
Basic usage
import { getWallet } from '@peakd/hive-wallet-sdk'
// Get wallet reference
// Supported wallet IDs: 'peakvault', 'keychain', 'metamask'
const wallet = await getWallet('peakvault')
// Use wallet
const json = {
message: `Sending json from ${wallet.name}`
}
// Request custom json
const res = await wallet.customJson('muwave', 'test', 'posting', json)
Documentation
You can find the docs here