@eternl/network-id
v0.10.18
Published
Network identifiers and network-level metadata for Eternl packages
Keywords
Readme
@eternl/network-id
Network identifiers and network-level metadata for Eternl packages.
Install
npm install @eternl/network-idUsage
import {
NETWORK_ID,
type NetworkId,
isSupportedNetworkId,
isTestnetNetwork,
getNetworkCurrencyCode
} from '@eternl/network-id'
const id: NetworkId = NETWORK_ID.MAINNET
if (isSupportedNetworkId(id)) {
console.log(isTestnetNetwork(id))
console.log(getNetworkCurrencyCode(id))
}Exports
NETWORK_IDNetworkIdnetworkIdListnetworkIdxnetworkGroupsnetworkAddressPrefixnetworkStakeAddressPrefixnetworkCurrencyCodenetworkCurrencySymbolisSupportedNetworkIdgetNetworkIdgetNetworkDecimalsisTestnetNetworkisCustomNetworkgetNetworkCurrencyCodegetNetworkCurrencySymbol
License
Business Source License 1.1 (BUSL-1.1).
Additional Use Grant: None.
Commercial use requires a separate license from Tastenkunst.
Contact: https://tastenkunst.com/
