Private Send Bridge
Prepare a private send bridge order
/private-send-bridgePrepares 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
| Name | Type | Description |
|---|---|---|
x-hinkal-request-signature | string | Required 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
| 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 | integer | Source chain ID, same as in the quote |
tokenAddressrequired | string | Source token, same as in the quote |
destinationChainIdrequired | integer | Destination chain ID, same as in the quote |
destinationTokenAddressrequired | string | Destination token, same as in the quote |
recipientsrequired | object[] | The same recipients and amounts as in the quote |
recipients[].addressrequired | string | Recipient address on the destination chain |
recipients[].amountrequired | string | Amount in the source token's smallest unit |
quoterequired | string | The quote string returned by GET /get-private-send-bridge-quote |
ref | string | Referral code: a whitelisted referral identifier, or a code agreed with Hinkal that carries a custom Hinkal fee, which then replaces the default Hinkal fee. |
signature | string | EIP-712 or ed25519 signature (EIP-712 mode only; omit for normal mode) |
Responses
200Order prepared
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
orderIdrequired | string | |
approvalAddressrequired | string | ERC20 spender to approve amountIn for before broadcasting (EVM/Tron).
Always null on Solana. |
serializedTxrequired | string | Base64-encoded unsigned deposit transaction |
amountInrequired | string | Total source tokens to deposit (recipient amounts plus fee), in the source token's smallest unit |
amountOutrequired | string | Total of the quote's expectedAmounts, in the destination token's smallest unit. Recipients can receive less by up to the slippage. Not amountIn - fee. |
feerequired | string | Protocol fee in the source token's smallest unit |
txDatarequired | one of | |
noncerequired | string | Echoed per-request nonce from the request, added before signing. |
400Validation error
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |
401Invalid signature or reused nonce
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |
409Request `nonce` already consumed. Each `nonce` is single-use; generate a fresh UUID for every request.
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |
500Server error
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
errorrequired | string |