TypeAlias.NativeCurrency
type NativeCurrency = {
decimals: number;
name: string;
symbol: string;
};
Represents the native currency of a blockchain network.
Type declaration
Name | Type |
---|---|
decimals | number |
name | string |
symbol | string |
Examples
const nativeCurrency = {
name: "Ether",
symbol: "ETH",
decimals: 18
};
const nativeCurrency = {
name: "Bitcoin",
symbol: "BTC",
decimals: 8
};