README
Usage
npm install --save secjs-tx
Tokenchain transaction model
_TokenTxModelHandler.getModel()
get complete model
Kind: instance method of _TokenTxModelHandler
_TokenTxModelHandler.getHeight()
get height of block
Kind: instance method of _TokenTxModelHandler
_TokenTxModelHandler.getTimeStamp()
get Timestamp of model
Kind: instance method of _TokenTxModelHandler
_TokenTxModelHandler.setTimeStamp(timestamp)
set Timestamp for block model
Kind: instance method of _TokenTxModelHandler
Param | Type |
---|---|
timestamp | string |
_TokenTxModelHandler.setGasLimit(gaslimit)
set gas limit
Kind: instance method of _TokenTxModelHandler
Param | Type |
---|---|
gaslimit | string |
_TokenTxModelHandler.getGasPrice()
get block gas price
Kind: instance method of _TokenTxModelHandler
_TokenTxModelHandler.setGasPrice(gasprice)
set gas price
Kind: instance method of _TokenTxModelHandler
Param | Type |
---|---|
gasprice | string |
_TxBlockModelHandler
Transaction chain block model
Kind: global class
_TxBlockModelHandler.getModel()
get complete model
Kind: instance method of _TxBlockModelHandler
_TxBlockModelHandler.getHeight()
get height of block
Kind: instance method of _TxBlockModelHandler
_TxBlockModelHandler.setHeight(height)
set Height of block
Kind: instance method of _TxBlockModelHandler
Param | Type |
---|---|
height | string |
_TxBlockModelHandler.setStatus(status)
set status of transaction chain
Kind: instance method of _TxBlockModelHandler
Param | Type |
---|---|
status | string |
_TxTransModelHandler
transaction chain transaction model
Kind: global class
_TxTransModelHandler.getModel()
transaction chain transation information model
Kind: instance method of _TxTransModelHandler
_TxTransModelHandler.setProductInfo(product)
set product information
Kind: instance method of _TxTransModelHandler
Param | Type |
---|---|
product | object |
_TxTransModelHandler.getProductInfo()
get product information
Kind: instance method of _TxTransModelHandler
SECModelHandler
SEC Model handler: factory function to create for different model
Kind: global class
new SECModelHandler(params)
create instance for model handler params.type: 'tokenchain-block' 'tokenchain-trans' 'transactionchain-block' 'transactionchain-trans'
Param | Type |
---|---|
params | object |
secModelHandler.getInstance()
get the instance of model handler
Kind: instance method of SECModelHandler