Skip to main content

Convert From Address

This endpoint allows you to convert a Chia address to a puzzle hash.

Endpoint

GET https://api.spacescan.io/tools/convert_from_address/{address}

Parameters

ParameterTypeRequiredDefaultDescription
addressstringYes-Chia address starting with 'xch'
Free API

Use api.spacescan.io for free tier access. See our API Plans for rate limits and features.

Pro API

Use pro-api.spacescan.io with your API key in the x-api-key header. See our API Plans for details.

curl -X GET "https://pro-api.spacescan.io/tools/convert_from_address/xch13x0kjwy9wcvgjc6r97khgjyvljeyl3054y4m88fc4j3fxr30u6asasxq45" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/tools/convert_from_address/xch13x0kjwy9wcvgjc6r97khgjyvljeyl3054y4m88fc4j3fxr30u6asasxq45"

Response Schema

FieldTypeDescription
statusstringStatus of the request (success/failure)
datastringThe converted puzzle hash

Example Response

{
"status": "success",
"data": "0x899f69388576188963432fad74488cfcb24fc5f4a92bb39d38aca2930e2fe6bb"
}

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Invalid address format
429Too Many Requests -- You're requesting too many times
500Internal Server Error -- We had a problem with our server
503Service Unavailable -- We're temporarily offline for maintenance