Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@layerzerolabs/evm-sdks-core

Package Overview
Dependencies
Maintainers
0
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/evm-sdks-core

  • 3.0.31
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-32.76%
Maintainers
0
Weekly downloads
 
Created
Source

@layerzerolabs/evm-sdks-core

The EVM SDKs Core package provides essential utilities and tools for interacting with EVM-compatible blockchains. It includes functions for contract error parsing.

Features

  • Error Parsing: Parse contract errors and convert them into easy-to-read and structured data.

Installation

To install the EVM SDKs Core package, you can use npm or yarn:

npm install @layerzerolabs/evm-sdks-core

or

yarn add @layerzerolabs/evm-sdks-core

Usage

Error Parsing

import { LayerZeroErrorParser, Abi } from "@layerzerolabs/evm-sdks-core";
import { EndpointV2__factory } from "@layerzerolabs/lz-evm-sdk-v2";

const abi: Abi = Endpoint__factory.createInterface();
const parser = new LayerZeroErrorParser(abi);

const errorData = "..."; // Error data string
const parsedError = parser.parse(errorData);

if (parsedError) {
  console.log(`Error: ${parsedError.message}`);
}

FAQs

Package last updated on 18 Dec 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc