0.0.10 • Published 6 years ago

sdagsign v0.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

sDAG-SDK-js - sDAGraph JavaScript API

Installation

npm i sdagsign

Usage

const sdag = require("sdagsign")

const pri = "e7a3d2759c20e411516fe338bdd7121810dd131331550494bed4c80f070e621d"
let account = new sdag.Accounts.NewAccount(pri)

tx = {
	To : "5834388a0f62d75bd059300fa02c1a938a301007",
	PrivateKey : pri,
	Balance : "1",
	Nonce : "210",
	Gas : "10",
	Type : "a64",
	Input : "ccaacc"
}
let transaction = new sdag.Signs.NewTransaction(pri,tx)
transaction.GetSignRawHex().signature.toString("hex")

Example

Contributing

  • Follow the code style, we use 8 spaces as tabes

Requirements

  • Node.js
  • npm
0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago