Join AWS, Dust Labs & OrangeDAO at QuickPitch. Win $80k — Apply Today.
Parameters:
Returns:
pubkey - string - The validator's BLS public key, uniquely identifying them. _48-bytes, hex encoded with 0x prefix, case insensitive
validator_index - boolean - The index of validator in validator registry
slot - array - The slot at which the validator must propose block
Code Examples:
curl -X GET \ "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/duties/proposer/1" \ -H "accept: application/json"
require "uri" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/duties/proposer/1") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) request["accept"] = "application/json" response = https.request(request) puts response.read_body
import requests url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/duties/proposer/1" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
var myHeaders = new Headers(); myHeaders.append("accept", "application/json"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/duties/proposer/1", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));