Get transfer quote
curl --request POST \
--url https://api.zet.money/v1/transfer/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"token": "USDC",
"amount": "100",
"toToken": "USDC",
"destinationAddress": "0xdef..."
}
'import requests
url = "https://api.zet.money/v1/transfer/quote"
payload = {
"token": "USDC",
"amount": "100",
"toToken": "USDC",
"destinationAddress": "0xdef..."
}
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({token: 'USDC', amount: '100', toToken: 'USDC', destinationAddress: '0xdef...'})
};
fetch('https://api.zet.money/v1/transfer/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://api.zet.money/v1/transfer/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([
'token' => 'USDC',
'amount' => '100',
'toToken' => 'USDC',
'destinationAddress' => '0xdef...'
]),
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.zet.money/v1/transfer/quote"
payload := strings.NewReader("{\n \"token\": \"USDC\",\n \"amount\": \"100\",\n \"toToken\": \"USDC\",\n \"destinationAddress\": \"0xdef...\"\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.zet.money/v1/transfer/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"USDC\",\n \"amount\": \"100\",\n \"toToken\": \"USDC\",\n \"destinationAddress\": \"0xdef...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zet.money/v1/transfer/quote")
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 \"token\": \"USDC\",\n \"amount\": \"100\",\n \"toToken\": \"USDC\",\n \"destinationAddress\": \"0xdef...\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"quoteId": "qt_01H8X6...",
"fromChain": "base",
"toChain": "base",
"fromToken": "USDC",
"toToken": "USDC",
"fromAmount": "100",
"toAmount": "99.85",
"fees": {
"platformFee": "0.032",
"platformFeeFiat": "50",
"bridgeFee": "0.15",
"totalFee": "0.182"
},
"route": {
"steps": 2,
"estimatedTime": "2-5 minutes",
"bridge": "Bridge Protocol"
},
"expiresAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "The 'amount' field must be a positive number."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key."
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Try again in 60 seconds."
}
}Cross-Chain Transfer
Get Transfer Quote
Get a quote for transferring tokens across chains. Supports bridging with optional token conversion on the destination chain.
Supported source chains: Base, BSC. Supported destination chains: Base, BSC, Ethereum, Polygon, Arbitrum, Avalanche, Solana.
POST
/
transfer
/
quote
Get transfer quote
curl --request POST \
--url https://api.zet.money/v1/transfer/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"token": "USDC",
"amount": "100",
"toToken": "USDC",
"destinationAddress": "0xdef..."
}
'import requests
url = "https://api.zet.money/v1/transfer/quote"
payload = {
"token": "USDC",
"amount": "100",
"toToken": "USDC",
"destinationAddress": "0xdef..."
}
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({token: 'USDC', amount: '100', toToken: 'USDC', destinationAddress: '0xdef...'})
};
fetch('https://api.zet.money/v1/transfer/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://api.zet.money/v1/transfer/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([
'token' => 'USDC',
'amount' => '100',
'toToken' => 'USDC',
'destinationAddress' => '0xdef...'
]),
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.zet.money/v1/transfer/quote"
payload := strings.NewReader("{\n \"token\": \"USDC\",\n \"amount\": \"100\",\n \"toToken\": \"USDC\",\n \"destinationAddress\": \"0xdef...\"\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.zet.money/v1/transfer/quote")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"token\": \"USDC\",\n \"amount\": \"100\",\n \"toToken\": \"USDC\",\n \"destinationAddress\": \"0xdef...\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zet.money/v1/transfer/quote")
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 \"token\": \"USDC\",\n \"amount\": \"100\",\n \"toToken\": \"USDC\",\n \"destinationAddress\": \"0xdef...\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"quoteId": "qt_01H8X6...",
"fromChain": "base",
"toChain": "base",
"fromToken": "USDC",
"toToken": "USDC",
"fromAmount": "100",
"toAmount": "99.85",
"fees": {
"platformFee": "0.032",
"platformFeeFiat": "50",
"bridgeFee": "0.15",
"totalFee": "0.182"
},
"route": {
"steps": 2,
"estimatedTime": "2-5 minutes",
"bridge": "Bridge Protocol"
},
"expiresAt": "2023-11-07T05:31:56Z"
}
}{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "The 'amount' field must be a positive number."
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid API key."
}
}{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Try again in 60 seconds."
}
}Authorizations
Your Zet API key. Contact zetdotmoney@gmail.com to obtain your keys.
Body
application/json
Primary chains where Zet-managed wallets operate
Available options:
base, bsc Blockchain network identifier
Available options:
base, bsc, ethereum, polygon, arbitrum, avalanche, solana Token symbol to transfer.
Example:
"USDC"
Example:
"100"
Destination token symbol if different from source. Enables bridge + swap.
Example:
"USDC"
Recipient address on the destination chain. Required for cross-chain transfers.
Example:
"0xdef..."
