Hinkal API

Private Send Bridge

Prepare a private send bridge order

POST/private-send-bridge
https://api.hinkal.io/private-send-bridge

Prepares a private send order from a quote returned by GET /get-private-send-bridge-quote. Returns a serialized unsigned deposit transaction; once the caller broadcasts it, the enclave detects the on-chain deposit and privately pays each recipient through the quoted route (LI.FI for EVM sources, NEAR Intents for Solana and Tron sources). Track progress with GET /private-send-bridge/{orderId}.

The response also has txData: the same transaction as serializedTx, as an object. On EVM it has no nonce, gas limit or chain ID.

The quote expires 10 minutes after it is issued and is bound to the session address, chainId and tokenAddress. destinationChainId, destinationTokenAddress and recipients must match the quote. txCompletionTime is taken from the quote.

LI.FI can charge a fee in the native token. For an ERC20 source it is included in the deposit transaction's value, not in amountIn or fee. For a native-token source it is included in amountIn and fee.

Authorized by a normal mode session (secp256k1 request signature via x-hinkal-request-signature header, bound to "POST /private-send-bridge") or an EIP-712 mode session with a per-transaction EIP-712 typed-data signature (primary type PrivateSendBridge) on EVM/Tron, or an ed25519 plain-text signature on Solana. In EIP-712 mode recipients are signed exactly as sent.

Normal mode: include x-hinkal-request-signature header; omit signature. EIP-712 mode: include signature in body; omit x-hinkal-request-signature header.

Header parameters

NameTypeDescription
x-hinkal-request-signaturestringRequired for normal mode sessions: hex-encoded compact secp256k1 signature secp256k1_sign(SHA256(binding + "\n" + JSON.stringify(body))), where binding is "POST <routePath>" for this endpoint. Omit for EIP-712 mode sessions — include signature in the request body instead. See Authentication for the full signing scheme.

Request body application/jsonrequired

NameTypeDescription
sessionIdrequiredstring (uuid)Session identifier UUID from POST /create-session
noncerequiredstring (uuid)Per-request UUID. Echoed back in the response.
chainIdrequiredintegerSource chain ID, same as in the quote
tokenAddressrequiredstringSource token, same as in the quote
destinationChainIdrequiredintegerDestination chain ID, same as in the quote
destinationTokenAddressrequiredstringDestination token, same as in the quote
recipientsrequiredobject[]The same recipients and amounts as in the quote
recipients[].addressrequiredstringRecipient address on the destination chain
recipients[].amountrequiredstringAmount in the source token's smallest unit
quoterequiredstringThe quote string returned by GET /get-private-send-bridge-quote
refstringReferral code: a whitelisted referral identifier, or a code agreed with Hinkal that carries a custom Hinkal fee, which then replaces the default Hinkal fee.
signaturestringEIP-712 or ed25519 signature (EIP-712 mode only; omit for normal mode)

Responses

200Order prepared
NameTypeDescription
successrequiredboolean
One of: true
orderIdrequiredstring
approvalAddressrequiredstringERC20 spender to approve amountIn for before broadcasting (EVM/Tron). Always null on Solana.
serializedTxrequiredstringBase64-encoded unsigned deposit transaction
amountInrequiredstringTotal source tokens to deposit (recipient amounts plus fee), in the source token's smallest unit
amountOutrequiredstringTotal of the quote's expectedAmounts, in the destination token's smallest unit. Recipients can receive less by up to the slippage. Not amountIn - fee.
feerequiredstringProtocol fee in the source token's smallest unit
txDatarequiredone of
noncerequiredstringEchoed per-request nonce from the request, added before signing.
400Validation error
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring
401Invalid signature or reused nonce
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring
409Request `nonce` already consumed. Each `nonce` is single-use; generate a fresh UUID for every request.
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring
500Server error
NameTypeDescription
successrequiredboolean
One of: false
errorrequiredstring