Submit a Near Intents deposit transaction
curl --request POST \
--url https://api.hypermid.io/v1/execute/deposit/submit \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"txHash": "<string>",
"depositAddress": "<string>"
}
'import requests
url = "https://api.hypermid.io/v1/execute/deposit/submit"
payload = {
"txHash": "<string>",
"depositAddress": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({txHash: '<string>', depositAddress: '<string>'})
};
fetch('https://api.hypermid.io/v1/execute/deposit/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.hypermid.io/v1/execute/deposit/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([
'txHash' => '<string>',
'depositAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.hypermid.io/v1/execute/deposit/submit"
payload := strings.NewReader("{\n \"txHash\": \"<string>\",\n \"depositAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.hypermid.io/v1/execute/deposit/submit")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"txHash\": \"<string>\",\n \"depositAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypermid.io/v1/execute/deposit/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"txHash\": \"<string>\",\n \"depositAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"depositId": "dep_abc123def456",
"status": "SUBMITTED",
"message": "Deposit notification received. Processing will begin shortly."
},
"error": null,
"meta": {
"requestId": "n4c5d6e7-f8a9-0123-7890-234567890123",
"timestamp": 1711234578,
"rateLimit": {
"limit": 2000,
"remaining": 1986,
"reset": 1711234627
}
}
}
Swap
Submit Deposit
Notify Hypermid that a manual deposit has been made
POST
/
v1
/
execute
/
deposit
/
submit
Submit a Near Intents deposit transaction
curl --request POST \
--url https://api.hypermid.io/v1/execute/deposit/submit \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"txHash": "<string>",
"depositAddress": "<string>"
}
'import requests
url = "https://api.hypermid.io/v1/execute/deposit/submit"
payload = {
"txHash": "<string>",
"depositAddress": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({txHash: '<string>', depositAddress: '<string>'})
};
fetch('https://api.hypermid.io/v1/execute/deposit/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.hypermid.io/v1/execute/deposit/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([
'txHash' => '<string>',
'depositAddress' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.hypermid.io/v1/execute/deposit/submit"
payload := strings.NewReader("{\n \"txHash\": \"<string>\",\n \"depositAddress\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.hypermid.io/v1/execute/deposit/submit")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"txHash\": \"<string>\",\n \"depositAddress\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypermid.io/v1/execute/deposit/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"txHash\": \"<string>\",\n \"depositAddress\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"depositId": "dep_abc123def456",
"status": "SUBMITTED",
"message": "Deposit notification received. Processing will begin shortly."
},
"error": null,
"meta": {
"requestId": "n4c5d6e7-f8a9-0123-7890-234567890123",
"timestamp": 1711234578,
"rateLimit": {
"limit": 2000,
"remaining": 1986,
"reset": 1711234627
}
}
}
Submits a notification that a manual deposit has been made. This helps speed up deposit detection for chains where Hypermid cannot automatically monitor for incoming transactions.
The deposit ID returned from the
/v1/execute endpoint.The transaction hash of the deposit on the source chain. Optional but recommended for faster processing.
{
"data": {
"depositId": "dep_abc123def456",
"status": "SUBMITTED",
"message": "Deposit notification received. Processing will begin shortly."
},
"error": null,
"meta": {
"requestId": "n4c5d6e7-f8a9-0123-7890-234567890123",
"timestamp": 1711234578,
"rateLimit": {
"limit": 2000,
"remaining": 1986,
"reset": 1711234627
}
}
}
const result = await client.submitDeposit({
depositId: "dep_abc123def456",
txHash: "0xUserDepositTxHash",
});
console.log("Submission status:", result.data.status);
curl -X POST "https://api.hypermid.io/v1/execute/deposit/submit" \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{
"depositId": "dep_abc123def456",
"txHash": "0xUserDepositTxHash"
}'
body := `{
"depositId": "dep_abc123def456",
"txHash": "0xUserDepositTxHash"
}`
req, _ := http.NewRequest("POST",
"https://api.hypermid.io/v1/execute/deposit/submit",
strings.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-API-Key", "your-api-key")
resp, _ := http.DefaultClient.Do(req)
Submitting the deposit notification is optional — Hypermid monitors deposit addresses automatically. However, calling this endpoint can reduce processing time, especially for chains with longer confirmation times.
Authorizations
Partner API key. Optional for public endpoints, required for /v1/partner/*.
Body
application/json
⌘I