Class: NormalChain

NormalChain

class used to transfer coin or token on the same chain.

new NormalChain(input, config)

Parameters:
Name Type Description
input Object input of final users.(gas, gasPrice, value and so on)
config Object config of cross chain used.
Source:
trans/normal-chain/common/NormalChain.js

Methods


checkPreCondition()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

createTrans()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

createDataCreator()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

createDataSign()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

sendTrans()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
*

setCommonData()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

setContractData()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

preSendTrans()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

transFailed()

Send transaction failed. update transaction status.
Source:
trans/normal-chain/common/NormalChain.js

postSendTrans()

Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Object | transUtil.this.retResult | Object

<async> run()

Main process of normal transaction
Source:
trans/normal-chain/common/NormalChain.js
Returns:
Type
Promise.<*>