Skip to main content
GET
/
api
/
v2
/
detectHash
Detect hash
curl --request GET \
  --url https://toncenter.com/api/v2/detectHash \
  --header 'X-API-Key: <api-key>'
{
  "ok": true,
  "result": {
    "@type": "ext.utils.detectedHash",
    "b64": "<string>",
    "b64url": "<string>",
    "hex": "<string>"
  },
  "@extra": "<string>"
}

Authorizations

X-API-Key
string
header
required

Query Parameters

hash
string
required

A 256-bit hash in hex (64 chars) or base64 (44 chars) format. Used to identify blocks, transactions, and messages uniquely. 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.

Response

OK

Response containing all hash format variants.

ok
boolean
default:true
required

Indicates if the request succeeded. If false, check the error field for details.

result
object
required

The response data. Only present when ok is true.

@extra
string

Optional request ID that you can pass in the request and receive back in the response. Useful for matching async responses.