@sec-block/secjs-randomdatagenerator
v1.0.50
Published
A simple library of generating random transactions&token data in SEC BlockChain
Downloads
20
Readme
SecRandomDataGenerator
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工具库-中文简介
- 模拟系统级智能合约产生的数据
目的:系统级智能合约拉出交易记录数据,该智能合约会为此次交易信息生成区块,并且开始对买家的分享行为进行监督,属于SEC基础库。主要的函数及其用途:
定义方法generateTokenBlock() 随机生成SEC-Token链所需要的交易信息
定义方法generateTransactionBlock() 随机生成SEC-交易链所需要的交易信息
定义方法generateTokenTransaction() 可获取SEC-Token链所需要的交易信息
定义方法generateTxTransaction() 可获取SEC-交易链所需要的交易信息