cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_split_storage_info \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_split_storage_info",
"params": {},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_split_storage_info',
params: {},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_split_storage_info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_split_storage_info"
payload = {
"method": "EXPERIMENTAL_split_storage_info",
"params": {},
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"cold_head_height": 1,
"final_head_height": 1,
"head_height": 1,
"hot_db_kind": "<string>"
},
"id": "<string>",
"jsonrpc": "<string>"
}Post experimental split storage info
Contains the split storage information. More info on split storage here
POST
/
EXPERIMENTAL_split_storage_info
cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_split_storage_info \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_split_storage_info",
"params": {},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_split_storage_info',
params: {},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_split_storage_info', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_split_storage_info"
payload = {
"method": "EXPERIMENTAL_split_storage_info",
"params": {},
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": {
"cold_head_height": 1,
"final_head_height": 1,
"head_height": 1,
"hot_db_kind": "<string>"
},
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Response
200 - application/json
Was this page helpful?