Socket
Socket
Sign inDemoInstall

@sec-block/secjs-tx

Package Overview
Dependencies
68
Maintainers
7
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sec-block/secjs-tx

Transaction chain and token chain model handler


Version published
Weekly downloads
13
decreased by-50%
Maintainers
7
Install size
3.43 MB
Created
Weekly downloads
 

Readme

Source

Usage

npm install --save secjs-tx

Tokenchain transaction model

  • _TokenTxModelHandler

_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

ParamType
timestampstring

_TokenTxModelHandler.setGasLimit(gaslimit)

set gas limit

Kind: instance method of _TokenTxModelHandler

ParamType
gaslimitstring

_TokenTxModelHandler.getGasPrice()

get block gas price

Kind: instance method of _TokenTxModelHandler

_TokenTxModelHandler.setGasPrice(gasprice)

set gas price

Kind: instance method of _TokenTxModelHandler

ParamType
gaspricestring

_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

ParamType
heightstring

_TxBlockModelHandler.setStatus(status)

set status of transaction chain

Kind: instance method of _TxBlockModelHandler

ParamType
statusstring

_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

ParamType
productobject

_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'

ParamType
paramsobject

secModelHandler.getInstance()

get the instance of model handler

Kind: instance method of SECModelHandler

Keywords

FAQs

Last updated on 07 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc