Catalog/trust-hash

Trust

Content hash API

Hash text or encoded bytes with SHA-256, SHA-512, or SHA-1 for verification workflows.

Price$0.01per request
MethodPOST
Route/v1/trust/hash
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
trusthashsha256attestation
API URLhttps://x402.hexl.dev/v1/trust/hash
Integration docs
Example request
{
  "value": "hello world",
  "algorithms": [
    "sha256",
    "sha512"
  ]
}
Example response
{
  "encoding": "utf8",
  "byteLength": 11,
  "hashes": {
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
  },
  "provider": "node-crypto"
}
Input schema
{
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "value": {
      "type": "string",
      "minLength": 1
    },
    "encoding": {
      "type": "string",
      "enum": [
        "utf8",
        "base64",
        "hex"
      ],
      "default": "utf8"
    },
    "algorithms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "sha256",
          "sha512",
          "sha1"
        ]
      },
      "default": [
        "sha256"
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "required": [
    "encoding",
    "byteLength",
    "hashes",
    "provider"
  ],
  "properties": {
    "encoding": {
      "type": "string"
    },
    "byteLength": {
      "type": "number"
    },
    "hashes": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "provider": {
      "type": "string"
    }
  }
}