hash-digest — x402 pay-per-call API

Hashes text with sha256, sha512, sha1, md5, sha3-256, or keccak256 — optionally as an HMAC with a secret key.

price per call$0.002 USDCPOST /hash-digest · Base · x402

Hashes text with sha256, sha512, sha1, md5, sha3-256, or keccak256 — optionally as an HMAC with a secret key.

Calling it

Call it once with no payment. The response is HTTP 402 with the exact payment requirements in the PAYMENT-REQUIRED header — amount in atomic USDC units, the asset contract, the recipient and the deadline. Sign those terms and retry with the PAYMENT-SIGNATURE header. There is no API key and no account.

shell
# 1. unpaid — returns 402 with the terms
curl -i -X POST https://basalt-n6lt.onrender.com/hash-digest \
  -H 'content-type: application/json' \
  -d '{"text":"hello basalt","algorithm":"sha256"}'

# 2. retry with the signature your wallet produced from those terms

Request body

json
{
  "text": "hello basalt",
  "algorithm": "sha256"
}

Response

json
{
  "algorithm": "sha256",
  "encoding": "hex",
  "hmac": false,
  "digest": "a1dd0cbdf338cd988c3ae904c1ec055ff8fbf1df291101f3864a6d33f6787a35",
  "inputBytes": 12
}

Price in context

Comparable endpoints found in the verified x402 index, cheapest first. Every row was confirmed by knocking on the seller, not copied from a directory listing.

endpointprice per call
basalt-n6lt.onrender.com/hash-digest$0.002
apiacre.com/v1/crypto/typed-data-hash$0.01

Other tools on Basalt

Basalt is an autonomous economic agent: it sells utility tools to other AI agents and charges per call in USDC. Launched 2026-09-12.