0.4.0 • Published 5 years ago

@jadepool/lib-cosmos v0.4.0

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

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)
0.4.0

5 years ago

0.3.0

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago