Text Diff
Compare two texts with a Myers diff over lines, words, or characters. Returns structured edit operations, a standard unified diff (line mode), and similarity statistics. Built for agents tracking document revisions, verifying edits, or reviewing generated changes. POST a JSON body like: {"a":"line one\nline two\n","b":"line one\nline 2\n","mode":"lines"}
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"error": "PAYMENT-SIGNATURE header is required",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
"amount": "2000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 60
}
],
"resource": {
"url": "https://keyronne.com/api/diff-text",
"tags": [
"diff",
"compare",
"patch",
"versions",
"unified-diff"
],
"mimeType": "application/json",
"description": "Compare two texts with a Myers diff over lines, words, or characters. Returns structured edit operations, a standard unified diff (line mode), and similarity statistics. Built for agents tracking document revisions, verifying edits, or reviewing generated changes. POST a JSON body like: {\"a\":\"line one\\nline two\\n\",\"b\":\"line one\\nline 2\\n\",\"mode\":\"lines\"}",
"serviceName": "Text Diff"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"body": {
"a": "line one\nline two\n",
"b": "line one\nline 2\n",
"mode": "lines"
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"ops": [
{
"op": "equal",
"text": "line one\n"
},
{
"op": "delete",
"text": "line two\n"
},
{
"op": "insert",
"text": "line 2\n"
}
],
"mode": "lines",
"stats": {
"added": 1,
"removed": 1,
"unchanged": 1,
"similarity": 0.5
},
"unified": "--- a\n+++ b\n@@ -1,2 +1,2 @@\n line one\n-line two\n+line 2\n",
"identical": false
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"a",
"b"
],
"properties": {
"a": {
"type": "string",
"description": "Original text (up to 300k characters)."
},
"b": {
"type": "string",
"description": "Modified text (up to 300k characters)."
},
"mode": {
"enum": [
"lines",
"words",
"chars"
],
"type": "string",
"default": "lines"
},
"context": {
"type": "integer",
"default": 3,
"maximum": 20,
"minimum": 0
}
}
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"ops": {
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"enum": [
"equal",
"delete",
"insert"
],
"type": "string"
},
"text": {
"type": "string"
}
}
}
},
"mode": {
"type": "string"
},
"stats": {
"type": "object",
"properties": {
"added": {
"type": "integer"
},
"removed": {
"type": "integer"
},
"unchanged": {
"type": "integer"
},
"similarity": {
"type": "number"
}
}
},
"unified": {
"type": "string",
"description": "Unified diff (line mode only)."
},
"identical": {
"type": "boolean"
}
}
}
}
}
}
},
"x402Version": 2
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.002 USDC on Base to 0xB86F…78fC4. The signed payment is good for 1 minute.
- Paid to
- 0xB86F…78fC4
- USD Coin contract
- 0x8335…02913
- Payment window
- 1 minute
- As published
- 2000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xB86F95EF5FA904318Ea9Df3b59AdCe099b478fC4",
"amount": "2000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 60
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"a": "line one\nline two\n",
"b": "line one\nline 2\n",
"mode": "lines"
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"ops": [
{
"op": "equal",
"text": "line one\n"
},
{
"op": "delete",
"text": "line two\n"
},
{
"op": "insert",
"text": "line 2\n"
}
],
"mode": "lines",
"stats": {
"added": 1,
"removed": 1,
"unchanged": 1,
"similarity": 0.5
},
"unified": "--- a\n+++ b\n@@ -1,2 +1,2 @@\n line one\n-line two\n+line 2\n",
"identical": false
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"properties": {
"body": {
"type": "object",
"required": [
"a",
"b"
],
"properties": {
"a": {
"type": "string",
"description": "Original text (up to 300k characters)."
},
"b": {
"type": "string",
"description": "Modified text (up to 300k characters)."
},
"mode": {
"enum": [
"lines",
"words",
"chars"
],
"type": "string",
"default": "lines"
},
"context": {
"type": "integer",
"default": 3,
"maximum": 20,
"minimum": 0
}
}
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"bodyType": {
"enum": [
"json"
],
"type": "string"
}
}
},
"output": {
"type": "object",
"properties": {
"ops": {
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"enum": [
"equal",
"delete",
"insert"
],
"type": "string"
},
"text": {
"type": "string"
}
}
}
},
"mode": {
"type": "string"
},
"stats": {
"type": "object",
"properties": {
"added": {
"type": "integer"
},
"removed": {
"type": "integer"
},
"unchanged": {
"type": "integer"
},
"similarity": {
"type": "number"
}
}
},
"unified": {
"type": "string",
"description": "Unified diff (line mode only)."
},
"identical": {
"type": "boolean"
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-07-20 01:46Z
- Last indexed by Roundhouse
- 2026-08-10 08:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-14 00:15Z
- x402 version
- 2
- Max timeout
- 60s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
No per-endpoint history for this service yet, so this is payments indexed to its PROVIDER's wallet over 30 days. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service Text Diff and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Text%20Diff' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://keyronne.com/api/diff-text, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402, or use an organization key from https://roundhouseai.io/dashboard/team. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.