Module: @moralisweb3/sol-utils

moralis-monorepo / @moralisweb3/sol-utils

Module: @moralisweb3/sol-utils

Table of contents

Type Aliases

DataType Classes

Type Aliases

SolAddressish

Ƭ SolAddressish: SolAddress | string

Valid input for a new SolAddress instance.
This can be an existing SolAddress or a valid address string.

Example

"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"

Example

SolAddress.create("9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM")

SolNativeUnit

Ƭ SolNativeUnit: "solana" | "lamports" | number

Type containing valid Solana native units


SolNativeish

Ƭ SolNativeish: SolNative | BigNumberish

Valid input for a new SolNative instance.
This can be an existing SolNative or a valid BigNumberish type


SolNetworkName

Ƭ SolNetworkName: typeof solNetworkNames[number]

A name of Solana network.

Example

"mainnet"

Example

"devnet"

SolNetworkNameish

Ƭ SolNetworkNameish: SolNetworkName | string

A name of Solana network.

Example

"mainnet"

Example

"devnet"

SolNetworkish

Ƭ SolNetworkish: SolNetwork | SolNetworkNameish

Valid input for a new SolNetwork instance.
This can be an existing SolNetwork or a valid network name.

Example

"mainnet"

Example

"devnet"

Example

SolNetwork.create("mainnet")

Did this page help you?