Create a transaction
Move a wallet's stablecoin to an address, another wallet, or a bank account.
Returns the transaction awaiting_authorization, carrying the
authorizations your signing key signs: verify the payload, then post
your signature to its authorization within its short window and it
moves. A virtual account moves its deposits without this call, through
its standing destination.
curl -X POST "https://sandbox.rasto.co/api/transactions" \
-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": "5",
"destination": {
"address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
"kind": "address"
},
"partner_reference_id": "payout-1042",
"source": {
"currency": "usdc",
"kind": "wallet",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
}'
import requests
import json
url = "https://sandbox.rasto.co/api/transactions"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
}
data = {
"amount": "5",
"destination": {
"address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
"kind": "address"
},
"partner_reference_id": "payout-1042",
"source": {
"currency": "usdc",
"kind": "wallet",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/transactions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"amount": "5",
"destination": {
"address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
"kind": "address"
},
"partner_reference_id": "payout-1042",
"source": {
"currency": "usdc",
"kind": "wallet",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"amount": "5",
"destination": {
"address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
"kind": "address"
},
"partner_reference_id": "payout-1042",
"source": {
"currency": "usdc",
"kind": "wallet",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
}`)
req, err := http.NewRequest("POST", "https://sandbox.rasto.co/api/transactions", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Api-Version", "2026-08-01")
req.Header.Set("Idempotency-Key", "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63")
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')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Api-Version'] = '2026-08-01'
request['Idempotency-Key'] = '6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63'
request['Api-Key'] = 'YOUR_API_KEY'
request.body = '{
"amount": "5",
"destination": {
"address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
"kind": "address"
},
"partner_reference_id": "payout-1042",
"source": {
"currency": "usdc",
"kind": "wallet",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
}'
response = http.request(request)
puts response.body
{
"authorizations": [
{
"action_id": null,
"chain": "solana",
"created_at": "2026-11-29T18:01:00.553601+00:00",
"expires_at": "2026-11-29T18:01:36.020479+00:00",
"id": "wau_03567gwkZVJCZEBa2EOojp",
"kind": "transaction",
"network": "testnet",
"object": "wallet_authorization",
"partner_reference_id": "payout-1042",
"payload": {
"format": "solana_message",
"message": "eyJhY2NvdW50IjogIjVZWU5BY1cxdHk3eWJwVFVValVTZ1dCaGF6b2JnUlU1cnNhMVBoejNzQTE1IiwgImFtb3VudCI6ICI1...",
"message_version": "legacy"
},
"signer": {
"key": "7UGibMePNWG9LiZu9c2uAPibc8BrKmivotahonJ61AEr",
"role": "signing"
},
"status": "pending",
"summary": {},
"supersedes": null,
"transaction_id": "txn_03567gp0y9r0USMPkVcuVs",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
}
],
"bank_reference": null,
"completed_at": null,
"conversion": null,
"created_at": "2026-11-29T18:01:00.553601+00:00",
"customer_id": "cus_03567dbmmINi56C3sJCM7O",
"destination": {
"address": "5HSqKCN2eoHWe7p36GeUftEL9XnT6MbsvrxHgwgpYWQf",
"amount": null,
"chain": "solana",
"currency": "usdc",
"kind": "address",
"network": "testnet"
},
"documents": [],
"failure_code": null,
"fees": {
"currency": "usdc",
"lines": [],
"total": "0"
},
"id": "txn_03567gp0y9r0USMPkVcuVs",
"object": "transaction",
"partner_reference_id": "payout-1042",
"purpose": null,
"required_documents": [],
"scheme": null,
"source": {
"amount": "5",
"chain": "solana",
"currency": "usdc",
"kind": "wallet",
"network": "testnet",
"wallet_id": "wal_03567fjOw2rywMI8tAAFIZ"
},
"status": "awaiting_authorization",
"transaction_hash": null,
"virtual_account_id": null
}
{
"error": {
"code": "wallet_credential_not_active",
"kind": "invalid_request_error",
"message": "The wallet's credential is frozen; nothing moves until it is active again.",
"param": null,
"request_id": "req_03567jhC66RGiMySDPycca"
}
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567loLOviULzfmpGJtXC"
}
}
{
"error": {
"code": "invalid_parameter",
"kind": "invalid_request_error",
"message": "Field required",
"param": "source",
"request_id": "req_03567loLmziMVyvxVCxDmX"
}
}
{
"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_03567jhC66RGiMySDPycca"
}
}
{
"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_03567jhC66RGiMySDPycca"
}
}
/api/transactions
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 media type of the request body
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.
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.
Required. What funds the transaction: the wallet and the currency sent.
Required. Where the transaction delivers.
Required. How much of source.currency to send, before fees, as a decimal string greater than 0. An amount finer than the currency's decimals (6 for USDC) returns 400 invalid_amount.
Why the money is sent: family_support, own_account, gift, education, medical, professional_services, software_services, goods or salary. Required when the destination is an external account, and refused on a send to an address or a wallet. A purpose the corridor does not take for the account holder returns 422 purpose_not_allowed.
The documents behind a payment to a bank account, 1 to 10 of them. A corridor names the kinds each purpose requires in required_documents (GET /api/corridors): a payment for goods or services must carry its invoice, otherwise 422 documents_required. Further documents can be attached later with POST /api/transactions/{transaction_id}/documents. Refused on a send to an address or a wallet.
Your own fee on this transaction, in bps of the amount, as a decimal string from 0 to 1000 with up to 3 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.
The flat part of your fee on this transaction, added to the bps part: a decimal string in the source currency from 0 to 1000 with up to 2 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.
Required for a send from a wallet (422 partner_reference_id_required otherwise). Your own id for this transaction, 1 to 255 characters and unique per environment. Every authorization of the transaction carries it, so your signer can find the payment in your records.
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.
Headers
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-01A 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.
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63Body
Required. What funds the transaction: the wallet and the currency sent.
Required. Where the transaction delivers.
Required. How much of source.currency to send, before fees, as a decimal string greater than 0. An amount finer than the currency's decimals (6 for USDC) returns 400 invalid_amount.
10.5Why the money is sent: family_support, own_account, gift, education, medical, professional_services, software_services, goods or salary. Required when the destination is an external account, and refused on a send to an address or a wallet. A purpose the corridor does not take for the account holder returns 422 purpose_not_allowed.
The documents behind a payment to a bank account, 1 to 10 of them. A corridor names the kinds each purpose requires in required_documents (GET /api/corridors): a payment for goods or services must carry its invoice, otherwise 422 documents_required. Further documents can be attached later with POST /api/transactions/{transaction_id}/documents. Refused on a send to an address or a wallet.
Your own fee on this transaction, in bps of the amount, as a decimal string from 0 to 1000 with up to 3 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.
10.5The flat part of your fee on this transaction, added to the bps part: a decimal string in the source currency from 0 to 1000 with up to 2 decimal places. Defaults to 0. It applies to an external_account destination only; on a send to an address or a wallet it returns 422 invalid_parameter.
10.5Required for a send from a wallet (422 partner_reference_id_required otherwise). Your own id for this transaction, 1 to 255 characters and unique per environment. Every authorization of the transaction carries it, so your signer can find the payment in your records.