🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

erc7412

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erc7412

Reference implementation for usage of EIP-7412

1.1.0
latest
Source
npm
Version published
Weekly downloads
1.5K
-2.44%
Maintainers
4
Weekly downloads
 
Created
Source

ERC-7412

Sequence Diagram

ERC-7412 is the implementation of an Ethereum Improvement Proposal to provide a mechanism for loading data from a trusted provider on-chain, on-demand. Its a successor to the more constrained EIP-3668.

This repository contains a basic reference implementation for a client library enabling ERC-7412 support and a test demonstrating its functionality.

Currently, there are 3 off-chain data providers officially supported. They are automatically loaded and processed by the library if observed:

  • Pyth
  • Chainlink
  • Redstone

To learn more about using ERC-7412, see the integration guide.

Development Information

The library uses pnpm. The usual node.js project commands apply:

pnpm install
pnpm build
pnpm test

Run the integration Test

A series of test scripts are included in the repository. For example, to run the Pyth test:

RPC_URL=... pnpm test:e2e:pyth

Other oracle provider may require credentials from the provider or other environment variables, depending on the provider.

Keywords

ethereum

FAQs

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