Runtime APIs
Metadata >= v15
>= v15
The latest stable Metadata v15 now includes all the runtime apis type information. For chains that are supported Metadata V15, we can now execute all available runtime apis with syntax client.call.<runtimeApi>.<methodName>
, those apis are exposed in ChainApi
interface. E.g: Runtime Apis for Polkadot network is defined here, similarly for other networks as well.
Metadata v14
v14
For chains that only support Metadata v14, we need to bring in the Runtime Api definitions when initializing the DedotClient instance to encode & decode the calls. You can find all supported Runtime Api definitions in dedot/runtime-specs
package.
You absolutely can define your own Runtime Api definition if you don't find it in the supported list.
Last updated