@chainlink/ethers-ccip-read-provider
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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(...);

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.3
    82
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.3
    82
  • 0.2.2
    0
  • 0.2.1
    0
  • 0.2.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i @chainlink/ethers-ccip-read-provider

Weekly Downloads

84

Version

0.2.3

License

MIT

Unpacked Size

74.5 kB

Total Files

11

Last publish

Collaborators

  • michelemin
  • notoriousenigma
  • secure.andrew
  • secure.javier
  • secure.ericz
  • secure.thanh
  • m4us