Hinkal API

Get Private Send Bridge Quote

Quote a private send paid out in another token or chain

GET/get-private-send-bridge-quote
https://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

NameTypeDescription
sessionIdrequiredstring (uuid)Session identifier UUID from POST /create-session
noncerequiredstring (uuid)Per-request UUID. Echoed back in the response.
chainIdrequiredstringSource chain ID
destinationChainIdrequiredstringChain the recipients are paid on. May equal chainId for a same-chain swap.
inputTokenAddressrequiredstringSource token address
outputTokenAddressrequiredstringToken the recipients receive. Must differ from inputTokenAddress on the same chain.
recipientAddressesrequiredstring[]Recipient address on the destination chain. Repeat the key once per recipient.
amountsrequiredstring[]Amount per recipient as a positive integer in the source token's smallest unit, in the same order as recipientAddresses.
slippagePercentagenumberMaximum 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.
txCompletionTimeintegerUnix timestamp (seconds) for a scheduled send. Stored in the quote.

Header parameters

NameTypeDescription
x-hinkal-request-signaturerequiredstringHex-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
NameTypeDescription
successrequiredboolean
One of: true
quoterequiredstringThe quote as a JSON string. Pass it to POST /private-send-bridge unchanged. Can be tens of KB.
expectedAmountsrequiredstring[]Expected amount per recipient in the destination token's smallest unit, in request order
noncerequiredstringEchoed per-request nonce from the request.
400Validation error
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring
401Invalid signature or reused nonce
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring
500Server error
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring