{
  "x402Version": 2,
  "id": 36311,
  "slug": "36311",
  "resource": "https://api.duoleads.com/v1/code/hash",
  "description": "Compute a cryptographic digest of supplied data: SHA-256, SHA-384, SHA-512, SHA-1, SHA3-256, SHA3-512, Keccak-256, BLAKE2b-256 and BLAKE2b-512, plus HMAC with any of them. Input is UTF-8 text, base64 or hex bytes; output is hex, base64, base64url or base32. Returns the digest, the byte length of the input, and the exact algorithm identifier used.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "algo": {
                "type": "string"
              },
              "bit_length": {
                "type": "integer"
              },
              "digest": {
                "type": "string"
              },
              "hmac": {
                "type": "boolean"
              },
              "input_bytes": {
                "type": "integer"
              },
              "out": {
                "type": "string"
              }
            },
            "required": [
              "digest",
              "algo",
              "out",
              "input_bytes",
              "hmac",
              "bit_length"
            ],
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/code/hash"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "algo": "sha256",
            "data": "hello"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "algo": "sha256",
              "bit_length": 256,
              "digest": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
              "hmac": false,
              "input_bytes": 5,
              "out": "hex"
            },
            "meta": {
              "computed_at": "2026-09-28T12:00:00.000Z",
              "deterministic": true,
              "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
              "price_usd": "0.05",
              "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
            },
            "ok": true,
            "route": "/v1/code/hash",
            "version": "1.0.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "algo": {
                    "description": "Digest algorithm.",
                    "enum": [
                      "sha256",
                      "sha384",
                      "sha512",
                      "sha1",
                      "sha3-256",
                      "sha3-512",
                      "keccak256",
                      "blake2b-256",
                      "blake2b-512"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "data": {
                    "description": "Input data, interpreted per encoding. At most 8192 characters. An empty value hashes the empty string.",
                    "maxLength": 8192,
                    "type": "string"
                  },
                  "encoding": {
                    "default": "utf8",
                    "description": "Encoding of data: utf8 (default), base64, base64url or hex.",
                    "enum": [
                      "utf8",
                      "base64",
                      "base64url",
                      "hex"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "hmac_key": {
                    "description": "If present, computes HMAC with this key.",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "hmac_key_encoding": {
                    "default": "utf8",
                    "description": "Encoding of hmac_key, as encoding.",
                    "enum": [
                      "utf8",
                      "base64",
                      "base64url",
                      "hex"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  },
                  "out": {
                    "default": "hex",
                    "description": "Digest output encoding: hex (default), base64, base64url or base32.",
                    "enum": [
                      "hex",
                      "base64",
                      "base64url",
                      "base32"
                    ],
                    "maxLength": 64,
                    "type": "string"
                  }
                },
                "required": [
                  "algo",
                  "data"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "algo": {
                        "type": "string"
                      },
                      "bit_length": {
                        "type": "integer"
                      },
                      "digest": {
                        "type": "string"
                      },
                      "hmac": {
                        "type": "boolean"
                      },
                      "input_bytes": {
                        "type": "integer"
                      },
                      "out": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "digest",
                      "algo",
                      "out",
                      "input_bytes",
                      "hmac",
                      "bit_length"
                    ],
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/code/hash"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "code",
    "crypto",
    "hashing",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:52:13.72Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:52:13.609Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "algo": "sha256",
              "data": "hello"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "algo": "sha256",
                "bit_length": 256,
                "digest": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
                "hmac": false,
                "input_bytes": 5,
                "out": "hex"
              },
              "meta": {
                "computed_at": "2026-09-28T12:00:00.000Z",
                "deterministic": true,
                "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
                "price_usd": "0.05",
                "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
              },
              "ok": true,
              "route": "/v1/code/hash",
              "version": "1.0.0"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "algo": {
                      "description": "Digest algorithm.",
                      "enum": [
                        "sha256",
                        "sha384",
                        "sha512",
                        "sha1",
                        "sha3-256",
                        "sha3-512",
                        "keccak256",
                        "blake2b-256",
                        "blake2b-512"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "data": {
                      "description": "Input data, interpreted per encoding. At most 8192 characters. An empty value hashes the empty string.",
                      "maxLength": 8192,
                      "type": "string"
                    },
                    "encoding": {
                      "default": "utf8",
                      "description": "Encoding of data: utf8 (default), base64, base64url or hex.",
                      "enum": [
                        "utf8",
                        "base64",
                        "base64url",
                        "hex"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "hmac_key": {
                      "description": "If present, computes HMAC with this key.",
                      "maxLength": 512,
                      "type": "string"
                    },
                    "hmac_key_encoding": {
                      "default": "utf8",
                      "description": "Encoding of hmac_key, as encoding.",
                      "enum": [
                        "utf8",
                        "base64",
                        "base64url",
                        "hex"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    },
                    "out": {
                      "default": "hex",
                      "description": "Digest output encoding: hex (default), base64, base64url or base32.",
                      "enum": [
                        "hex",
                        "base64",
                        "base64url",
                        "base32"
                      ],
                      "maxLength": 64,
                      "type": "string"
                    }
                  },
                  "required": [
                    "algo",
                    "data"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "algo": {
                          "type": "string"
                        },
                        "bit_length": {
                          "type": "integer"
                        },
                        "digest": {
                          "type": "string"
                        },
                        "hmac": {
                          "type": "boolean"
                        },
                        "input_bytes": {
                          "type": "integer"
                        },
                        "out": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "digest",
                        "algo",
                        "out",
                        "input_bytes",
                        "hmac",
                        "bit_length"
                      ],
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/code/hash"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "algo": "string",
        "bit_length": 0,
        "digest": "string",
        "hmac": true,
        "input_bytes": 0,
        "out": "string"
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}