AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     

Contents

eth-v1-validator-aggregate_attestation REST API Endpoint

Parameters:

  1. attestation_data_root - string - The HashTreeRoot of AttestationData that validator wants aggregated
  2. slot - string - The slot position

Returns:

    data - array - The Attestation object from the CL spec that contains the following values:

    aggregation_bits - string - The Attester aggregation bits

    signature - string - The BLS aggregate signature

    data - object - The AttestationData object from the CL spec

    slot - string - The slot

    index - string - The index

    beacon_block_root - string - The LMD GHOST vote

    source - object - The Checkpoint object with the following fields:

    epoch - string - The corresponding epoch

    root - string - The corresponding root

    target - object - The Checkpoint object with the following fields:

    epoch - string - The corresponding epoch

    root - string - The corresponding root

Code Examples:

require "uri"
require "net/http"

url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/aggregate_attestation?attestation_data_root=ATTESTATION_DATA_ROOT&slot=SLOT_POSITION")
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
Ready to get started? Create a free account