0.0.20 • Published 2 years ago

hive-wallet-sdk v0.0.20

Weekly downloads
-
License
-
Repository
gitlab
Last release
2 years ago

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')
0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago