Module: lib/blockchains/fennel/transactions

Module to process Fennel transactions for Whiteflag

Source:

Methods

(inner) extractMessage(transaction) → {Promise}

Extracts Whiteflag message from Fennel transaction data

Parameters:
Name Type Description
transaction Object

the Fennel transaction

Source:
Returns:

resolves to a Whiteflag message

Type
Promise

(inner) initTransactions(fnlConfig) → {Promise}

Initialises Fennel Transactions processing

Parameters:
Name Type Description
fnlConfig Object

the Fennel blockchain configuration

Source:
Returns:

resolve if succesfully initialised

Type
Promise

(inner) sendSignal(account, toAddress, data) → {Promise}

Sends a signal transaction on the Fennel blockchain

Parameters:
Name Type Description
account wfAccount

the account used to send the transaction

toAddress string

the address to send the transaction to

data string

the data to be sent

Source:
Returns:

resolve to transaction hash and block number

Type
Promise

(inner) sendTokens(account, toAddress, amount) → {Promise}

Sends a token transaction on the Fennel blockchain

Parameters:
Name Type Description
account wfAccount

the account used to send the transaction

toAddress string

the address to transfer the tokens to

amount number

the amount of tokens to transfer

Source:
Returns:

resolve to transaction hash and block number

Type
Promise