curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}import requests
url = "https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}', 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://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"withdrawalIndex": "42",
"vaultAddress": "0x5fbdb2315678afecb367f032d93f642f64180aa3",
"calldata": "<string>"
}Get withdrawal
Fetch a withdrawal’s executable calldata by index.
Public lookup — no auth. Returns the vault address and ABI-encoded
executeWithdrawal(...) calldata for a previously-initiated
withdrawal_index. The calldata is bound to the fixed
(index, metadata, owner, destination, token, amount) tuple persisted for
the withdrawal, so re-fetching it cannot redirect funds. Returns 409 while
the withdrawal’s root has not been confirmed on-chain yet (proof not
available) — clients poll this endpoint until it succeeds.
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}import requests
url = "https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}', 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://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/withdrawals/{withdrawalIndex}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"withdrawalIndex": "42",
"vaultAddress": "0x5fbdb2315678afecb367f032d93f642f64180aa3",
"calldata": "<string>"
}Path Parameters
Response
OK
Allocated withdrawal index — matches executeWithdrawal.index on-chain
"42"
0x-prefixed lowercase address of the vault contract the calldata is submitted to
"0x5fbdb2315678afecb367f032d93f642f64180aa3"
0x-prefixed ABI-encoded executeWithdrawal(...) calldata; submit as tx.data to the vault. Empty on InitiateWithdrawal (the merkle proof is not available until the withdrawal root is confirmed on-chain) — fetch it from GetWithdrawal once ready
Was this page helpful?

