Hinkal API
Get Private Send Bridge Quote
Quote a private send paid out in another token or chain
GET
/get-private-send-bridge-quotehttps://api.hinkal.io/get-private-send-bridge-quote
Returns a quote (a JSON string) and the expected amount per recipient for a
private send where recipients are paid in another token, on another chain, or both.
EVM sources route through LI.FI; Solana and Tron sources route through NEAR Intents.
Pass the quote to POST /private-send-bridge unchanged within 10 minutes.
Read-only — requires an active session. Pass sessionId and nonce as query parameters
and include x-hinkal-request-signature: secp256k1_sign(SHA256("GET /get-private-send-bridge-quote\n" + queryString))
in the headers. Repeat recipientAddresses and amounts once per recipient, in the same order.
Query parameters
| Name | Type | Description |
|---|---|---|
sessionIdrequired | string (uuid) | Session identifier UUID from POST /create-session |
noncerequired | string (uuid) | Per-request UUID. Echoed back in the response. |
chainIdrequired | string | Source chain ID |
destinationChainIdrequired | string | Chain the recipients are paid on. May equal chainId for a same-chain swap. |
inputTokenAddressrequired | string | Source token address |
outputTokenAddressrequired | string | Token the recipients receive. Must differ from inputTokenAddress on the same chain. |
recipientAddressesrequired | string[] | Recipient address on the destination chain. Repeat the key once per recipient. |
amountsrequired | string[] | Amount per recipient as a positive integer in the source token's smallest unit, in the same order as recipientAddresses. |
slippagePercentage | number | Maximum slippage percentage, 0 to 10. If omitted, 1% for NEAR Intents; for LI.FI 0.7%, or 1.5% for a recipient amount under $10. |
txCompletionTime | integer | Unix timestamp (seconds) for a scheduled send. Stored in the quote. |
Header parameters
| Name | Type | Description |
|---|---|---|
x-hinkal-request-signaturerequired | string | Hex-encoded compact secp256k1 signature: secp256k1_sign(SHA256(binding + "\n" + payload)), where binding is "<METHOD> <routePath>" (this route's own method and path, e.g. "POST /deposit" or "GET /balance") and payload is JSON.stringify(body) for POST requests or the raw query string for GET requests. Binding the route into the signed digest stops a signature captured for one endpoint from being replayed against another. See Authentication for the full signing scheme. |
Responses
200Private send bridge quote
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
quoterequired | string | The quote as a JSON string. Pass it to POST /private-send-bridge unchanged. Can be tens of KB. |
expectedAmountsrequired | string[] | Expected amount per recipient in the destination token's smallest unit, in request order |
noncerequired | string | Echoed per-request nonce from the request. |
400Validation error
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |
401Invalid signature or reused nonce
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |
500Server error
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |