Closed
Description
Context: paritytech/substrate-connect#1096
We would like to replace custom RPC with state_call
but we need a better API to invoke runtime APIs.
We should be able to supply a definition (similar to RPC defs) and polkadot.js should be able to use it to generate methods like api.call.evm.execute(contract_addr, input)
and return the decoded response.
In future, if we can make metadata to include runtime API defs, then we can automatically generate those methods from metadata.