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"
{
  "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"
}
GET
/api/transactions/estimate
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Api-Key)
Api-Keystring
Required

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.

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
source_currencystring
Required

The currency you start from, for example usd or usdc.

query
destination_currencystring
Required

The currency that arrives, for example usdc or inr.

query
amountstring

What you send, as a decimal string in the source currency. Give this or destination_amount, not both.

query
destination_amountstring

What must arrive, as a decimal string in the destination currency. Give this or amount, not both.

query
source_chainstring

The chain a stablecoin source is on.

query
destination_chainstring

The chain a stablecoin destination is on.

query
purposestring

Why the payment is made, where the corridor asks for a purpose.

query
partner_fee_bpsstring

Your own fee to include in the estimate, in bps, from 0 to 1000.

query
partner_fee_flatstring

Your own flat fee to include in the estimate, in the source currency, from 0 to 1000.

header
Api-Versionstring

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

header
Api-Keystring
Required

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

source_currencystring
Required

The currency you start from, for example usd or usdc.

Example:
usd
destination_currencystring
Required

The currency that arrives, for example usdc or inr.

Example:
usdc
amountstring

What you send, as a decimal string in the source currency. Give this or destination_amount, not both.

Example:
100
destination_amountstring

What must arrive, as a decimal string in the destination currency. Give this or amount, not both.

Example:
100
source_chainstring

The chain a stablecoin source is on.

Example:
solana
destination_chainstring

The chain a stablecoin destination is on.

Example:
solana
purposestring

Why the payment is made, where the corridor asks for a purpose.

Example:
family_support
partner_fee_bpsstring

Your own fee to include in the estimate, in bps, from 0 to 1000.

Example:
50
partner_fee_flatstring

Your own flat fee to include in the estimate, in the source currency, from 0 to 1000.

Example:
0

Headers

Api-Versionstring

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.

Example:
2026-08-01

Responses

amount_after_feesstring

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.

bindingboolean

Always false: an estimate is indicative and locks nothing.

conversionobject

The conversion the estimate prices.

destinationobject

The receiving side of the estimate.

estimated_atstring

When the estimate was priced, as an ISO 8601 timestamp.

feesobject

The fees the transaction would be charged: the total, its currency and each line.

liquidity_availableboolean

Whether our treasury inventory could fill the amount right now. Present on an estimate for an on-chain destination.

locked_sidestring

Which side you fixed: source when you sent amount, destination when you sent destination_amount. The estimate solves the other side.

objectstring

The kind of object this is, for example customer or transaction. Every object the API returns carries it.

sourceobject

The funding side of the estimate.

total_cost_bpsstring

The spread priced into the rate, in bps, as a decimal string. Present on an estimate for an on-chain destination.