![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@layerzerolabs/lz-corekit-initia
Advanced tools
The Initia CoreKit is a comprehensive SDK designed to interact with the Initia blockchain. It provides a set of utilities and modules to facilitate the development and integration of applications with the Initia blockchain.
To install the Initia CoreKit, you can use npm or yarn:
npm install @layerzerolabs/lz-corekit-initia
or
yarn add @layerzerolabs/lz-corekit-initia
import { InitiaProvider } from "@layerzerolabs/lz-corekit-initia";
// url is the Initia chain full node url
const url = "http://127.0.0.1:8516";
const provider = InitiaProvider.from(url);
import { InitiaProvider } from "@layerzerolabs/lz-corekit-initia";
// url is the Initia chain full node url
const url = "http://127.0.0.1:8516";
const provider = InitiaProvider.from(url);
const address = "0x1";
const balance = await provider.getBalance(address);
import { InitiaProvider } from "@layerzerolabs/lz-corekit-initia";
// url is the Initia chain full node url
const url = "http://127.0.0.1:8516";
const provider = InitiaProvider.from(url);
const number = await provider.getBlockNumber();
import { InitiaProvider } from "@layerzerolabs/lz-corekit-initia";
// url is the Initia chain full node url
const url = "http://127.0.0.1:8516";
const provider = InitiaProvider.from(url);
const hash = "0x1";
const tx = await provider.getTransaction(hash);
import { InitiaProvider, InitiaSigner } from '@layerzerolabs/lz-corekit-initia'
import { SignedTransaction, TransactionReceipt, TransactionRequest } from '@layerzerolabs/lz-core'
// url is the Initia chain full node url
const url = 'http://127.0.0.1:8516'
const provider = InitiaProvider.from(url)
const privateKey = '0x1234'
const signer = InitiaSigner.from(privateKey)
signer.connect(provider)
const tx: TransactionRequest = ...
const stx: SignedTransaction = await signer.signTransaction(tx)
const receipt: TransactionReceipt = await signer.sendAndConfirm(stx)
FAQs
LayerZero Core Library
The npm package @layerzerolabs/lz-corekit-initia receives a total of 681 weekly downloads. As such, @layerzerolabs/lz-corekit-initia popularity was classified as not popular.
We found that @layerzerolabs/lz-corekit-initia demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.