Skip to main content

state_getMetadata RPC method

Returns the runtime metadata.

Parameters

BlockHash string

The block hash to retrieve runtime metadata

Returns

result string

The runtime metadata for the provided block hash

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"state_getMetadata","params":[],"id":1,"jsonrpc":"2.0"}'