Hinkal API

Withdraw Stuck UTXOs

Recover blocked (stuck) UTXOs to a public address

POST/withdraw-stuck-utxos
https://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

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)Session identifier UUID from POST /create-session
noncerequiredstring (uuid)Per-request UUID. Echoed back in the response.
chainIdrequiredinteger
tokenAddressrequiredstring
recipientAddressrequiredstring
refstringReferral code for attribution (must be a whitelisted referral identifier)
signaturestringEIP-712 or ed25519 signature (EIP-712 mode only; omit for normal mode)

Responses

200Stuck UTXOs withdrawn
NameTypeDescription
successrequiredboolean
One of: true
txHashesrequiredstring[]
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