Skip to main content

TypeAlias.NativeCurrency

type NativeCurrency = {
decimals: number;
name: string;
symbol: string;
};

Represents the native currency of a blockchain network.

Type declaration

NameType
decimalsnumber
namestring
symbolstring

Examples

const nativeCurrency = {
name: "Ether",
symbol: "ETH",
decimals: 18
};
const nativeCurrency = {
name: "Bitcoin",
symbol: "BTC",
decimals: 8
};