Socket
Book a DemoInstallSign in
Socket

@ethernauta/chain

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethernauta/chain

[![bundlejs](https://deno.bundlejs.com/badge?q=@ethernauta/chain@0.0.10&treeshake=[*])](https://deno.bundlejs.com/badge?q=@ethernauta/chain@0.0.10&treeshake=[*])

latest
Source
npmnpm
Version
0.0.40
Version published
Maintainers
1
Created
Source

bundlejs

Philosophy

This module aims to be an un-opinionated representation of the defined:

Modules

Table of contents

API

import { eip155_1, encode_chain_id, decode_chain_id } from "@ethernauta/chain"
const chain_id = encode_chain_id({
  namespace: "eip155",
  reference: eip155_1.chainId,
}) 
console.log(chain_id)// eip155:11155111
const { namespace, reference } = decode_chain_id(chain_id)
console.log(namespace)// eip155
console.log(reference)// 11155111

Files to pay attention

chain

FAQs

Package last updated on 26 Aug 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