cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_validators_ordered \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_validators_ordered",
"params": {
"block_id": 1
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_validators_ordered',
params: {block_id: 1},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_validators_ordered', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_validators_ordered"
payload = {
"method": "EXPERIMENTAL_validators_ordered",
"params": { "block_id": 1 },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": [
{
"account_id": "<string>",
"public_key": "<string>",
"stake": "<string>",
"validator_stake_struct_version": "V1"
}
],
"id": "<string>",
"jsonrpc": "<string>"
}Post experimental validators ordered
Returns the current epoch validators ordered in the block producer order with repetition. This endpoint is solely used for bridge currently and is not intended for other external use cases.
POST
/
EXPERIMENTAL_validators_ordered
cURL
curl --request POST \
--url https://api.example.com/EXPERIMENTAL_validators_ordered \
--header 'Content-Type: application/json' \
--data '
{
"method": "EXPERIMENTAL_validators_ordered",
"params": {
"block_id": 1
},
"id": "dontcare",
"jsonrpc": "2.0"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
method: 'EXPERIMENTAL_validators_ordered',
params: {block_id: 1},
id: 'dontcare',
jsonrpc: '2.0'
})
};
fetch('https://api.example.com/EXPERIMENTAL_validators_ordered', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/EXPERIMENTAL_validators_ordered"
payload = {
"method": "EXPERIMENTAL_validators_ordered",
"params": { "block_id": 1 },
"id": "dontcare",
"jsonrpc": "2.0"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"result": [
{
"account_id": "<string>",
"public_key": "<string>",
"stake": "<string>",
"validator_stake_struct_version": "V1"
}
],
"id": "<string>",
"jsonrpc": "<string>"
}Body
application/json
Was this page helpful?