Lisk Elements Constants

The Lisk Elements Constants object provides some useful general-purpose constants for the Lisk Ecosystem.


This adds the Lisk Client as a dependency of your project:

$ npm install @liskhq/lisk-constants


To perform an upgrade, execute the following command:

npm update @liskhq/lisk-constants


import * as constants from '@liskhq/lisk-constants';

constants.EPOCH_TIME; (1)
constants.EPOCH_TIME_SECONDS; (3)

constants.MAX_ADDRESS_NUMBER; (4)

constants.BETANET_NETHASH; (7)
constants.TESTNET_NETHASH; (8)
constants.MAINNET_NETHASH; (9)
1 Date from which timestamps are calculated.
2 EPOCH_TIME in milliseconds since Lisk Epoch.
3 EPOCH_TIME in seconds since Lisk Epoch.
4 Maximum valid number which can form an address when suffixed with an 'L'.
5 Maximum valid amount for a transaction. Maximum value for PostgreSQL bigint.
6 The prefix attached to all messages signed according to the Lisk message signature protocol.
7 Nethash for Betanet.
8 Nethash for Testnet.
9 Nethash for Mainnet.