Architecture
Query lifecycle from data request to retrieval
Last updated
Was this helpful?
Query lifecycle from data request to retrieval
Last updated
Was this helpful?
In Futaba, and are the off-chain components and they receive the Src (Source) chain requests. Relayer then retrieves the storage proof from each chain, and retrieves the block headers and returns them to the Src chain for validation.
Phase 1: request query
Phase 2: off-chain agents work
Phase 3: verify and return data to the user
The store received data as a cache
If verification is successful, data is returned to User Contract
Call the endpoint to request a query from the user contract
emits events related to query requests to
An event about the query of the block header is emitted from to
receives the event and gets the block header (state root) for a specific block height in the destination chain
Return and save state root to
work
receives the event and obtains the account proof and storage proof of the target data
Return the proof to the in the src chain (at this time, the state root must have been saved first)
to verify account proof and storage proof