wookong-solo
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Wookong Solo

Install

$ npm install --save wookong-solo

How to use

import { getPublicKey, signTransaction } from "wookong-solo"


(async () => {
  const publicKey = await getPublicKey();
  //=> EOS5HEWUdoeR3VLyYjBJ7M1pj6TP3DjZm9zn3SzNFtU52onwBMZr6

  const response = await signTransaction(rawTxHex);
  //=> OK
})()

Build with Electron

# Electron's version.
export npm_config_target=3.0.0
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
# Install all dependencies, and store cache to ~/.electron-gyp.
HOME=~/.electron-gyp npm install

API

Table of Contents

getPublicKey

Get Public Key

Examples

const publicKey = await getPublicKey();
//=> EOS5HEWUdoeR3VLyYjBJ7M1pj6TP3DjZm9zn3SzNFtU52onwBMZr6

Returns Promise<string> EOS Public Key

signTransaction

Sign Transaction

Parameters

  • rawTxHex Buffer Raw Transaction Hex

Examples

const response = await signTransaction(rawTxHex);
//=> response

Returns Promise<string> EOS Public Key

getAppConfiguration

Get App Configuration

Examples

await getAppConfiguration();

Returns Object Configuration

Readme

Keywords

Package Sidebar

Install

npm i wookong-solo

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

8.44 MB

Total Files

16

Last publish

Collaborators

  • deniscarriere