jadepool-golib-cosmos

module
v0.0.0-...-92cb3fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2019 License: MIT

README

Cosmos NodeJS lib

How to use

  const libcosmos = require('@jadepool/lib-cosmos')
  // genAddress
  const addr = libcosmos.genAddressByPubKey(pubKey)
  // getUnsignedTx
  const txString = `${addr}=1stake;${addr}=2stake`
  const unsignedTx = libcosmos.composeUnsignedTx(addr, txString, 'test-chain', 0, 1, 100000, '0.0001stake', 1.0, '')
  // getRawTx
  const sig = 'signiture'
  const pubKey = 'publickKey'
  const isReturnJson = true
  const rawtx = libcosmos.buildRawTx(addr, txString, 'test-chain', 0, 1, 100000, '0.0001stake', 1.0, '', sig, pubKey, isReturnJson)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL