frame-runtime-api

Crates.ioframe-runtime-api
lib.rsframe-runtime-api
version0.2.0
created_at2025-11-25 15:28:06.303644+00
updated_at2025-11-25 15:28:06.303644+00
descriptionInspect FRAME metadata of a Polkadot-SDK WASM runtime.
homepage
repository
max_upload_size
id1949949
size136,744
Oliver Tale-Yazdi (ggwpez)

documentation

README

Frame Runtime API CLI

Call into WASM Runtime API and list types in the metadata for debugging purposes.

Install with:

cargo install frame-runtime-api --locked

Example

First download some Substrate WASM runtime, like Polkadot 2.0.3.

Some example calls:

# Get the metadata
frame-runtime-api -r asset-hub-polkadot_runtime-v2000003.compact.compressed.wasm call Metadata metadata

# Get the versions
frame-runtime-api -r .. call Core version

Listing and finding metadata types:

# List all types
frame-runtime-api -r .. metadata show types
# > cumulus_pallet_parachain_system::pallet::Call
# > cumulus_pallet_xcm::pallet::Call
# ...
# > xcm::v5::traits::Error
# > xcm_runtime_apis::authorized_aliases::OriginAliaser

# Show all pallet calls
frame-runtime-api -r .. metadata show types ".*::pallet::Call"
# > cumulus_pallet_parachain_system::pallet::Call
# > cumulus_pallet_xcm::pallet::Call
# ...
# > snowbridge_pallet_system_frontend::pallet::Call
# > staging_parachain_info::pallet::Call

If no runtime with -r is provided, it will try to find a .wasm. file in the current folder and error if none or multiple are found.

TODO

  • Use V15 Runtime API metadata to decode results instead of hard-coding some known-good ones.
  • Make passing arguments easier.
Commit count: 0

cargo fmt