🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@nahmii/sdk

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nahmii/sdk

Tools for working with Nahmii 3

latest
Source
npmnpm
Version
3.2.3
Version published
Maintainers
3
Created
Source

@nahmii/sdk

The @nahmii/sdk package provides a set of tools for interacting with Nahmii 3.

Installation

npm install @nahmii/sdk

Using the SDK

CrossChainMessenger

The CrossChainMessenger class simplifies the process of moving assets and data between Ethereum and Optimism. You can use this class to, for example, initiate a bridge operation of ERC20 tokens from Nahmii back to the base layer, accurately track when the bridge operation is ready to be finalized on base layer, and execute the finalization transaction after the challenge period has elapsed. The CrossChainMessenger can handle bridge operations in either direction of ETH and any ERC20 or ERC721 compatible token.

The CrossChainMessenger automatically connects to all relevant contracts so complex configuration is not necessary.

The Nahmii SDK includes various utilities for handling Nahmii's transaction fee model. For instance, estimateTotalGasCost will estimate the total cost (in wei) to send at transaction on Nahmii including both the L2 execution cost and the L1 data cost. You can also use the asL2Provider function to wrap an ethers Provider object into an L2Provider which will have all of these helper functions attached.

Keywords

nahmii

FAQs

Package last updated on 07 Sep 2023

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