@swapx-lib/sdk-core / Exports / NativeCurrency
Class: NativeCurrency
Represents the native currency of the chain on which it resides, e.g.
Hierarchy
-
BaseCurrency↳
NativeCurrency↳↳
Ether
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• Protected new NativeCurrency(chainId, decimals, symbol?, name?)
Constructs an instance of the base class BaseCurrency.
Parameters
| Name | Type | Description |
|---|---|---|
chainId | number | the chain ID on which this currency resides |
decimals | number | decimals of the currency |
symbol? | string | symbol of the currency |
name? | string | of the currency |
Inherited from
BaseCurrency.constructor
Defined in
entities/baseCurrency.ts:42
Properties
chainId
• Readonly chainId: number
The chain ID on which this currency resides