Socket
Book a DemoInstallSign in
Socket

@chainlink/ethers-ccip-read-provider

Package Overview
Dependencies
Maintainers
31
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainlink/ethers-ccip-read-provider

ethers.js v5 provider for ccip-read, a secure protocol for offchain data retrieval

latest
Source
npmnpm
Version
0.2.3
Version published
Maintainers
31
Created
Source

Ethers CCIP-read provider

This package implements an Ethers provider that wraps any other Ethers provider, adding transparent support for EIP 3668 (CCIP read).

With this provider installed, calls to contracts that implement EIP 3668 look like regular contract calls, with fetching of external data and reissuing the call happening transparently behind the scenes.

Example usage:

// outerProvider is whatever your usual Ethers provider would be
const outerProvider = new ethers.providers.JsonRpcProvider('http://localhost:8545/');
const provider = new CCIPReadProvider(outerProvier);
const contract = new ethers.Contract(address, abi, provider);
const result = await contract.someFunc(...);

FAQs

Package last updated on 18 Feb 2022

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