Hinkal API

Deposit For Other

Build a deposit transaction into another user's shielded balance (EVM / Tron)

POST/deposit-for-other
https://api.hinkal.io/deposit-for-other

Returns 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

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)
noncerequiredstring (uuid)
signaturestringEIP-712 signature (EIP-712 mode only)
chainIdrequiredinteger
tokenAddressesrequiredstring[]
amountsrequiredstring[]
recipientInforequiredstringRecipient's recipientInfo from GET /recipient-info, or a plain public address. On Tron, send the address as hex (0x…).
refstringReferral 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
NameTypeDescription
successrequiredboolean
One of: true
txDatarequiredobjectUnsigned EVM transaction request (ethers TransactionRequest shape)
txData.typeintegerTransaction type (0 = legacy, 2 = EIP-1559)
txData.tostringTarget contract address
txData.fromstringSender address (may be omitted)
txData.nonceintegerNot set by the server — client must fill before signing
txData.gasLimitstringMax gas, as a decimal string
txData.gasPricestringGas price — present on legacy (type 0) transactions only
txData.maxFeePerGasstringEIP-1559 max total fee per gas — present on type 2 transactions only
txData.maxPriorityFeePerGasstringEIP-1559 max priority fee per gas — present on type 2 transactions only
txData.datastringHex-encoded calldata
txData.valuestringNative token value in wei, as a decimal string
txData.chainIdinteger
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

Build a Solana deposit transaction into another user's shielded balance

POST/deposit-solana-for-other
https://api.hinkal.io/deposit-solana-for-other

Solana-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

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)
noncerequiredstring (uuid)
signaturestringed25519 signature (EIP-712 mode only)
chainIdrequiredintegerMust be 501 (Solana mainnet)
tokenAddressesrequiredstring[]Array with exactly one Solana token mint address
amountsrequiredstring[]Array with exactly one amount in smallest units
recipientInforequiredstringRecipient's recipientInfo from GET /recipient-info, or a plain Solana address
refstringReferral 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
NameTypeDescription
successrequiredboolean
One of: true
txDatarequiredstringBase64-encoded serialized Solana transaction for the client to sign and broadcast
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