Skip to content

Currency


Constants


GetNativeCurrencyId

Native currency e.g. INTR/KINT

Value

{'Token': 'INTR'}

Python

constant = substrate.get_constant('Currency', 'GetNativeCurrencyId')

GetRelayChainCurrencyId

Relay chain currency e.g. DOT/KSM

Value

{'Token': 'DOT'}

Python

constant = substrate.get_constant('Currency', 'GetRelayChainCurrencyId')

GetWrappedCurrencyId

Wrapped currency e.g. IBTC/KBTC

Value

{'Token': 'IBTC'}

Python

constant = substrate.get_constant('Currency', 'GetWrappedCurrencyId')

Errors


InvalidCurrency


TryIntoIntError