Hinkal API
Withdraw Stuck UTXOs
Recover blocked (stuck) UTXOs to a public address
POST
/withdraw-stuck-utxoshttps://api.hinkal.io/withdraw-stuck-utxos
Withdraws the caller's stuck UTXOs for a token to a public recipientAddress.
Authorized by a normal mode session (secp256k1 request signature via x-hinkal-request-signature
header, bound to "POST /withdraw-stuck-utxos") or an EIP-712 mode session with a
per-transaction EIP-712 typed-data signature (primary type WithdrawStuckUtxos) on
EVM/Tron, or an ed25519 plain-text signature on Solana.
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 | |
tokenAddressrequired | string | |
recipientAddressrequired | string | |
ref | string | Referral code for attribution (must be a whitelisted referral identifier) |
signature | string | EIP-712 or ed25519 signature (EIP-712 mode only; omit for normal mode) |
Responses
200Stuck UTXOs withdrawn
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
txHashesrequired | 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 |