Information
- OpenAPI version:
3.1.0
The chain-neutral order API: one flow for EVM contract deposits and non-EVM transfers. Every route needs
your API key, the same one /v2 takes, and your commercial terms and order deadline apply to every order.
Guides, a quickstart and Markdown copies for coding agents are at https://docs.khalani.network (start an agent at
https://docs.khalani.network/llms.txt).
| Base URL | Authentication |
|---|---|
https://api.hyperstream.dev |
Your API key in the X-API-Key header, from your backend only. |
API-Revision header names the revision you’re built against; 0 is the only one. Without it, a
request gets the revision that was current when your integration was set up. A breaking change ships as the next one./v3/catalog lists them. An Account is { chain, address }.solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB; check the catalog for availability.AssetAmount is { asset, amount }: asset is an Asset, { id, chain, symbol, decimals }, and amount a decimal
string of integer base units, which is all a request takes. Times are RFC 3339 UTC. A TransactionRef is { chain, hash }.null means unknown or not applicable. Ignore fields you don’t know.400 VALIDATION_FAILED naming it in field.ApiError. Its recovery says what to do next, whatever the code, a code you don’t know included:
retry waits retryAfterSeconds when set. Quote requestId when you contact Khalani.Idempotency-Key. A quote option makes one order and an order has one cancel signature, so
sending the same request again never does anything twice. Whether it can help is the error’s recovery.Chain eip155:16661; asset eip155:16661/erc20:0x1f3AA82227281cA364bFb3d253B0f1af1Da6473E, with 6 decimals.
USDC.e is USDC bridged through Chainlink CCIP, backed by USDC locked on Ethereum; it is not Circle-issued USDC on 0G.
Delivery into 0G typically takes about 20 minutes and needs at least 30 minutes left before the order’s deadline.
Fund promptly. An unfilled remainder expires at fillBy and is returned through normal settlement. Orders out of 0G are fast.
Check the live catalog before using these illustrative quote requests; trade size must fit the quoted range.
Base USDC to 0G USDC.e
{
"send": {
"asset": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000000"
},
"receive": {
"asset": "eip155:16661/erc20:0x1f3AA82227281cA364bFb3d253B0f1af1Da6473E"
}
}
0G USDC.e to Base USDC
{
"send": {
"asset": "eip155:16661/erc20:0x1f3AA82227281cA364bFb3d253B0f1af1Da6473E",
"amount": "5000000"
},
"receive": {
"asset": "eip155:8453/erc20:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
}
Your integrator API key. Backend only.
Security scheme type: apiKey
Header parameter name: X-API-Key