Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 days 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 (7 months ago)
- Default Branch: master
- Last Pushed: 2024-04-25T10:33:33.000Z (7 months ago)
- Last Synced: 2024-04-25T11:39:51.085Z (7 months ago)
- Language: Rust
- Size: 34.2 KB
- Stars: 0
- 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.