Evolution SDK

Network.ts

Network overview


Table of contents


conversion

fromId

Converts a NetworkId to Network type.

Signature

export declare const fromId: (id: NetworkId.NetworkId) => Network

Added in v2.0.0

toId

Converts a Network type to NetworkId number.

Signature

export declare const toId: <T extends Network>(network: T) => NetworkId.NetworkId

Added in v2.0.0

model

Network (type alias)

Type alias for Network representing Cardano network types.

Signature

export type Network = typeof Network.Type

Added in v2.0.0

predicates

is

Check if a value is a valid Network.

Signature

export declare const is: (value: unknown) => value is Network

Added in v2.0.0

schemas

Network

Schema for Network representing Cardano network types. Supports Mainnet, Preview, Preprod, and Custom networks.

Signature

export declare const Network: Schema.Literal<["Mainnet", "Preview", "Preprod", "Custom"]>

Added in v2.0.0