Hinkal API

Recover Receive Vault

Recover a blocked fund out of a receive address

POST/receive-vault-recover
https://api.hinkal.io/receive-vault-recover

Returns an unsigned transaction that sweeps a balance the relayer declined to shield out of a receive address, to a public recipientAddress the caller chooses. The caller broadcasts it themselves and pays the gas — nothing is relayed.

chainId must be the chain the blocked fund actually sits on (from blockedFunds[].token.chainId in GET /receive-vault-account), not just any chain of the address's network — on EVM and Tron the recovery signature is bound to that chain's factory contract and will not verify on another. On Solana it is bound to the program rather than the cluster, but the request must still name the cluster holding the funds.

Authorized by a normal mode session (secp256k1 request signature via x-hinkal-request-signature header, bound to "POST /receive-vault-recover") or an EIP-712 mode session with a per-transaction signature: EIP-712 typed data (primary type ReceiveVaultRecover) on EVM/Tron, or an ed25519 signature over the ReceiveVaultRecover message on Solana.

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; omit for normal mode)
chainIdrequiredintegerThe chain the blocked fund sits on
vaultAddressrequiredstringThe receive address the fund is stuck in (record.vaultAddress)
tokenAddressrequiredstringToken to sweep out of the address
recipientAddressrequiredstringPublic address to receive the recovered funds
refstringReferral code for attribution (must be a whitelisted referral identifier). Attribution is confirmed once the recovery transaction lands on-chain - not at request time, since this endpoint returns an unsigned tx the caller broadcasts itself.

Responses

200Unsigned recovery transaction
NameTypeDescription
successrequiredboolean
One of: true
txDatarequiredone of
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