@namnh270/g8c-sdk-test
SDK for G8C blockchain
Last updated 8 months ago by namnh270 .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @namnh270/g8c-sdk-test 
SYNC missed versions from official npm registry.

SDK

SDK for G8C Blockchain

Documents

Installation

npm install G8C-sdk

Usage

const G8CSdk = require('G8C-sdk');

API

SDK

createSendTx (from, to, amount, privateKey)

Utils

validateAddress(address)
validateBlock(height)
validateTxHash(hash)
isInt(n)
isUint(n)
fromG8C(G8C)
toG8C(amount)
subtraction(a,b)
bigNumToString(val,base)
encodeUtf8(text)
decode(buf)

API

getBlock (height)
getTransaction (txHash)
getAccountDetail (address)
getGetHistoryTransaction ({address, page, limit})
sendTransaction (tx)

Wallet

generateWallet(walletName, password)
verifyTransaction(tx)
encryptWallet(privateKey, password)
decryptWallet(cipherText, password)
restoreWallet(mnemonic, walletName, password)
getAddressFromPublicKey(publicKey)
createTx(from, to, amount, sequence, CHAINID)

License

MIT

Current Tags

  • 0.1.0                                ...           latest (6 months ago)

10 Versions

  • 0.1.0                                ...           6 months ago
  • 0.0.9                                ...           6 months ago
  • 0.0.8                                ...           7 months ago
  • 0.0.7                                ...           7 months ago
  • 0.0.6                                ...           8 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           8 months ago
  • 0.0.3                                ...           8 months ago
  • 0.0.2                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |