Submit a Withdrawal
curl --request POST \
--url https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"signedTx": "<string>"
}
'import requests
url = "https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit"
payload = {
"token": "<string>",
"signedTx": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', signedTx: '<string>'})
};
fetch('https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit', 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.hel.io/v1/withdraw/{withdrawalDetailId}/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'token' => '<string>',
'signedTx' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"signedTx\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\",\n \"signedTx\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"token\": \"<string>\",\n \"signedTx\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"withdrawalDetailId": "<string>",
"txHash": "<string>",
"state": "QUOTED",
"broadcastAck": "acknowledged"
}Runtime Flow
Submit a Withdrawal
Submits a co-signed transaction for broadcast. Path param is the withdrawalDetailId from prepare, not the config id. No authentication required (rate-limited).
POST
/
v1
/
withdraw
/
{withdrawalDetailId}
/
submit
Submit a Withdrawal
curl --request POST \
--url https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>",
"signedTx": "<string>"
}
'import requests
url = "https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit"
payload = {
"token": "<string>",
"signedTx": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({token: '<string>', signedTx: '<string>'})
};
fetch('https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit', 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.hel.io/v1/withdraw/{withdrawalDetailId}/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'token' => '<string>',
'signedTx' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit"
payload := strings.NewReader("{\n \"token\": \"<string>\",\n \"signedTx\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"<string>\",\n \"signedTx\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hel.io/v1/withdraw/{withdrawalDetailId}/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"token\": \"<string>\",\n \"signedTx\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"withdrawalDetailId": "<string>",
"txHash": "<string>",
"state": "QUOTED",
"broadcastAck": "acknowledged"
}Note: When using the production environment at moonpay.hel.io, set your API endpoint to
api.hel.io/v1. For the development environment, use api.dev.hel.io/v1.The path parameter is
withdrawalDetailId (returned by prepare), not withdrawalConfigId.Pass
signedTx in the format matching prepared.kind from prepare: base64 co-signed transaction for raw on Solana, JSON signature payload for userop on EVM, or EIP-712 signature for hypercore. If the quote was re-quoted after you signed, submit returns 409 — fetch the new quote, re-sign, and resubmit.Path Parameters
The per-request withdrawal detail ID returned by prepare.
Body
application/json
Response
Withdrawal submitted successfully.
On-chain transaction signature. Null only if broadcast was rejected.
Available options:
QUOTED, SUBMITTING, SUBMITTED, BRIDGING, COMPLETED, FAILED, FAILED_EXPIRED, EXPIRED, REFUNDED_BY_PROVIDER acknowledged = confirmed; unacknowledged = sent, keep polling; rejected = terminal failure.
Available options:
acknowledged, unacknowledged, rejected 