paritytech / subxt-explorer

Web App for exploring Substrate-based Chains using Subxt
Other
12 stars 0 forks source link

Executing Runtime API Calls from the Browser #14

Closed tadeohepperle closed 9 months ago

tadeohepperle commented 9 months ago

We want Runtime APIs to be executable in the Browser. This PR adds call execution for methods that do not need input values.

Open Question: How far should we go in a direction similar to Polkadot.js providing input forms generated from type information, that can be filled out to submit storage requests and runtime api calls?

I guess one blocker for this right now is that it is not clear what format that input should be in, especially for e.g. [u8;...] values. We would like to have a way to convert hex or ss58 formatted binary data into scale values which are then converted into scale encoded blobs.

image