Retrieve all withdrawal events
curl --request GET \
--url https://api.eigenexplorer.com/events/withdrawal \
--header 'X-API-Token: <x-api-token>'import requests
url = "https://api.eigenexplorer.com/events/withdrawal"
headers = {"X-API-Token": "<x-api-token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Token': '<x-api-token>'}};
fetch('https://api.eigenexplorer.com/events/withdrawal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eigenexplorer.com/events/withdrawal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Token: <x-api-token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eigenexplorer.com/events/withdrawal"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Token", "<x-api-token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eigenexplorer.com/events/withdrawal")
.header("X-API-Token", "<x-api-token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eigenexplorer.com/events/withdrawal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Token"] = '<x-api-token>'
response = http.request(request)
puts response.read_body{
"tx": "0xae41958d0342a4485536f701c72723625131680f182eb21f95abdac6d74d0ff0",
"blockNumber": 21045085,
"blockTime": "2024-10-25T20:41:11.000Z",
"type": "WITHDRAWAL_QUEUED",
"args": {
"withdrawalRoot": "0xe6cdf9110330e1648039cb98e680aeb9d1c63e022764186f1131eb9432605421",
"staker": "0x513ea5a99988252f3b2cd8382ac077d7fd26ef48",
"delegatedTo": "0x4cd2086e1d708e65db5d4f5712a9ca46ed4bbd0a",
"withdrawer": "0x513ea5a99988252f3b2cd8382ac077d7fd26ef48",
"nonce": 0,
"startBlock": 21054925,
"strategies": [
{
"strategy": "0xacb55c530acdb2849e6d4f36992cd8c9d50ed8f7",
"shares": "1000000000000000000",
"underlyingToken": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"underlyingValue": 5,
"ethValue": 1
}
]
}
}{
"error": {
"code": "bad_request",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#bad_request"
}
}{
"error": {
"code": "unauthorized",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#unauthorized"
}
}{
"error": {
"code": "forbidden",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#forbidden"
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#not_found"
}
}{
"error": {
"code": "unprocessable_entity",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#unprocessable_entity"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#rate_limit_exceeded"
}
}{
"error": {
"code": "internal_server_error",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#internal_server_error"
}
}Events
Retrieve all withdrawal events
Returns a list of all withdrawal events.
GET
/
events
/
withdrawal
Retrieve all withdrawal events
curl --request GET \
--url https://api.eigenexplorer.com/events/withdrawal \
--header 'X-API-Token: <x-api-token>'import requests
url = "https://api.eigenexplorer.com/events/withdrawal"
headers = {"X-API-Token": "<x-api-token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Token': '<x-api-token>'}};
fetch('https://api.eigenexplorer.com/events/withdrawal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eigenexplorer.com/events/withdrawal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Token: <x-api-token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eigenexplorer.com/events/withdrawal"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Token", "<x-api-token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eigenexplorer.com/events/withdrawal")
.header("X-API-Token", "<x-api-token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eigenexplorer.com/events/withdrawal")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Token"] = '<x-api-token>'
response = http.request(request)
puts response.read_body{
"tx": "0xae41958d0342a4485536f701c72723625131680f182eb21f95abdac6d74d0ff0",
"blockNumber": 21045085,
"blockTime": "2024-10-25T20:41:11.000Z",
"type": "WITHDRAWAL_QUEUED",
"args": {
"withdrawalRoot": "0xe6cdf9110330e1648039cb98e680aeb9d1c63e022764186f1131eb9432605421",
"staker": "0x513ea5a99988252f3b2cd8382ac077d7fd26ef48",
"delegatedTo": "0x4cd2086e1d708e65db5d4f5712a9ca46ed4bbd0a",
"withdrawer": "0x513ea5a99988252f3b2cd8382ac077d7fd26ef48",
"nonce": 0,
"startBlock": 21054925,
"strategies": [
{
"strategy": "0xacb55c530acdb2849e6d4f36992cd8c9d50ed8f7",
"shares": "1000000000000000000",
"underlyingToken": "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
"underlyingValue": 5,
"ethValue": 1
}
]
}
}{
"error": {
"code": "bad_request",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#bad_request"
}
}{
"error": {
"code": "unauthorized",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#unauthorized"
}
}{
"error": {
"code": "forbidden",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#forbidden"
}
}{
"error": {
"code": "not_found",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#not_found"
}
}{
"error": {
"code": "unprocessable_entity",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#unprocessable_entity"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#rate_limit_exceeded"
}
}{
"error": {
"code": "internal_server_error",
"message": "The requested resource was not found.",
"doc_url": "https://docs.eigenexplorer.com/api-reference/errors#internal_server_error"
}
}The default date range between
The maximum allowed date range is 30 days.
startAt and endAt is 7 days, with startAt set 7 days before endAt.By default, endAt is set to the current timestamp (now).The maximum allowed date range is 30 days.
Query Parameters
Response
The withdrawal events found.