You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

@layerzerolabs/error-parser

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@layerzerolabs/error-parser

3.0.99
74

Supply Chain Security

100

Vulnerability

77

Quality

96

Maintenance

90

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
459
-54.19%
Maintainers
1
Weekly downloads
 
Created

Overview

This package provides utilities for handling errors returned by LayerZero protocol contracts. It offers a streamlined way to check and parse hexadecimal strings that may represent errors sent by Solidity contracts.

Installation

To use this package, include it in your project using npm or yarn:

npm install @layerzerolabs/error-parser

or

yarn add @layerzerolabs/error-parser

Usage

The package exports two main functions:

checkError(data: string): void

This function checks a given string for any errors sent by a LayerZero contract.

parseError(data: string): LayerZeroParsedError | null

This function parses a given string for error and decodes it.

FAQs

Package last updated on 30 May 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