Skip to main content

/runtime/code REST API Endpoint

Loading...

Updated on
Sep 02, 2024

/runtime/code REST API Endpoint

Path Parameters

Query Parameters

at
string
Loading...

Returns

at
object
Loading...
hash
string
Loading...
height
string
Loading...
code
string
Loading...
Request
1
# AssetHub (default) - for runtime code from AssetHub parachain
2
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/runtime/code' \
3
--header 'Accept: application/json'
4
5
# Polkadot Relaychain - for runtime code from Relaychain (requires /rc prefix)
6
curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/rc/runtime/code' \
7
--header 'Accept: application/json'
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free