Socket
Book a DemoInstallSign in
Socket

@xyo-network/chain-network-model

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xyo-network/chain-network-model

XYO Layer One API

1.14.2
latest
Source
npmnpm
Version published
Weekly downloads
164
-72.85%
Maintainers
0
Weekly downloads
 
Created
Source

@xyo-network/chain-network-model

logo

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

XYO Layer One API

Reference

@xyo-network/chain-network-model

Interfaces

Type Aliases

Variables

Functions

References

MainNetworkIconString

Renames and re-exports LocalNetworkIconString

SequenceNetworkIconString

Renames and re-exports LocalNetworkIconString

functions

getNetworkNode

@xyo-network/chain-network-model

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

Returns

Promise<MemoryNode<MemoryNodeParams, NodeModuleEventData>>

getNetworkNodes

@xyo-network/chain-network-model

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

Returns

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

initNetworkNode

@xyo-network/chain-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/chain-network-model

Deprecated

only for backward compatibility

Extended by

Properties

chain?

optional chain: Lowercase<string>;

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/chain-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: Lowercase<string>;

Address of the forked chain

Network

@xyo-network/chain-network-model

Extends

Properties

chain?

optional chain: Lowercase<string>;

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

Inherited from

NetworkBootstrap.chain

name

name: string;

Name of the chain

Inherited from

NetworkBootstrap.name

url

url: string;

Url for accessing the network

Inherited from

NetworkBootstrap.url

forkedAtLastBlockNumber?

optional forkedAtLastBlockNumber: string;

Block Number at which the chain was forked from

Inherited from

NetworkBootstrap.forkedAtLastBlockNumber

forkedAtLastHash?

optional forkedAtLastHash: string;

Hash in the last block the chain was forked from

Inherited from

NetworkBootstrap.forkedAtLastHash

forkedChainId?

optional forkedChainId: Lowercase<string>;

Address of the forked chain

Inherited from

NetworkBootstrap.forkedChainId

description

description: string;

Description of the network

Inherited from

NetworkBootstrap.description

explorerUrl?

optional explorerUrl: string;

Url for accessing the network explorer

Inherited from

NetworkBootstrap.explorerUrl

icon?

optional icon: string;

string representation of the icon (svg)

Inherited from

NetworkBootstrap.icon

id

id: DefaultNetworkIds;

Machine-readable identifier

Inherited from

NetworkBootstrap.id

symbol?

optional symbol: string;

Symbol of the network

Inherited from

NetworkBootstrap.symbol

custom

custom: boolean;

NetworkBootstrapFields

@xyo-network/chain-network-model

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

Extends

Properties

chain?

optional chain: Lowercase<string>;

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: Lowercase<string>;

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/chain-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/chain-network-model

type NetworkBootstrap = Payload<NetworkBootstrapFields, NetworkBootstrapSchema>;

NetworkBootstrapSchema

@xyo-network/chain-network-model

type NetworkBootstrapSchema = typeof NetworkBootstrapSchema;

variables

DefaultNetworks

@xyo-network/chain-network-model

const DefaultNetworks: NetworkBootstrap[];

LocalNetwork

@xyo-network/chain-network-model

const LocalNetwork: NetworkBootstrap;

LocalNetworkIconString

@xyo-network/chain-network-model

const LocalNetworkIconString: string;

MainNetwork

@xyo-network/chain-network-model

const MainNetwork: NetworkBootstrap;

NetworkBootstrapSchema

@xyo-network/chain-network-model

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

SequenceNetwork

@xyo-network/chain-network-model

const SequenceNetwork: NetworkBootstrap;

asOptionalNetwork

@xyo-network/chain-network-model

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

Parameters

value

AnyNonPromise

Returns

undefined | NetworkBootstrap

isNetworkBootstrap

@xyo-network/chain-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 03 Sep 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.