langchain-revettr
LangChain tools for Revettr counterparty risk scoring. Score wallets, domains, IPs, and companies 0-100 before sending payments in agentic commerce.
Install
pip install langchain-revettr
# With x402 auto-payment:
pip install langchain-revettr[x402]
Tools
ScoreCounterpartyTool
Score any counterparty 0-100 with per-signal breakdown.
from langchain_revettr import ScoreCounterpartyTool
tool = ScoreCounterpartyTool(wallet_private_key="0x...") # Optional: for x402 payment
result = tool.invoke({"domain": "uniswap.org"})
print(result)
# Score: 92/100 (tier: low, confidence: 0.75)
# Flags: none
# Signals checked: 3
ShouldPayTool
Get a clear YES/NO/WARN decision before sending payment.
from langchain_revettr import ShouldPayTool
tool = ShouldPayTool(wallet_private_key="0x...")
result = tool.invoke({"url": "https://some-api.com", "min_score": 60})
print(result)
# Decision: YES
# Counterparty scored 92/100 (low risk) — safe to proceed.
With a LangChain Agent
from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_revettr import ScoreCounterpartyTool, ShouldPayTool
tools = [ScoreCounterpartyTool(), ShouldPayTool()]
llm = ChatOpenAI(model="gpt-4")
agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools)
result = executor.invoke({"input": "Should I pay the service at sketchy-crypto.xyz?"})
Pricing
$0.01 USDC per score via x402 on Base. No API keys needed.
Links
- Revettr API
- revettr SDK
- MCP Server — works with Claude Desktop, Cursor, CrewAI
Release files for langchain-revettr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langchain_revettr-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_revettr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / langchain_revettr-0.1.0.tar.gz
| Download URL | langchain_revettr-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca16a7fa46f05cc966c378e9ec0d80eb3f504fb05ee0d2c18da202dbd3824bbe
|
|
BLAKE2b-256 checksum How to use checksums |
658ae2774dc16d996821cd9155ddb3c6a77d3cd42713d29976d4eacebc0a61b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Release files / langchain_revettr-0.1.0-py3-none-any.whl
| Download URL | langchain_revettr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
146bcd083d283de3fce5dbf502c18ce30fc668ec3e7da3eedb720b848fbe1292
|
|
BLAKE2b-256 checksum How to use checksums |
fbc0cffe68b555f1dd25c2496e54b0b2809c82445ca07d702b313e6b49a9e0c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|