Convert half-open UTF-8 byte, UTF-16 code-unit, or Unicode code-point spans into all th…
Convert half-open UTF-8 byte, UTF-16 code-unit, or Unicode code-point spans into all three units for supplied text. Reject offsets inside a code point. No PDF parsing, page inference, or external source lookup.
by www.mahastrategies.com · discovered, not yet claimed by its owner · updated 2026-10-13
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Convert half-open UTF-8 byte, UTF-16 code-unit, or Unicode code-point spans into all three units for supplied text. Reject offsets inside a code point. No PDF parsing, page inference, or external source lookup.
Tags: expansion-20261011 · context · bounded-computation · evidence · deterministic · bazaar · declaration-integrity · maha-offer
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-13
{
"dataClass": "synthetic",
"locators": [
{
"end": 7,
"locatorId": "l1",
"sourceId": "s1",
"start": 1,
"unit": "utf8"
}
],
"sources": [
{
"sourceId": "s1",
"text": "A😀éZ"
}
]
}{
"amountBaseUnits": "24000",
"boundaries": [
"Public or synthetic inputs only. Caller labels are declarations,…"
],
"inputDigest": "sha256:f3b482e3206c27c1528abd63ae53f6266d4eb358cc3cfd89c12f81abe…",
"offerId": "citation-locator-conversion",
"receiptDigest": "sha256:881d9521afe4758167f3be8bf6f93cf16378c2586497c2f6812c86928…",
"result": {
"dataClass": "synthetic",
"inputSha256": "sha256:f3b482e3206c27c1528abd63ae53f6266d4eb358cc3cfd89c12f81abe…",
"limits": [
"Public/synthetic is a caller declaration, not content inspection…"
],
"locators": [
{
"codepointEnd": 3,
"codepointStart": 1,
"excerptSha256": "sha256:71b897d47640bd5e39412fb2d81c5d04b1195fc5524663a7704b6bfe2…",
"locatorId": "l1",
"sourceId": "s1",
"utf16End": 4,
"utf16Start": 1,
"utf8End": 7,
"utf8Start": 1
}
],
"offsetConvention": "zero-based-half-open",
"resultSha256": "sha256:2cd724f8198f25ee297716e3646f5d9e7106e515b4ac31fdfa05e48be…",
"sourcesVerified": false
},
"version": "maha-microproducts/0.1"
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/32086.jsonfor the price and payment options. - Pay. Call
GET https://www.mahastrategies.com/api/v1/micro/citation-locator-conversion. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Arbitrum One, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.024 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Arbitrum One
- Demand
- 2 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.024 | 0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28 | 60s |
| exact | Arbitrum One eip155:42161 | USDC | $0.024 | 0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28 | 60s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "24000",
"amountUsd": 0.024,
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0xec84c1cd6602bbe387bc8e6f0d3c062f2762de28",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "24000",
"amountUsd": 0.024,
"maxTimeoutSeconds": 60
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"amountBaseUnits": {
"enum": [
"24000"
],
"type": "string"
},
"boundaries": {
"maxItems": 128,
"minItems": 0,
"type": "array"
},
"inputDigest": {
"maxLength": 71,
"type": "string"
},
"offerId": {
"enum": [
"citation-locator-conversion"
],
"type": "string"
},
"receiptDigest": {
"maxLength": 71,
"type": "string"
},
"result": {
"type": "object"
},
"version": {
"enum": [
"maha-microproducts/0.1"
],
"type": "string"
}
},
"required": [
"version",
"offerId",
"amountBaseUnits",
"inputDigest",
"result",
"boundaries",
"receiptDigest"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"amountBaseUnits": "24000",
"boundaries": [
"value"
],
"inputDigest": "string",
"offerId": "citation-locator-conversion",
"receiptDigest": "string",
"result": {},
"version": "maha-microproducts/0.1"
},
"type": "string"
}Examples
curl -X POST 'https://www.mahastrategies.com/api/v1/micro/citation-locator-conversion' -H 'Content-Type: application/json' --data '{"dataClass":"synthetic","locators":[{"end":7,"locatorId":"l1","sourceId":"s1","start":1,"unit":"utf8"}],"sources":[{"sourceId":"s1","text":"A😀éZ"}]}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://www.mahastrategies.com/api/v1/micro/citation-locator-conversion", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"dataClass\":\"synthetic\",\"locators\":[{\"end\":7,\"locatorId\":\"l1\",\"sourceId\":\"s1\",\"start\":1,\"unit\":\"utf8\"}],\"sources\":[{\"sourceId\":\"s1\",\"text\":\"A😀éZ\"}]}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://www.mahastrategies.com/api/v1/micro/citation-locator-conversion", json=json.loads("{\"dataClass\":\"synthetic\",\"locators\":[{\"end\":7,\"locatorId\":\"l1\",\"sourceId\":\"s1\",\"start\":1,\"unit\":\"utf8\"}],\"sources\":[{\"sourceId\":\"s1\",\"text\":\"A😀éZ\"}]}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- www.mahastrategies.com
- Endpoint
- https://www.mahastrategies.com/api/v1/micro/citation-locator-conversion
- Machine-readable
/resources/32086.json