Skip to main content

Convert From DID

This endpoint allows you to convert a DID ID to a puzzle hash.

Endpoint

GET https://api.spacescan.io/tools/convert_from_did/{did}

Parameters

ParameterTypeRequiredDefaultDescription
didstringYes-DID ID starting with 'did:chia:'
networkstringNoxchNetwork type (xch, txch11, aba)
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_did/did:chia:10lutrplp2mqrp0wg27sjmjeezzluk9a7jgmjpdv6n5qalkpy8kxqjd0xwd" \
-H "x-api-key: YOUR_API_KEY"

Live API Test

Request Examples

curl -X GET "https://api.spacescan.io/tools/convert_from_did/did:chia:10lutrplp2mqrp0wg27sjmjeezzluk9a7jgmjpdv6n5qalkpy8kxqjd0xwd"

Response Schema

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

Example Response

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

Error Responses

HTTP Status CodeMeaning
400Bad Request -- Invalid DID 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