utils
Detect hash
Validates a hash and returns it in all standard formats. Use this to convert between hex (64 chars) and base64 (44 chars) representations. Works with any 256-bit hash including transaction hashes, block hashes, and message hashes.
get/api/v2/detectHash
Request
- Base URL: https://toncenter.com (the document declares no server; this is the origin it was published from)
- URL: https://toncenter.com/api/v2/detectHash
- Auth: one of:
- API key in header X-API-Key
- API key in query parameter api_key
Query parameters
hashstring required
A 256-bit hash value. Accepts either hex format (64 characters) or base64 format (44 characters). Used for block hashes, transaction hashes, and cryptographic proofs.
The 256-bit hash in any form
Response
Returns the hash in all supported formats (hex, base64, URL-safe base64).
Changes
No recorded changes to this operation across all 1 revision of this API.