@ring-protocol/sdk-core / Exports / Ether
Class: Ether
Ether is the main usage of a 'native' currency, i.e. for Ethereum mainnet and all testnets
Hierarchy
-
↳
Ether
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• Protected new Ether(chainId)
Parameters
| Name | Type |
|---|---|
chainId | number |
Overrides
Defined in
Properties
chainId
• Readonly chainId: number
The chain ID on which this currency resides
Inherited from
Defined in
decimals
• Readonly decimals: number
The decimals used in representing currency amounts
Inherited from
Defined in
isNative
• Readonly isNative: true
Inherited from
Defined in
isToken
• Readonly isToken: false
Inherited from
Defined in
name
• Optional Readonly name: string
The name of the currency, i.e. a descriptive textual non-unique identifier
Inherited from
Defined in
symbol
• Optional Readonly symbol: string
The symbol of the currency, i.e. a short textual non-unique identifier
Inherited from
Defined in
_etherCache
▪ Static Private _etherCache: Object = {}
Index signature
▪ [chainId: number]: Ether