Transfer
Transfer tokens between shielded balances
/transferRelays a shielded-to-shielded transfer to a recipient. recipientAddress accepts either
the recipient's recipientInfo (from GET /recipient-info) or a plain public address
(Ethereum address on EVM/Tron chains, Solana address on Solana).
EVM / Tron: feeToken is required in the request body.
Solana: feeToken is not used — the server always uses tokenAddresses[0] as the
fee token regardless of what is passed.
The relay fee is computed automatically. feeAmount is only needed to lock in an exact
amount already returned by GET /get-fee.
Authorized by a normal mode session (secp256k1 request signature, bound to
"POST /transfer") or an EIP-712 mode session with a per-transaction EIP-712 typed-data
signature (primary type Transfer) on EVM/Tron, or an ed25519 plain-text signature on
Solana.
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 or ed25519 signature (EIP-712 mode only) |
chainIdrequired | integer | |
tokenAddressesrequired | string[] | |
amountsrequired | string[] | |
recipientAddressrequired | string | Recipient's recipientInfo from GET /recipient-info, or a plain public
address (Ethereum on EVM, Tron hex 0x… on Tron, Solana on Solana). |
feeToken | string | Token used to pay the relay fee. Required for EVM/Tron. On Solana, always set to tokenAddresses[0] by the server — any value passed is ignored. |
feeAmount | string | Optional — omit it and the server computes the fee automatically. Pass it only to lock in a fee amount already quoted from GET /get-fee. |
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. |
Responses
200Relayed transaction hash
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
txHashrequired | string | |
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 |