CrossChain Read

Read crosschain states using Chainlink CCIP, similar to LZread on LayerZero

CrossChain Read

Created At

ETHGlobal Mumbai

Project Description

LayerZero lzRead lets a contract on one chain request data from another chain's state and get the result back on the origin chain. Developers use it to query balances, prices or any view function across chains without deploying custom messaging logic for each read.

ccip-read brings the same pull-based read pattern to Chainlink CCIP. An app on a source chain asks for the result of a view call on a target chain, and the result comes back through CCIP.

How it's Made

How it works Request (source chain): A consumer contract calls the read client with a target chain selector, a target contract address and ABI-encoded calldata for a view function. The client sends this request to the target chain as a CCIP message. Execute (target chain): A reader contract on the target chain receives the CCIP message, staticcalls the target contract and captures the return data. Respond (target → source): The reader sends the result back to the source chain in a second CCIP message. Deliver (source chain): The read client matches the response to the original request ID and runs the consumer's callback with the result.

background image mobile

Join the mailing list

Get the latest news and updates

CrossChain Read | ETHGlobal