SDKs
CashXChain is API-first. Official SDKs will be released for common backend environments as the platform matures.
Planned SDKs
- TypeScript / Node.js.
- Python.
- Go.
- Java / Kotlin.
- PHP for platform and ERP integrations.
Current recommendation
Until an official SDK is available for your language, use HTTPS directly with a mature HTTP client. CashXChain uses simple JSON request and response bodies.
TypeScript example
const response = await fetch('https://api.sandbox.cashxchain.com/v1/fx/quotes', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.CXC_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
source_currency: 'EUR',
target_currency: 'USD',
source_amount: '1000.00',
}),
});
if (!response.ok) {
throw new Error(await response.text());
}
const quote = await response.json();
Python example
import os
import requests
resp = requests.post(
'https://api.sandbox.cashxchain.com/v1/fx/quotes',
headers={
'Authorization': f"Bearer {os.environ['CXC_API_KEY']}",
'Content-Type': 'application/json',
},
json={
'source_currency': 'EUR',
'target_currency': 'USD',
'source_amount': '1000.00',
},
timeout=30,
)
resp.raise_for_status()
quote = resp.json()
SDK requirements
Any official SDK will support:
- Request signing or bearer authentication.
- Idempotency key helpers.
- Pagination helpers.
- Webhook signature verification.
- Typed errors.
- Sandbox and production environment separation.