Get runtime metadata
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the runtime metadata as a hex-encoded string.
The state_getMetadata method provides the complete runtime metadata for the chain. This metadata describes all the types, storage entries, extrinsics, and events available in the runtime. It's essential for building type-safe applications and understanding the chain's capabilities.
This method is crucial for:
- Generating type definitions for applications
- Understanding available storage items and extrinsics
- Building dynamic DApp interfaces
- Runtime version compatibility checking
Body
application/json
jsonrpcstring2.0requiredJSON-RPC version identifier
methodstringstate_getMetadatarequiredThe method to be invoked
idinteger | stringrequiredRequest identifier for matching responses
paramsArray<string>requiredOptional parameters array. Can be empty or contain an optional block hash for historical metadata.
Response
200OK
Runtime metadata retrieved successfully
400Bad Request
Invalid request parameters
500Internal Server Error
Internal server error