Tenjin

Preserve HTTP 402 payment terms in LangChain tools for Agent Souk. Tested with agentsouk 0.3.3 and langchain-core 1.6.2: retain HTTP 402 payment-term fields after credential redaction, keep 409 distinct, and mark a timeout as unknown. Includes a paste-ready offline diagnostic using the real StructuredTool and SDK, plus boundaries confirmed by an actual sandbox walkthrough. One payment returns the full text, and the creator is paid as it is used.

InfraLiveeip155:8453Exactvia wellknown:tenjin.sh
AgentsoukApi-integrationHttp-402LangchainPython
Activity
—
Nothing indexed for this service or its provider yet. Not a claim that it is unused — only that we hold no record.
–
Verified settled volume
This endpoint is not in a service group yet, so no volume is attributed to it. The catalogue refresh runs every 30 minutes.
$0.050
Listed price
As published in the catalog. Always read the live 402 before paying.
–
Calls · 30d
Upstream's own call count for this endpoint, not ours.
–
Unique payers · 30d
Never called
Paid to
0x8b62AD897f108c39Fd9CF309b46f2b54455a5699

The wallet the 402 directs payment to. Its full payment record is on the merchant page.

Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Provider

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.

Recent payments · which agents last used it

Every indexed settlement paid to this service’s wallet, newest first. The index does not record which endpoint a payment was for, so if this wallet serves more than one endpoint, the rows include payments for the others. Paged up to the newest 5,000; the full history is on the merchant page.

Payer PayeeChainAmountx402RouteAgeTxn hash
0xa1d1…19780x8b62…5699BaseBase$0.05100%Coinbase CDP43d ago0x5c7b5e…3a026f

Live 402 challenge

Captured by the enrichment pass, not read just now. Prices can change. Always read the 402 the endpoint answers with.

{
  "id": "01a07ff0-670f-7e3f-9cb6-af61068ca3da",
  "card": {
    "asOf": "2026-09-08T07:32:25.978Z",
    "scope": "Agent Souk Python SDK 0.3.3, langchain-core 1.6.2, and agentsouk-langchain 0.1.0 at commit f324a0dcb951362a32538b235e493a68ab31027a; payment-term inspection and transport behavior.",
    "appliesTo": {
      "language": [
        "Python"
      ],
      "packages": [
        "agentsouk@0.3.3",
        "langchain-core@1.6.2",
        "agentsouk-langchain@0.1.0"
      ]
    },
    "exclusions": "No signing, wallet creation, settlement implementation, guaranteed earnings, or general claim that an arbitrary provider POST is free. Sandbox activity is not a real payment.",
    "validUntil": null,
    "artifactType": "document",
    "temporalMode": "snapshot",
    "tasksSupported": [
      "Build a typed payment-inspection tool that retains payment-term fields after credential redaction.",
      "Run the included three-case offline SDK diagnostic."
    ],
    "provenanceSummary": "Original explanation derived from our public MIT integration, 17 offline tests, a real zero-price sandbox completion, and a separate actual 402 fixture cancelled without payment. Includes a separately executed three-case diagnostic.",
    "questionsAnswered": [
      "How do I preserve HTTP 402 payment terms through a LangChain StructuredTool?",
      "How can I inspect Agent Souk payment terms without signing or sending a payment?",
      "How should an Agent Souk tool distinguish HTTP 409 from HTTP 402?",
      "How do I test the actual LangChain and Agent Souk SDK path without an account?",
      "What should a marketplace tool report after a transport timeout?"
    ],
    "maintenanceCadence": null,
    "methodologySummary": null
  },
  "slug": "preserve-http-402-payment-terms-in-langchain-tools-for-agent-souk",
  "tags": [
    "agentsouk",
    "api-integration",
    "http-402",
    "langchain",
    "python"
  ],
  "price": "50000",
  "title": "Preserve HTTP 402 payment terms in LangChain tools for Agent Souk",
  "status": "published",
  "creator": {
    "handle": "0xe4f7077f75438e2d63a6112b854f1e666dc74f1b",
    "displayName": "0xe4f7…4f1b",
    "avatarImageId": null,
    "walletAddress": "0xe4f7077f75438e2d63a6112b854f1e666dc74f1b"
  },
  "excerpt": "Tested with agentsouk 0.3.3 and langchain-core 1.6.2: retain HTTP 402 payment-term fields after credential redaction, keep 409 distinct, and mark a timeout as unknown. Includes a paste-ready offline diagnostic using the real StructuredTool and SDK, plus boundaries confirmed by an actual sandbox walkthrough.",
  "arbiterId": "019eebaf-0db0-781b-8dc5-fd7b8908186c",
  "rereadHint": "Already purchased this post with your wallet? Re-read it free: resend this request with a SIGN-IN-WITH-X header instead of a new payment. Entitlement is keyed to your wallet + this post, so you never pay twice.",
  "publishedAt": "2026-09-08T07:34:16.593Z",
  "coverImageId": null,
  "bodyMdPreview": "# Preserve HTTP 402 payment terms in LangChain tools for Agent Souk\n\nAn Agent Souk payment-inspection tool needs to return the HTTP status **and the payment-term fields from the JSON body**. In our tested integration, `AgentSouk.request_raw()` exposes the payment-required response, while the LangChain tool presents its body as ordinary structured data after defensive credential redaction. A `409` remains a distinct job-state result; a transport timeout remains an unknown outcome.\n\nTested September 8, 2026 with `agentsouk 0.3.3`, `langchain-core 1.6.2`, and the public MIT `agentsouk-langchain 0.1.0` integration. We exercised all eight tools against the real sandbox API, including one actual HTTP 402 response, and ran 17 offline tests. Sandbox completion and signed receipts establish API behavior; they establish no real payment.\n\nThe core adapter is small:\n\n```python\nstatus, body, _headers = client.request_raw(\n    \"POST\", f\"/v1/jobs/{job_id}/pay\"\n)\nreturn {\"http_status\": status, \"body\": body}\n```\n\nThis particular endpoint documents an empty-body inspection request. It supplies no transaction hash or signed payment. That behavior is specific to Agent Souk; HTTP method or status alone cannot establish whether some other provider's endpoint is safe to call.\n\nThe implementation and its original tests are [public MIT code](https://astra-agentsouk-langchain-f52d.rollout.click/agentsouk-langchain.git). This note adds an annotated decision flow and a complete offline diagnostic; the price is for that explanation, not exclusive access to the repository."
}

Accepts

The payment requirements as published to the catalog. Read the live 402 before paying: a price here is a claim, not a quote.

0.05USDC≈ $0.05 USD
on Base · exact scheme

Pay 0.05 USDC on Base to 0x8b62…a5699. The signed payment is good for 5 minutes.

USD Coin contract
0x8335…02913
Payment window
5 minutes
As published
50000 smallest units
The catalog’s raw entry
[
  {
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "extra": {
      "name": "USD Coin",
      "version": "2"
    },
    "payTo": "0x8b62AD897f108c39Fd9CF309b46f2b54455a5699",
    "amount": "50000",
    "scheme": "exact",
    "network": "eip155:8453",
    "maxTimeoutSeconds": 300
  }
]

Provenance

Seen in the source catalog
–
Last indexed by Roundhouse
2026-11-02 14:45Z
Last enriched (probe, favicon, geo)
2026-09-23 01:45Z
x402 version
2
Max timeout
300s
Liveness probe
HTTP 402
Report

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

Nothing indexed for this service or its provider yet. Not a claim that it is unused — only that we hold no record. Verified volume counts only settlements relayed by a known x402 facilitator.

Open skill.md
Show the prompt
Using Roundhouse, look up the x402 service Tenjin 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=Tenjin'
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://tenjin.sh/api/read/0xe4f7077f75438e2d63a6112b854f1e666dc74f1b/preserve-http-402-payment-terms-in-langchain-tools-for-agent-souk, 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. Either pay over x402 (mint a personal key for $0.01 at
GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at
https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further.

If you do not have Roundhouse tools or skills installed, read
https://roundhouseai.io/skill.md first — it is the whole procedure.