You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP →
Socket
Book a DemoSign in
Socket

@xyo-network/xl1-network-model

Package Overview
Dependencies
Maintainers
5
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/xl1-network-model

XYO Layer One API

latest
Source
npmnpm
Version
1.25.26
Version published
Maintainers
5
Created
Source

@xyo-network/xl1-network-model

logo

npm-badge npm-downloads-badge jsdelivr-badge npm-license-badge socket-badge

XYO Layer One API

Reference

@xyo-network/xl1-network-model

Interfaces

Type Aliases

Variables

Functions

References

MainNetworkIconString

Renames and re-exports LocalNetworkIconString

SequenceNetworkIconString

Renames and re-exports LocalNetworkIconString

functions

getNetworkNode

@xyo-network/xl1-network-model

function getNetworkNode(): Promise<MemoryNode<MemoryNodeParams, NodeModuleEventData>>;

Returns

Promise<MemoryNode<MemoryNodeParams, NodeModuleEventData>>

getNetworkNodes

@xyo-network/xl1-network-model

function getNetworkNodes(): Map<string, AttachableNodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>>;

Returns

Map<string, AttachableNodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>>

initNetworkNode

@xyo-network/xl1-network-model

function initNetworkNode(activeNetwork): Promise<AttachableNodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>>;

Parameters

activeNetwork

NetworkBootstrap

Returns

Promise<AttachableNodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>>

interfaces

ChainConnection

@xyo-network/xl1-network-model

Extended by

Properties

chain?

optional chain: ChainId;

Chain Identifier - can be a hex (eth contract address) or a string

name

name: string;

Name of the chain

url

url: string;

Url for accessing the network

ChainForkFields

@xyo-network/xl1-network-model

Extended by

Properties

forkedAtLastBlockNumber?

optional forkedAtLastBlockNumber: string;

Block Number at which the chain was forked from

forkedAtLastHash?

optional forkedAtLastHash: string;

Hash in the last block the chain was forked from

forkedChainId?

optional forkedChainId: Address;

Address of the forked chain

Network

@xyo-network/xl1-network-model

Extends

Properties

chain?

optional chain: ChainId;

Chain Identifier - can be a hex (eth contract address) or a string

Inherited from

ChainConnection.chain

name

name: string;

Name of the chain

Inherited from

ChainConnection.name

url

url: string;

Url for accessing the network

Inherited from

ChainConnection.url

forkedAtLastBlockNumber?

optional forkedAtLastBlockNumber: string;

Block Number at which the chain was forked from

Inherited from

ChainForkFields.forkedAtLastBlockNumber

forkedAtLastHash?

optional forkedAtLastHash: string;

Hash in the last block the chain was forked from

Inherited from

ChainForkFields.forkedAtLastHash

forkedChainId?

optional forkedChainId: Address;

Address of the forked chain

Inherited from

ChainForkFields.forkedChainId

description

description: string;

Description of the network

Inherited from

NetworkFields.description

explorerUrl?

optional explorerUrl: string;

Url for accessing the network explorer

Inherited from

NetworkFields.explorerUrl

icon?

optional icon: string;

string representation of the icon (svg)

Inherited from

NetworkFields.icon

id

id: DefaultNetworkIds;

Machine-readable identifier

Inherited from

NetworkFields.id

symbol?

optional symbol: string;

Symbol of the network

Inherited from

NetworkFields.symbol

custom

custom: boolean;

NetworkBootstrapFields

@xyo-network/xl1-network-model

Note: Optional Properties can be found walking the chain to the genesis block

Extends

Properties

chain?

optional chain: ChainId;

Chain Identifier - can be a hex (eth contract address) or a string

Inherited from

ChainConnection.chain

name

name: string;

Name of the chain

Inherited from

ChainConnection.name

url

url: string;

Url for accessing the network

Inherited from

ChainConnection.url

forkedAtLastBlockNumber?

optional forkedAtLastBlockNumber: string;

Block Number at which the chain was forked from

Inherited from

ChainForkFields.forkedAtLastBlockNumber

forkedAtLastHash?

optional forkedAtLastHash: string;

Hash in the last block the chain was forked from

Inherited from

ChainForkFields.forkedAtLastHash

forkedChainId?

optional forkedChainId: Address;

Address of the forked chain

Inherited from

ChainForkFields.forkedChainId

description

description: string;

Description of the network

Inherited from

NetworkFields.description

explorerUrl?

optional explorerUrl: string;

Url for accessing the network explorer

Inherited from

NetworkFields.explorerUrl

icon?

optional icon: string;

string representation of the icon (svg)

Inherited from

NetworkFields.icon

id

id: DefaultNetworkIds;

Machine-readable identifier

Inherited from

NetworkFields.id

schema

schema: "network.xyo.network.bootstrap";

Inherited from

NetworkFields.schema

symbol?

optional symbol: string;

Symbol of the network

Inherited from

NetworkFields.symbol

NetworkFields

@xyo-network/xl1-network-model

Extended by

Properties

description

description: string;

Description of the network

explorerUrl?

optional explorerUrl: string;

Url for accessing the network explorer

icon?

optional icon: string;

string representation of the icon (svg)

id

id: DefaultNetworkIds;

Machine-readable identifier

schema

schema: "network.xyo.network.bootstrap";

symbol?

optional symbol: string;

Symbol of the network

type-aliases

NetworkBootstrap

@xyo-network/xl1-network-model

type NetworkBootstrap = Payload<NetworkBootstrapFields, NetworkBootstrapSchema>;

NetworkBootstrapSchema

@xyo-network/xl1-network-model

type NetworkBootstrapSchema = typeof NetworkBootstrapSchema;

variables

DefaultNetworks

@xyo-network/xl1-network-model

const DefaultNetworks: NetworkBootstrap[];

LocalNetwork

@xyo-network/xl1-network-model

const LocalNetwork: NetworkBootstrap;

LocalNetworkIconString

@xyo-network/xl1-network-model

const LocalNetworkIconString: string;

MainNetwork

@xyo-network/xl1-network-model

const MainNetwork: NetworkBootstrap;

NetworkBootstrapSchema

@xyo-network/xl1-network-model

const NetworkBootstrapSchema: "network.xyo.network.bootstrap";

SequenceNetwork

@xyo-network/xl1-network-model

const SequenceNetwork: NetworkBootstrap;

asOptionalNetwork

@xyo-network/xl1-network-model

const asOptionalNetwork: (value) => NetworkBootstrap | undefined;

Parameters

value

AnyNonPromise

Returns

NetworkBootstrap | undefined

isNetworkBootstrap

@xyo-network/xl1-network-model

const isNetworkBootstrap: (x?) => x is NetworkBootstrap;

Parameters

x?

unknown

Returns

x is NetworkBootstrap

Maintainers

License

See the LICENSE file for license details

Credits

Made with šŸ”„ and ā„ļø by XYO

FAQs

Package last updated on 11 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts