Fund the sandbox treasury

Fund the sandbox treasury float so quotes have inventory.

curl -X POST "https://sandbox.rasto.co/api/sandbox/treasury/funding" \
  -H "Content-Type: application/json" \
  -H "Api-Version: 2026-08-01" \
  -H "Idempotency-Key: 6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63" \
  -H "Api-Key: YOUR_API_KEY" \
  -d '{
  "amount": "10000",
  "chain": "solana",
  "currency": "usdc"
}'
{
  "amount": "10000",
  "chain": "solana",
  "currency": "usdc",
  "network": "testnet",
  "object": "treasury_funding"
}
POST
/api/sandbox/treasury/funding
POST
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.
Content-Typestring
Required

The media type of the request body

Options: application/json
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.

header
Idempotency-Keystring
Required

A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.

currencystring

The stablecoin to fund, in lowercase, such as usdc or usdt. Defaults to usdc. A currency we do not deliver returns 400 unsupported_currency.

Max length: 20
chainstring
Required

Required. The chain to fund: solana, ethereum or base. Any other returns 400 unsupported_chain.

Max length: 20
amountstring
Required

Required. How much to fund, as a decimal string greater than 0. Fundings are capped at 10,000 per day in sum; past it the call returns 422 invalid_parameter.

Pattern: ^\d+(\.\d+)?$
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.

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
Idempotency-Keystring
Required

A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.

Example:
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63

Body

application/json
currencystring

The stablecoin to fund, in lowercase, such as usdc or usdt. Defaults to usdc. A currency we do not deliver returns 400 unsupported_currency.

chainstring
Required

Required. The chain to fund: solana, ethereum or base. Any other returns 400 unsupported_chain.

amountstring
Required

Required. How much to fund, as a decimal string greater than 0. Fundings are capped at 10,000 per day in sum; past it the call returns 422 invalid_parameter.

Example:
10.5

Responses