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