Get an indicative quote for bridging a given pay-in amount on a configured origin→destination route.
Stateless: no deposit address is minted and no transfer is created. Use this while the end user is
choosing an amount, then call POST /api/v1/bridging/address once they confirm.
amount is denominated in the origin asset (what will be sent to the deposit address).
The response returns destination.estimatedAmount (net of provider fees), destination.minimumAmount
(the provider’s indicative minimum for this quote at the configured slippage, when reported), and the fee
lines that produced the estimate. The quote is not bound to a later /address call, which obtains a
fresh quote that may differ.
constraints.minimumAmount is the smallest pay-in Mesh accepts on this route (in the origin asset);
an amount below it is rejected with 400 amountBelowMinimum before the provider is consulted,
and the same value is returned by POST /api/v1/bridging/address. constraints.maximumAmount is
the platform USD cap converted at the current price; an amount above it, or above the provider’s available
liquidity, is rejected with 400 amountExceedsMaximum.
Important: the estimate is indicative. The deposit address accepts any amount and the bridge is priced on what actually arrives, so fees and rates can move between quoting and settlement.
curl --request POST \
--url https://integration-api.meshconnect.com/api/v1/bridging/quote \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '
{
"origin": {
"network": "<string>",
"asset": "<string>"
},
"destination": {
"network": "<string>",
"asset": "<string>",
"address": "<string>"
},
"amount": 500000000
}
'import requests
url = "https://integration-api.meshconnect.com/api/v1/bridging/quote"
payload = {
"origin": {
"network": "<string>",
"asset": "<string>"
},
"destination": {
"network": "<string>",
"asset": "<string>",
"address": "<string>"
},
"amount": 500000000
}
headers = {
"X-Client-Secret": "<api-key>",
"X-Client-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-Secret': '<api-key>',
'X-Client-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
origin: {network: '<string>', asset: '<string>'},
destination: {network: '<string>', asset: '<string>', address: '<string>'},
amount: 500000000
})
};
fetch('https://integration-api.meshconnect.com/api/v1/bridging/quote', 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://integration-api.meshconnect.com/api/v1/bridging/quote",
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([
'origin' => [
'network' => '<string>',
'asset' => '<string>'
],
'destination' => [
'network' => '<string>',
'asset' => '<string>',
'address' => '<string>'
],
'amount' => 500000000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-Id: <api-key>",
"X-Client-Secret: <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://integration-api.meshconnect.com/api/v1/bridging/quote"
payload := strings.NewReader("{\n \"origin\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\"\n },\n \"destination\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\",\n \"address\": \"<string>\"\n },\n \"amount\": 500000000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Client-Id", "<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://integration-api.meshconnect.com/api/v1/bridging/quote")
.header("X-Client-Secret", "<api-key>")
.header("X-Client-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"origin\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\"\n },\n \"destination\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\",\n \"address\": \"<string>\"\n },\n \"amount\": 500000000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration-api.meshconnect.com/api/v1/bridging/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-Secret"] = '<api-key>'
request["X-Client-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"origin\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\"\n },\n \"destination\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\",\n \"address\": \"<string>\"\n },\n \"amount\": 500000000\n}"
response = http.request(request)
puts response.read_body{
"status": "ok",
"message": "<string>",
"displayMessage": "<string>",
"errorHash": "<string>",
"teamCode": "<string>",
"errorType": "<string>",
"errorData": null,
"content": {
"origin": {
"network": "<string>",
"asset": "<string>",
"amount": 123
},
"destination": {
"network": "<string>",
"asset": "<string>",
"address": "<string>",
"estimatedAmount": 123,
"minimumAmount": 123
},
"fees": {
"items": [
{
"label": "<string>",
"asset": "<string>",
"kind": "originGas",
"amount": 123,
"amountUsd": 123,
"includedInEstimate": true
}
],
"totalUsd": 123
},
"constraints": {
"minimumAmount": "<string>",
"maximumAmount": "<string>"
},
"warnings": [
"<string>"
],
"rate": 123,
"quotedAt": 123
}
}{
"status": "ok",
"message": "",
"errorHash": "8845295b",
"teamCode": "7K",
"errorType": ""
}{
"status": "ok",
"message": "",
"errorHash": "8845295b",
"teamCode": "7K",
"errorType": ""
}{
"status": "ok",
"message": "",
"errorHash": "8845295b",
"teamCode": "7K",
"errorType": ""
}Authorizations
Body
Request body for POST /api/v1/bridging/quote.
Prices a bridge for a caller-supplied pay-in amount without minting a deposit address or creating a
transfer. Call it while the end user is still choosing an amount; call POST /api/v1/bridging/address
only once they confirm.
The result is indicative. The deposit address returned by /address accepts any amount and the
bridge provider prices what actually arrives at fill time.
Response
Quote produced.
Was this page helpful?
curl --request POST \
--url https://integration-api.meshconnect.com/api/v1/bridging/quote \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '
{
"origin": {
"network": "<string>",
"asset": "<string>"
},
"destination": {
"network": "<string>",
"asset": "<string>",
"address": "<string>"
},
"amount": 500000000
}
'import requests
url = "https://integration-api.meshconnect.com/api/v1/bridging/quote"
payload = {
"origin": {
"network": "<string>",
"asset": "<string>"
},
"destination": {
"network": "<string>",
"asset": "<string>",
"address": "<string>"
},
"amount": 500000000
}
headers = {
"X-Client-Secret": "<api-key>",
"X-Client-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-Secret': '<api-key>',
'X-Client-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
origin: {network: '<string>', asset: '<string>'},
destination: {network: '<string>', asset: '<string>', address: '<string>'},
amount: 500000000
})
};
fetch('https://integration-api.meshconnect.com/api/v1/bridging/quote', 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://integration-api.meshconnect.com/api/v1/bridging/quote",
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([
'origin' => [
'network' => '<string>',
'asset' => '<string>'
],
'destination' => [
'network' => '<string>',
'asset' => '<string>',
'address' => '<string>'
],
'amount' => 500000000
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-Id: <api-key>",
"X-Client-Secret: <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://integration-api.meshconnect.com/api/v1/bridging/quote"
payload := strings.NewReader("{\n \"origin\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\"\n },\n \"destination\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\",\n \"address\": \"<string>\"\n },\n \"amount\": 500000000\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Client-Id", "<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://integration-api.meshconnect.com/api/v1/bridging/quote")
.header("X-Client-Secret", "<api-key>")
.header("X-Client-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"origin\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\"\n },\n \"destination\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\",\n \"address\": \"<string>\"\n },\n \"amount\": 500000000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration-api.meshconnect.com/api/v1/bridging/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-Secret"] = '<api-key>'
request["X-Client-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"origin\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\"\n },\n \"destination\": {\n \"network\": \"<string>\",\n \"asset\": \"<string>\",\n \"address\": \"<string>\"\n },\n \"amount\": 500000000\n}"
response = http.request(request)
puts response.read_body{
"status": "ok",
"message": "<string>",
"displayMessage": "<string>",
"errorHash": "<string>",
"teamCode": "<string>",
"errorType": "<string>",
"errorData": null,
"content": {
"origin": {
"network": "<string>",
"asset": "<string>",
"amount": 123
},
"destination": {
"network": "<string>",
"asset": "<string>",
"address": "<string>",
"estimatedAmount": 123,
"minimumAmount": 123
},
"fees": {
"items": [
{
"label": "<string>",
"asset": "<string>",
"kind": "originGas",
"amount": 123,
"amountUsd": 123,
"includedInEstimate": true
}
],
"totalUsd": 123
},
"constraints": {
"minimumAmount": "<string>",
"maximumAmount": "<string>"
},
"warnings": [
"<string>"
],
"rate": 123,
"quotedAt": 123
}
}{
"status": "ok",
"message": "",
"errorHash": "8845295b",
"teamCode": "7K",
"errorType": ""
}{
"status": "ok",
"message": "",
"errorHash": "8845295b",
"teamCode": "7K",
"errorType": ""
}{
"status": "ok",
"message": "",
"errorHash": "8845295b",
"teamCode": "7K",
"errorType": ""
}