Recover Receive Vault
Recover a blocked fund out of a receive address
/receive-vault-recoverReturns 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
| 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 signature (EIP-712 mode only; omit for normal mode) |
chainIdrequired | integer | The chain the blocked fund sits on |
vaultAddressrequired | string | The receive address the fund is stuck in (record.vaultAddress) |
tokenAddressrequired | string | Token to sweep out of the address |
recipientAddressrequired | string | Public address to receive the recovered funds |
ref | string | Referral 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
| Name | Type | Description |
|---|---|---|
successrequired | boolean | |
txDatarequired | one of | |
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 |