Home

Get runtime metadata

POST
https://dot.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-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.0required

JSON-RPC version identifier

methodstringstate_getMetadatarequired

The method to be invoked

idinteger | stringrequired

Request identifier for matching responses

paramsArray<string>required

Optional 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