AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.
Start building today!
Parameters:
Returns:
aggregation_bits - string - The attester aggregation bits
data - array - The AttestationData object from the CL spec
slot - string - The corresponding slot
index - string - The index
beacon_block_root - string - The LMD GHOST vote
source - array - The Checkpoint
epoch - string - The corresponding epoch
root - string - The corresponding root
target - array - The Checkpoint
epoch - string - The corresponding epoch
root - string - The corresponding root
signature - string - The BLS aggregate signature
Code Examples:
curl -X GET \ "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/blocks/head/attestations" \ -H "accept: application/json"
import requests url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/blocks/head/attestations" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
require "uri" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/blocks/head/attestations") 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
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/beacon/blocks/head/attestations", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));