{ "opencollection": "1.0.0", "info": { "name": "Polkadot REST Account runtime API", "version": "0.1.3" }, "items": [ { "info": { "name": "runtime", "type": "folder" }, "items": [ { "info": { "name": "Runtime Wasm code", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/v1/runtime/code", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block hash or number to query at" } ] }, "docs": "Returns the Wasm code blob of the Substrate runtime at a given block." }, { "info": { "name": "Runtime metadata", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/v1/runtime/metadata", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block hash or number to query at" } ] }, "docs": "Returns the decoded runtime metadata in JSON format." }, { "info": { "name": "Available metadata versions", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/v1/runtime/metadata/versions", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block hash or number to query at" } ] }, "docs": "Returns the available metadata versions at a given block." }, { "info": { "name": "Runtime metadata by version", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/v1/runtime/metadata/:version", "params": [ { "name": "version", "value": "", "type": "path", "description": "Metadata version (e.g., 'v14', 'v15')" }, { "name": "at", "value": "", "type": "query", "description": "Block hash or number to query at" } ] }, "docs": "Returns the metadata at a specific version. The version parameter should be in 'vX' format (e.g., 'v14', 'v15')." }, { "info": { "name": "Runtime specification", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/v1/runtime/spec", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block hash or number to query at" } ] }, "docs": "Returns the runtime specification including version, APIs, and chain properties." }, { "info": { "name": "List runtime versions", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8080/v1/api/scan/runtime/list" }, "docs": "Returns runtime version history for the current network." }, { "info": { "name": "Get runtime metadata", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8080/v1/api/scan/runtime/metadata" }, "docs": "Returns runtime metadata modules for the specified runtime spec version." }, { "info": { "name": "List runtime modules", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8080/v1/api/scan/runtime/modules" }, "docs": "Returns runtime modules for the specified runtime spec version." }, { "info": { "name": "Get the runtime metadata in decoded, JSON form.", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/runtime/metadata", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block at which to retrieve the metadata at." } ] }, "docs": "Returns the runtime metadata as a JSON object. Substrate Reference: - FRAME Support: https://crates.parity.io/frame_support/metadata/index.html - Knowledge Base: https://substrate.dev/docs/en/knowledgebase/runtime/metadata" }, { "info": { "name": "Get the requested version of runtime metadata in decoded, JSON form.", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/runtime/metadata/:metadataVersion", "params": [ { "name": "metadataVersion", "value": "", "type": "path", "description": "The version of metadata. The input is expected in a `vX` format, where `X` represents the version number (e.g. `v14`, `v15`)." }, { "name": "at", "value": "", "type": "query", "description": "Block at which to retrieve the metadata at." } ] }, "docs": "Returns the requested version of runtime metadata as a JSON object. Substrate Reference: - FRAME Support: https://crates.parity.io/frame_support/metadata/index.html - Knowledge Base: https://substrate.dev/docs/en/knowledgebase/runtime/metadata" }, { "info": { "name": "Get the available versions of runtime metadata.", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/runtime/metadata/versions", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block at which to retrieve the metadata versions at." } ] }, "docs": "Returns the available versions of runtime metadata. Substrate Reference: - FRAME Support: https://crates.parity.io/frame_support/metadata/index.html - Knowledge Base: https://substrate.dev/docs/en/knowledgebase/runtime/metadata" }, { "info": { "name": "Get the runtime wasm blob.", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/runtime/code", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block at which to retrieve the runtime wasm blob at." } ] }, "docs": "Returns the runtime Wasm blob in hex format." }, { "info": { "name": "Get version information of the Substrate runtime.", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8080/v1/runtime/spec", "params": [ { "name": "at", "value": "", "type": "query", "description": "Block at which to retrieve runtime version information at." } ] }, "docs": "Returns version information related to the runtime." } ] } ], "bundled": true }