How to use the @liskhq/lisk-transactions.InTransferTransaction function in @liskhq/lisk-transactions

To help you get started, we’ve selected a few @liskhq/lisk-transactions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiskArchive / lisk-elements / packages / lisk-node / src / application.ts View on Github external
httpPort: 8000,
				broadhash:
					'2768b267ae621a9ed3b3034e2e8a1bed40895c621bbb1bbd613d92b9d24e54b5',
				nonce: crypto.randomBytes(8).toString('hex'),
			},
		});
		this._db = new DB('./blockchain.db');
		this._logger.info('Database instansiated');
		this._blockchain = new Blockchain(genesis, this._db, {
			0: transactions.TransferTransaction,
			1: transactions.SecondSignatureTransaction,
			2: transactions.DelegateTransaction,
			3: transactions.VoteTransaction,
			4: transactions.MultisignatureTransaction,
			5: transactions.DappTransaction,
			6: transactions.InTransferTransaction,
			7: transactions.OutTransferTransaction,
		});
		this._logger.info('Blockchain instansiated');
		this._dpos = new DPOS(this._db, this._blockchain);
		this._logger.info('DPOS instansiated');
		this._sync = new Sync(
			this._blockchain,
			this._dpos,
			this._p2p,
			this._logger,
		);
	}