Deposit For Other
Build a deposit transaction into another user's shielded balance (EVM / Tron)
/deposit-for-otherReturns an unsigned EVM or Tron transaction that deposits tokens into a recipient's
shielded balance. recipientInfo accepts either the recipient's recipientInfo (from
GET /recipient-info) or a plain Ethereum address.
Solana: Use /deposit-solana-for-other instead.
Authorized by a normal mode session (secp256k1 request signature, bound to
"POST /deposit-for-other") or an EIP-712 mode session with a per-transaction EIP-712
typed-data signature (primary type DepositForOther).
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) | |
noncerequired | string (uuid) | |
signature | string | EIP-712 signature (EIP-712 mode only) |
chainIdrequired | integer | |
tokenAddressesrequired | string[] | |
amountsrequired | string[] | |
recipientInforequired | string | Recipient's recipientInfo from GET /recipient-info, or a plain public address. On Tron, send the address as hex (0x…). |
ref | string | Referral code for attribution (must be a whitelisted referral identifier). Attribution is confirmed once the deposit lands on-chain - not at request time, since this endpoint returns an unsigned tx the caller broadcasts itself. |
Responses
200Unsigned deposit transaction
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
txDatarequired | object | Unsigned EVM transaction request (ethers TransactionRequest shape) |
txData.type | integer | Transaction type (0 = legacy, 2 = EIP-1559) |
txData.to | string | Target contract address |
txData.from | string | Sender address (may be omitted) |
txData.nonce | integer | Not set by the server — client must fill before signing |
txData.gasLimit | string | Max gas, as a decimal string |
txData.gasPrice | string | Gas price — present on legacy (type 0) transactions only |
txData.maxFeePerGas | string | EIP-1559 max total fee per gas — present on type 2 transactions only |
txData.maxPriorityFeePerGas | string | EIP-1559 max priority fee per gas — present on type 2 transactions only |
txData.data | string | Hex-encoded calldata |
txData.value | string | Native token value in wei, as a decimal string |
txData.chainId | integer | |
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 |
Build a Solana deposit transaction into another user's shielded balance
/deposit-solana-for-otherSolana-specific equivalent of /deposit-for-other. Returns a base64-encoded serialized
Solana transaction that deposits tokens into a recipient's shielded balance.
recipientInfo accepts either the recipient's recipientInfo (from
GET /recipient-info) or a plain Solana address.
The body uses tokenAddresses[] and amounts[] arrays (only the first element of each
is used — Solana supports one token per deposit). Authorized by a normal mode session
(secp256k1 request signature, bound to "POST /deposit-solana-for-other") or an EIP-712
mode session with a per-transaction ed25519 plain-text signature.
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) | |
noncerequired | string (uuid) | |
signature | string | ed25519 signature (EIP-712 mode only) |
chainIdrequired | integer | Must be 501 (Solana mainnet) |
tokenAddressesrequired | string[] | Array with exactly one Solana token mint address |
amountsrequired | string[] | Array with exactly one amount in smallest units |
recipientInforequired | string | Recipient's recipientInfo from GET /recipient-info, or a plain Solana address |
ref | string | Referral code for attribution (must be a whitelisted referral identifier). Attribution is confirmed once the deposit lands on-chain - not at request time, since this endpoint returns an unsigned tx the caller broadcasts itself. |
Responses
200Base64-encoded unsigned Solana transaction
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
txDatarequired | string | Base64-encoded serialized Solana transaction for the client to sign and broadcast |
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 |