Exact Raw Block Against CIDv1
Compare up to 65536 exact raw-block bytes with a canonical raw-codec CID carrying a complete SHA2-256/512 digest. Return matches, canonical claimed/expected CIDv1, algorithm and byte count. Mismatch is a paid result. Refuse DAG/UnixFS codecs, unsupported hashes, malformed CID text/varints/digest lengths or carriers before payment; do not pretend a file CID hashes unencoded file bytes. Maximum 1024 CID characters and 511 binary CID bytes. No retrieval or author authentication.
- Price
- from $0.0012 USDC per request (starting price; the 402 response quotes the exact amount for your input)
- Network
- Base mainnet,
eip155:8453, settled in USDC through the Coinbase CDP facilitator - Method and URL
POST https://market.561.group/v1/data/raw-block-cid-verify- Response type
application/json- Seller
- Causeway Services (561 Group)
Input contract
Input that fails this contract is refused with a 4xx status before any payment is requested.
{
"maxBytes": 544768,
"bodySchema": {
"type": "object",
"additionalProperties": false,
"required": [
"carrier",
"cid"
],
"properties": {
"carrier": {
"type": "object",
"additionalProperties": false,
"required": [
"mediaType",
"contentBase64"
],
"properties": {
"mediaType": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Caller label, not authentication or content-format validation. Maximum 1024 UTF-8 bytes."
},
"contentBase64": {
"type": "string",
"maxLength": 87384,
"description": "Canonical padded RFC 4648 Base64 of at most 65536 exact bytes; full JSON escaping admitted."
}
}
},
"cid": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Canonical CIDv0 or CIDv1 in one supported base; maximum 511 binary bytes."
}
}
}
}
Example request
{
"method": "POST",
"url": "https://market.561.group/v1/data/raw-block-cid-verify",
"headers": {
"accept": "application/json",
"content-type": "application/json"
},
"body": {
"carrier": {
"mediaType": "application/octet-stream",
"contentBase64": "aGVsbG8="
},
"cid": "bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq"
}
}
Output
{
"schema": {
"type": "object",
"required": [
"matches",
"claimedCid",
"expectedCid",
"codec",
"algorithm",
"byteLength"
],
"properties": {
"matches": {
"type": "boolean"
},
"claimedCid": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Canonical CIDv0 or CIDv1 in one supported base; maximum 511 binary bytes."
},
"expectedCid": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Canonical CIDv0 or CIDv1 in one supported base; maximum 511 binary bytes."
},
"codec": {
"const": 85
},
"algorithm": {
"enum": [
"sha2-256",
"sha2-512"
]
},
"byteLength": {
"type": "integer",
"minimum": 0,
"maximum": 65536
}
}
},
"example": {
"matches": true,
"claimedCid": "bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq",
"expectedCid": "bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq",
"codec": 85,
"algorithm": "sha2-256",
"byteLength": 5
}
}
How to buy with x402
- Send the request without payment. The server answers
402 Payment Requiredwith a base64 JSONPAYMENT-REQUIREDheader holding the amount, asset, network and payee. - Have your wallet sign an EIP-3009
transferWithAuthorizationfor exactly those terms (an x402 client library does this for you). - Repeat the identical request with the signed payload in the
PAYMENT-SIGNATUREheader. - The server verifies, runs the operation, settles, and returns
200with the result and aPAYMENT-RESPONSEheader carrying the settlement receipt.
Read the price without paying
curl --include --request POST --header 'accept: application/json' --header 'content-type: application/json' --data-raw '{"carrier":{"mediaType":"application/octet-stream","contentBase64":"aGVsbG8="},"cid":"bafkreibm6jg3ux5qumhcn2b3flc3tyu6dmlb4xa7u5bf44yegnrjhc4yeq"}' --url 'https://market.561.group/v1/data/raw-block-cid-verify'
This request authorizes nothing; it returns the live payment terms. Read the full explanation of x402.
Machine-readable
- /.well-known/x402: x402 discovery document for every offer
- /v1/catalog: full catalog with contracts and examples
- /llms.txt: the market in llms.txt form
- services.561.group: Causeway Services