Hinkal API

FAQ

What is the Hinkal API?

The Hinkal API exposes Hinkal's privacy protocol through REST endpoints.

Who should use the Hinkal API?

Backend developers, payment providers, exchanges, treasury platforms, and enterprise teams.

When should I use the API instead of the SDK?

Use the API when building server-side integrations.

When should I use the API instead of WaaS?

Use the API when users keep control of their own wallets.

Is the API custodial?

No.

Who controls the user's wallet?

The user.

Does Hinkal access user private keys?

No.

What does Hinkal manage?

Only Hinkal shielded keys used for privacy operations.

Where does the API run?

Inside a secure enclave running on GCP Confidential VMs.

Which chains are supported?

Ethereum, Solana, Tron, and supported EVM chains.

Does the API support Ethereum?

Yes.

Does the API support Solana?

Yes.

Does the API support Tron?

Yes.

Does the API support EVM chains?

Yes.

What operations are supported?

Deposits, withdrawals, transfers, swaps, private sends, and balance retrieval.

How does API authentication work?

Through wallet signatures and authenticated sessions.

What is a session?

A temporary authorization associated with a wallet.

How do I create a session?

Call POST /create-session.

Is a session required?

Yes.

How long does a session last?

24 hours by default.

Can sessions expire?

Yes.

What happens when a session expires?

A new session must be created.

What is clientPublicKey?

A secp256k1 public key used for authentication.

What is x-hinkal-request-signature?

A request authentication signature.

What algorithm is used?

secp256k1.

Does the API support EIP-712?

Yes.

Does the API support Solana signatures?

Yes.

Does the API support Tron signatures?

Yes.

What is Normal Mode?

A mode where sessions authorize requests.

What is EIP-712 Mode?

A mode where transactions require explicit approvals.

Which mode is recommended?

It depends on your security requirements and user experience goals.

Does every request require signing?

Authenticated requests do.

Can I reuse a session?

Yes.

Can multiple requests use the same session?

Yes.

Can I invalidate a session?

By creating a new session or waiting for expiration.

What is GET /ping?

A health-check endpoint.

What is GET /supported-chains?

Returns supported networks.

What is GET /supported-tokens?

Returns supported assets.

What is GET /balance?

Returns balance information.

What is GET /recipient-info?

Returns recipient-related information.

What is GET /get-fee?

Returns fee information.

What is GET /get-swap-data?

Returns swap information.

What is POST /refresh-cache?

Refreshes cached data.

Which endpoint should I call first?

POST /create-session.

How do I retrieve balances?

Using GET /balance.

How do I retrieve supported assets?

Using GET /supported-tokens.

How do I retrieve supported networks?

Using GET /supported-chains.

Does balance retrieval require transactions?

No.

Can I query balances at any time?

Yes.

Does the API support fee estimation?

Yes.

What is POST /deposit?

A Public→Private transaction.

What is POST /withdraw?

A Private→Public transaction.

What is POST /transfer?

A Private→Private transaction.

What is POST /swap?

A private swap transaction.

What is POST /proofless-deposit?

A deposit flow that does not require proof generation.

What is POST /deposit-for-other?

Deposits funds for another account.

What is POST /deposit-solana-for-other?

The Solana version of deposit-for-other.

What is POST /withdraw-stuck-utxos?

Withdraws inaccessible UTXOs.

What is GET /stuck-balances?

Lists everything stuck on a chain, per token: notes that can only be withdrawn (utxo), refunds of failed bridges from a private send bridge or a transfer address (bridge), and deposit address balances the relayer would not shield (vault, one entry per address with its vaultAddress and the reason it was not shielded). If any source cannot be read, the call fails instead of returning a partial list.

What is POST /recover-stuck-balance?

Recovers one kind (utxo, bridge or vault) of one token to a public address. It does the same as POST /withdraw-stuck-utxos, POST /recover-stuck-bridge-balance or POST /receive-vault-recover respectively; vault also needs the vaultAddress and returns unsigned transaction data you broadcast yourself.

What is POST /recover-stuck-bridge-balance?

Recovers the refund of a failed private send bridge payout and sends it to a public address. GET /stuck-bridge-balance lists these refunds.

What is POST /receive-address?

Hands out a public deposit address that shields whatever is sent to it. One address covers every supported token on every chain of its network (all EVM chains share one address; Tron and Solana each have their own). Addresses are valid for 14 days. Calling it again returns the unexpired address already issued for that network; once that expires, the next call issues a new one. Send forceFresh: true to get a new one sooner. With recipientAddress it creates a transfer address instead; see below.

What is GET /receive-vault-account?

Lists the deposit addresses issued so far, plus balances sitting in them that the relayer declined to shield. A transfer address also shows its recipientAddress, and destinationChainId and destinationTokenAddress when it bridges.

What is POST /receive-vault-recover?

Returns unsigned transaction data that sweeps a balance the relayer would not shield out of a deposit address, to a public address you choose. You broadcast it and pay the gas.

What is a transfer address?

A deposit address tied to one public recipient, created with POST /receive-address plus recipientAddress. Anything sent to it is shielded and then automatically withdrawn to that recipient, so the payer and the recipient are not linked on-chain. The recipient is fixed for the address. Like a receive address it belongs to a network, so on EVM it accepts payments on every EVM chain, and each payment is paid out on the chain it was sent on. If the recipient address works on only one chain (for example an exchange deposit address), the recipient must tell the sender exactly which chain to send on. Each forward pays the relayer fee and the Hinkal fee out of the payment, so the recipient gets the payment minus fees; a payment below the relayer's settle fee waits at the address until the next payment, and a settled payment too small to cover the forward's fees is not forwarded and shows as stuck. To receive on another chain, add destinationChainId and destinationTokenAddress (and optionally slippagePercentage): each payment is bridged to the recipient on the destination chain from the chain it arrived on, with the fees taken from the payment. The bridge route is only checked for the chainId in the request, so a payment on a chain with no route to the destination chain is not forwarded and shows as stuck. If a forward fails, the funds show as stuck UTXOs and you can withdraw them with POST /withdraw-stuck-utxos or POST /recover-stuck-balance. A Hinkal Partner API key in x-api-key adds the partner fee to the forward. A new address is created on every call, valid for 14 days, on EVM, Tron and Solana. Payments that arrive after it expires are not forwarded; they show in GET /stuck-balances as vault with reason expired and are recovered with POST /recover-stuck-balance.

What is POST /partner/transfer-address?

Creates a transfer address with only a Hinkal Partner secret key in x-api-key: no session and no wallet signature. You pass networkType (evm, tron or solana), recipientAddress and a required refundTo, plus the optional bridge fields. The payer must send only on a chain listed in acceptedChainIds in the response: on EVM the address also exists on chains Hinkal doesn't support, and funds sent there can't be paid out, refunded or recovered. A payment that can't be paid out is refunded to refundTo automatically. Each payout is credited to your key. See Partner Transfer Address.

What is GET /partner/transfer-address/stuck-balances?

Lists funds that weren't paid out or refunded for one refundTo, summed over every partner transfer address your key created with it, per chain and token, with the amount from each kind (utxo, bridge, vault). A chain that can't be read comes back with an error instead of failing the whole call. It takes only the partner secret key.

When do I need the partner stuck-balance and recover routes?

Only for funds that can't be refunded automatically: payments sent after the address expired, payments from a sender that failed Hinkal's compliance screening, tokens Hinkal doesn't support, and balances too small to cover the fee of an automatic refund. Check GET /partner/transfer-address/stuck-balances regularly; if a balance is still listed an hour later, recover it with POST /partner/transfer-address/recover. See When to recover manually.

What is POST /partner/transfer-address/recover?

Recovers one token and kind on one chain to refundTo, for a balance that wasn't refunded automatically. The refundTo wallet signs the request (RefundToRecover). utxo and bridge recoveries are relayed for you; vault returns txData that you send right away and pay the gas for (from any wallet on EVM, from refundTo on Tron and Solana). The funds always go to refundTo.

Should I use POST /receive-address or POST /partner/transfer-address for a transfer address?

Use POST /receive-address with recipientAddress when a user opens a session and signs: the address belongs to that user's account, and stuck funds stay there for the user to recover. Use POST /partner/transfer-address when your backend creates addresses with no session: payments that can't be paid out are refunded to refundTo.

Can I execute deposits?

Yes.

Can I execute withdrawals?

Yes.

Can I execute transfers?

Yes.

Can I execute swaps?

Yes.

Can I estimate fees before execution?

Yes.

Does the API return unsigned transactions?

Yes.

Can I sign transactions myself?

Yes.

Can I broadcast transactions myself?

Yes.

Does Hinkal provide relaying?

Yes.

What is a relayer?

A service that executes and broadcasts transactions.

Why use a relayer?

To simplify transaction execution and improve user experience.

Are relayer fees charged?

Yes.

What is Private Send?

A confidential payout mechanism.

What is POST /private-send?

Creates a private payout order.

What is POST /private-send-bridge?

Creates a private payout order where recipients receive another token or are paid on another chain. It takes a quote from GET /get-private-send-bridge-quote.

What is orderId?

A unique controlling identifier.

How do I control an order?

Using GET /private-send/{orderId}.

Can I send to multiple recipients?

Yes.

Can I build payroll systems?

Yes.

Can I build treasury systems?

Yes.

What statuses are available?

PENDING, EXCHANGING, SUCCESSFUL, FAILED, and EXPIRED.

What does PENDING mean?

The order exists but the deposit has not been detected.

What does EXCHANGING mean?

The deposit was detected and payouts are being processed.

What does SUCCESSFUL mean?

The transaction completed successfully.

What does FAILED mean?

Execution failed.

What does EXPIRED mean?

The deposit was not received before expiration.

Can I monitor payout progress?

Yes.

What is attestation?

A cryptographic proof of enclave integrity.

Which endpoint provides attestation?

GET /attestation.

Why is attestation important?

It proves the enclave is running the expected code.

What is imageDigest?

The hash of the running enclave image.

What is verificationPublicKey?

A public key generated inside the enclave.

What is x-hinkal-response-signature?

A signature proving a response came from the enclave.

Can I verify API responses?

Yes.

Can I verify enclave integrity?

Yes.

Do I need attestation for every request?

No.

When should I refresh attestation?

When response verification fails.

Why am I getting a 401 error?

Authentication failed.

Why am I getting a 403 error?

Authorization failed.

Why is my balance empty?

Possible reasons include identity mismatch, unsupported assets, or synchronization delays.

Why is my transaction stuck?

Possible reasons include network congestion, insufficient funds, or processing delays.

Why is my Private Send still pending?

The deposit may not yet be detected or payouts may still be processing.

Why did my order expire?

The required deposit was not received before the expiration deadline.

What information should I provide when reporting an API issue?

Provide chain ID, wallet address, endpoint used, request payload, response payload, error message, transaction hash, order ID (if applicable), and timestamp.