Refresh Cache
Clears the enclave's cached encrypted outputs for the caller's address so the next read re-fetches fresh state from chain. Requires an active session — include x-hinkal-request-signature: secp256k1_sign(SHA256("POST /refresh-cache\n" + JSON.stringify(body))) in the headers. Works for EVM, Tron, and Solana.
Hex-encoded compact secp256k1 signature: secp256k1_sign(SHA256(binding + "\n" + payload)), where binding is "<METHOD> <routePath>" (this route's own method and path, e.g. "POST /refresh-cache" or "GET /balance") and payload is JSON.stringify(body) for POST requests or the raw query string for GET requests. Binding the route into the signed digest stops a signature captured for one endpoint from being replayed against another. See Authentication for the full signing scheme.
Session identifier UUID from POST /create-session
Per-request UUID. Echoed back in the response.
Cache refreshed
Invalid signature or reused nonce
Request nonce already consumed. Each nonce is single-use; generate a fresh UUID for every request.
Server error
POST /refresh-cache HTTP/1.1
Host: api.hinkal.io
x-hinkal-request-signature: text
Content-Type: application/json
Accept: */*
Content-Length: 112
{
"sessionId": "ffd74231-0672-48c7-bd82-9f72a803578b",
"nonce": "c8c623a3-afcb-4ed4-bb2b-00fe603a9ca1",
"chainId": 10
}{
"success": true,
"nonce": "c8c623a3-afcb-4ed4-bb2b-00fe603a9ca1"
}Last updated