curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview \
--header 'Content-Type: application/json' \
--data '
{
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChainId": "eip155:8453",
"sourceToken": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000"
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview"
payload = {
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChainId": "eip155:8453",
"sourceToken": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000"
}
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({
account: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sourceChainId: 'eip155:8453',
sourceToken: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
amount: '1000000000000000000'
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview', 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://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview",
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([
'account' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sourceChainId' => 'eip155:8453',
'sourceToken' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'amount' => '1000000000000000000'
]),
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://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview"
payload := strings.NewReader("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChainId\": \"eip155:8453\",\n \"sourceToken\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\"\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://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChainId\": \"eip155:8453\",\n \"sourceToken\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview")
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 \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChainId\": \"eip155:8453\",\n \"sourceToken\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"settlementLayer": "<string>",
"expiresAt": 123,
"estimatedFillTimeSeconds": 1,
"fees": {
"total": {
"usd": 123
},
"breakdown": {
"gas": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"bridge": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"swap": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"app": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"protocol": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"sponsorSurcharge": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
}
},
"totalUsd": 123
},
"output": {
"token": "<string>",
"amount": "<string>",
"symbol": "<string>",
"decimals": 123
}
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Preview a bridge quote before depositing
Returns the fees and expected output for bridging amount of sourceToken from sourceChainId to the account’s registered target, before any funds are deposited. The orchestrator quotes against the supplied amount as if the deposit wallet already held it; the result is indicative and may differ from the quote applied once a real deposit lands. EVM source chains only. Scoped to the caller’s tenant.
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview \
--header 'Content-Type: application/json' \
--data '
{
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChainId": "eip155:8453",
"sourceToken": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000"
}
'import requests
url = "https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview"
payload = {
"account": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sourceChainId": "eip155:8453",
"sourceToken": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"amount": "1000000000000000000"
}
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({
account: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
sourceChainId: 'eip155:8453',
sourceToken: '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
amount: '1000000000000000000'
})
};
fetch('https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview', 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://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview",
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([
'account' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'sourceChainId' => 'eip155:8453',
'sourceToken' => '0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91',
'amount' => '1000000000000000000'
]),
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://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview"
payload := strings.NewReader("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChainId\": \"eip155:8453\",\n \"sourceToken\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\"\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://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview")
.header("Content-Type", "application/json")
.body("{\n \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChainId\": \"eip155:8453\",\n \"sourceToken\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v1.orchestrator.rhinestone.dev/deposit-processor/quotes/preview")
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 \"account\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"sourceChainId\": \"eip155:8453\",\n \"sourceToken\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91\",\n \"amount\": \"1000000000000000000\"\n}"
response = http.request(request)
puts response.read_body{
"settlementLayer": "<string>",
"expiresAt": 123,
"estimatedFillTimeSeconds": 1,
"fees": {
"total": {
"usd": 123
},
"breakdown": {
"gas": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"bridge": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"swap": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"app": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"protocol": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
},
"sponsorSurcharge": {
"usd": 123,
"sponsored": true,
"label": "<string>",
"internal": true
}
},
"totalUsd": 123
},
"output": {
"token": "<string>",
"amount": "<string>",
"symbol": "<string>",
"decimals": 123
}
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}{
"error": "<string>",
"details": [
{
"message": "<string>",
"path": [
"<string>"
],
"code": "<string>"
}
]
}Headers
API key for authentication (omit when sending Authorization)
"your-api-key"
Bearer platform token (e.g. forwarded by user-service). Takes precedence over x-api-key when both are present.
"Bearer eyJhbGciOi..."
Body
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
CAIP-2 chain identifier (e.g. "eip155:8453")
^[a-z0-9]+:[a-zA-Z0-9]+$"eip155:8453"
Ethereum address (0x followed by 40 hex characters)
^0x[a-fA-F0-9]{40}$"0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
Numeric string representing a bigint value
^\d+$"1000000000000000000"
Was this page helpful?