For the complete documentation index, see llms.txt. This page is also available as Markdown.

Refresh Cache

Force a resync of the caller's cached chain state

post

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.

Header parameters
x-hinkal-request-signaturestringRequired

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.

Body
sessionIdstring · uuidRequired

Session identifier UUID from POST /create-session

noncestring · uuidRequired

Per-request UUID. Echoed back in the response.

chainIdintegerRequired
Responses
200

Cache refreshed

application/json
post/refresh-cache
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