| Crates.io | frame-runtime-api |
| lib.rs | frame-runtime-api |
| version | 0.2.0 |
| created_at | 2025-11-25 15:28:06.303644+00 |
| updated_at | 2025-11-25 15:28:06.303644+00 |
| description | Inspect FRAME metadata of a Polkadot-SDK WASM runtime. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1949949 |
| size | 136,744 |
Call into WASM Runtime API and list types in the metadata for debugging purposes.
Install with:
cargo install frame-runtime-api --locked
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.