Hello I am creating custom rpc call, I need metadata to be able to decode extrinsics call inside my calls.
But I don't know how to get substrate metadata inside my rpc call?
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityHello I am creating custom rpc call, I need metadata to be able to decode extrinsics call inside my calls.
But I don't know how to get substrate metadata inside my rpc call?
Conveniently, you have the relevant RPC method to get the metadata from a Substrate chain as the first example of the custom RPC documentation on Substrate.
Additionally, if you are considering to use Polkadot.js, this is the relevant method to get the metadata.
Finally, this answer should cover how to do this in a custom RPC call.