/call
endpoint and providing support for common network-specific endpoints that would be used to read or modify contract state. In theory, you could stack any number of Mesh API implementations on top of each other, where each child implementation calls some set of primitives exposed in this /call
endpoint.
In the case of Ethereum, a group of developers could implement a core mesh-ethereum
implementation that provides the ability to track and create ETH transfers, while another group of developers could write a mesh-erc20
that allows for tracking and creating ERC-20 token transfers using the eth_call
method exposed by mesh-ethereum
. Another group of developers could write an implementation that tracks DEX trades, lending activity, or even validator performance. You can see an example of how this would work in the following illustration:
Click to enlarge