Constants
Runtime constants (parameter types) are defined in metadata, and can be inspected via client.consts
entry point with format: client.consts.<pallet>.<constantName>
All available constants are also exposed in the ChainApi
interface. E.g: Available constants for Polkadot network is defined here, similarly for other networks.
// Get runtime version
const runtimeVersion = client.consts.system.version;
// Get existential deposit in pallet balances
const existentialDeposit = client.consts.balances.existentialDeposit;
Last updated
Was this helpful?