Skip to main content

state_getMetadata - JSON-RPC Method

Returns the runtime metadata as a SCALE-encoded hex string. Use libraries like polkadot.js to decode.

Code Examples#

curl ${S.rpcBase} \
-X POST -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"state_getMetadata","params":[],"id":1}'