NAV
shell php javascript java csharp ruby python go

Utility APIs

Get Hash Type

curl -X GET 'https://api.blocksdk.com/v2/tools/hash-type/00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048' \
    -H 'Content-Type: application/json' \
    -H 'X-API-Token: my-api-token'
$hash_type = $toolClient->getHashType([
    "hash" => "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
]);
var hash_type = toolClient.getHashType({
    "hash" : "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
})
hash_type = toolClient.getHashType({
    "hash" => "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
})
hash_type = toolClient.getHashType({
    "hash" : "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
})
hash_type := toolClient.GetHashType(map[string]interface{}{
    "hash" : "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048"
})

Response Body

{
    "payload": {
        "hash": "00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048",
        "results": [
            {
                "hash_type": "Block",
                "symbol": "BTC"
            },
            {
                "hash_type": "Block",
                "symbol": "BCH"
            }
        ]
    },
    "state": {
        "code": 200,
        "success": true
    }
}

Info

Returns the cryptocurrency symbol and hash type with a specific hash

HTTP Request

GET https://api.blocksdk.com/v2/tools/hash-type/<hash>

URL Parameters

Parameter Type Description
hash* string Block or transaction hash

Response

Variable Type Description
hash_type string Block 또는 Transaction
symbol int Asset symbol from which this hash was generated ( BTC , BCH , LTC , ETH , XMR , DASH )