hive-wallet-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.20 • Public • Published

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 hive-wallet-sdk

Basic usage

import { getWallet } from 'hive-wallet-sdk'

// Get wallet reference
const wallet = await getWallet()

// Use wallet
const json = {
    message: `Sending json from ${wallet.name}`
}
// Request custom json
const res = await wallet.requestCustomJson('', 'test', 'posting', json)

Developers can set a preferred wallet between peakvault and keychain. If the specified wallet is not available another one will be selected.

// Prefer Peak Vault
const wallet = await getWallet('peakvault')
// Prefer Keychain
const wallet = await getWallet('keychain')

/hive-wallet-sdk/

    Package Sidebar

    Install

    npm i hive-wallet-sdk

    Weekly Downloads

    0

    Version

    0.0.20

    License

    none

    Unpacked Size

    20.4 kB

    Total Files

    14

    Last publish

    Collaborators

    • andreaduina