Network.ts
Network overview
Table of contents
conversion
fromId
Converts a NetworkId to Network type.
Signature
export declare const fromId: (id: NetworkId.NetworkId) => NetworkAdded in v2.0.0
toId
Converts a Network type to NetworkId number.
Signature
export declare const toId: <T extends Network>(network: T) => NetworkId.NetworkIdAdded in v2.0.0
model
Network (type alias)
Type alias for Network representing Cardano network types.
Signature
export type Network = typeof Network.TypeAdded in v2.0.0
predicates
is
Check if a value is a valid Network.
Signature
export declare const is: (value: unknown) => value is NetworkAdded 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