Estimate a transaction
Price a transaction without making one: fees, rate and what arrives.
Indicative, never binding: a transaction is priced when it executes. Name
destination_chain for an on-chain destination (then destination_amount
may replace amount); leave it out for a bank account in
destination_currency.
curl -X GET "https://sandbox.rasto.co/api/transactions/estimate?source_currency=usd&destination_currency=usdc&amount=100&destination_amount=100&source_chain=solana&destination_chain=solana&purpose=family_support&partner_fee_bps=50&partner_fee_flat=0" \
-H "Content-Type: application/json" \
-H "Api-Version: 2026-08-01" \
-H "Api-Key: YOUR_API_KEY"
import requests
import json
url = "https://sandbox.rasto.co/api/transactions/estimate?source_currency=usd&destination_currency=usdc&amount=100&destination_amount=100&source_chain=solana&destination_chain=solana&purpose=family_support&partner_fee_bps=50&partner_fee_flat=0"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Api-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/transactions/estimate?source_currency=usd&destination_currency=usdc&amount=100&destination_amount=100&source_chain=solana&destination_chain=solana&purpose=family_support&partner_fee_bps=50&partner_fee_flat=0", {
method: "GET",
headers: {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Api-Key": "YOUR_API_KEY"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://sandbox.rasto.co/api/transactions/estimate?source_currency=usd&destination_currency=usdc&amount=100&destination_amount=100&source_chain=solana&destination_chain=solana&purpose=family_support&partner_fee_bps=50&partner_fee_flat=0", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Api-Version", "2026-08-01")
req.Header.Set("Api-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://sandbox.rasto.co/api/transactions/estimate?source_currency=usd&destination_currency=usdc&amount=100&destination_amount=100&source_chain=solana&destination_chain=solana&purpose=family_support&partner_fee_bps=50&partner_fee_flat=0')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['Api-Version'] = '2026-08-01'
request['Api-Key'] = 'YOUR_API_KEY'
response = http.request(request)
puts response.body
{
"amount_after_fees": "100",
"binding": false,
"conversion": {
"exchange_rate": "1",
"kind": "onramp"
},
"destination": {
"amount": "100",
"chain": "solana",
"currency": "usdc",
"network": "testnet"
},
"estimated_at": "2026-11-29T18:00:14.647456+00:00",
"fees": {
"currency": "usd",
"lines": [
{
"amount": "0.5",
"collection": "monthly",
"currency": "usd",
"kind": "onramp"
}
],
"total": "0.5"
},
"liquidity_available": true,
"locked_side": "source",
"object": "transaction_estimate",
"source": {
"amount": "100",
"chain": null,
"currency": "usd",
"network": null
},
"total_cost_bps": "0"
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567lrvAL7nfVBj72yv9Z"
}
}
{
"error": {
"code": "rate_limited",
"kind": "rate_limit_error",
"message": "Too many requests. Back off and retry after the indicated delay.",
"param": null,
"request_id": "req_03567lrvAL7nfVBj72yv9Z"
}
}
{
"error": {
"code": "upstream_error",
"kind": "api_error",
"message": "The request could not be completed right now. Nothing was charged or changed; retry shortly, and contact support if it persists.",
"param": null,
"request_id": "req_03567lrvAL7nfVBj72yv9Z"
}
}
/api/transactions/estimate
Target server for requests. Edit to use your own host.
Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.The currency you start from, for example usd or usdc.
The currency that arrives, for example usdc or inr.
What you send, as a decimal string in the source currency. Give this or destination_amount, not both.
What must arrive, as a decimal string in the destination currency. Give this or amount, not both.
The chain a stablecoin source is on.
The chain a stablecoin destination is on.
Why the payment is made, where the corridor asks for a purpose.
Your own fee to include in the estimate, in bps, from 0 to 1000.
Your own flat fee to include in the estimate, in the source currency, from 0 to 1000.
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Query Parameters
What you send, as a decimal string in the source currency. Give this or destination_amount, not both.
100What must arrive, as a decimal string in the destination currency. Give this or amount, not both.
100Your own flat fee to include in the estimate, in the source currency, from 0 to 1000.
0Headers
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
2026-08-01Responses
The source amount that actually converts, as a decimal string: the gross less the fees netted in real time. Fees collected monthly do not reduce it.
Always false: an estimate is indicative and locks nothing.
The conversion the estimate prices.
The receiving side of the estimate.
When the estimate was priced, as an ISO 8601 timestamp.
The fees the transaction would be charged: the total, its currency and each line.
Whether our treasury inventory could fill the amount right now. Present on an estimate for an on-chain destination.
Which side you fixed: source when you sent amount, destination when you sent destination_amount. The estimate solves the other side.
The kind of object this is, for example customer or transaction. Every object the API returns carries it.
The funding side of the estimate.
The spread priced into the rate, in bps, as a decimal string. Present on an estimate for an on-chain destination.