https://github.com/ggwpez/frame-runtime-api
CLI to call APIs on a Runtime WASM blob.
https://github.com/ggwpez/frame-runtime-api
Last synced: 5 months ago
JSON representation
CLI to call APIs on a Runtime WASM blob.
- Host: GitHub
- URL: https://github.com/ggwpez/frame-runtime-api
- Owner: ggwpez
- Created: 2024-04-25T10:32:21.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-06-10T14:30:37.000Z (6 months ago)
- Last Synced: 2025-06-10T16:22:05.516Z (6 months ago)
- Language: Rust
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frame Runtime API CLI
Call into WASM Runtime API for debugging purposes.
## Example
First download some Substrate WASM runtime, like [Polkadot 1.2.0](https://github.com/polkadot-fellows/runtimes/releases/download/v1.2.0/polkadot_runtime-v1002000.compact.compressed.wasm).
Some example calls:
```bash
# Get the metadata
frame-runtime-api -r polkadot_runtime-v1002000.compact.compressed.wasm call Metadata metadata
# Get the versions
frame-runtime-api -r .. call Core version
```
Listing and finding metadata types:
```bash
# List all types
frame-runtime-api -r .. metadata list types
# Find a specific type (case-insensitive)
frame-runtime-api -r .. metadata find type runtimeversion
> sp_version::RuntimeVersion
```
## TODO
- [ ] Use V15 Runtime API metadata to decode results instead of hard-coding some known-good ones.
- [ ] Make passing arguments easier.