Skip to content

Convenient way to invoke runtime API #4930

Closed
@xlc

Description

@xlc

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions