Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @sec-block/secjs-randomdatagenerator with all npm packages installed. Try it out:

var secjsRandomdatagenerator = require("@sec-block/secjs-randomdatagenerator")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@sec-block/secjs-randomdatagenerator v1.0.50

A simple library of generating random transactions&token data in SEC BlockChain


SecRandomDataGenerator

JavaScript Style Guide

Definition: Modulation of generating and of acquiring random transaction data in both transactions- and token-chain.

Kind: global class

Install

npm install @sec-block/secjs-randomdatagenerator 

generateTokenBlock

A utility function of generating random token block in SEC transaction-chian. It is aviable to generate any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTokenBlock()


generateTransactionBlock

A utility function of generating random transaction block for SEC transaction-chain. It is aviable to acquire any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTransactionBlock()


generateTokenTransaction

A utility function of generating random token transaction data in SEC token-chian. It is aviable to generate any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTokenTransaction()

generateTxTransaction

A utility function of generating random transaction data for SEC token-chain. It is aviable to acquire any involved data seperately.

Example

let randomGenerate = require('@sec-block/secjs-randomdatagenerator')
randomGenerate.generateTxTransaction()

SEC工具库-中文简介

  1. 模拟系统级智能合约产生的数据

目的:系统级智能合约拉出交易记录数据,该智能合约会为此次交易信息生成区块,并且开始对买家的分享行为进行监督,属于SEC基础库。主要的函数及其用途:

  1. 定义方法generateTokenBlock() 随机生成SEC-Token链所需要的交易信息

  2. 定义方法generateTransactionBlock() 随机生成SEC-交易链所需要的交易信息

  3. 定义方法generateTokenTransaction() 可获取SEC-Token链所需要的交易信息

  4. 定义方法generateTxTransaction() 可获取SEC-交易链所需要的交易信息

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free