Skip to main content

/api/v2/detectHash RPC Method

Convert a hash from one encoding to another. Returns the hash in base64, base64url, and hex formats.

Updated on
Jun 02, 2026

Query Parameters

hash
string
REQUIRED

Any 256-bit hash, encoded as base64, base64url, or hex

Returns

ok
boolean

Indicates whether the request was successful

result
object

The result object which contains the following fields:

@type
string

Specifies the type of the result, set to ext.utils.detectedHash

b64
string

The hash encoded in standard base64

b64url
string

The hash encoded in URL-safe base64

hex
string

The hash encoded as a lowercase hexadecimal string

@extra
string

Additional metadata used internally for tracing and debugging

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free