@moneytools-dev/agentkit-action-provider
v0.2.2
Published
Coinbase AgentKit action provider for MoneyTools: wallet risk card, token safety, token info, Transcripts speech-to-text, and Settle spend controls. Paid over x402 USDC on Base.
Readme
@moneytools-dev/agentkit-action-provider
Coinbase AgentKit action provider for MoneyTools. A standalone package with the same wallet-risk and token-safety actions as the upstream AgentKit PR, plus Transcripts (speech-to-text) and Settle (spend controls).
You can use it without waiting for the upstream PR to merge:
import { moneytoolsActionProvider } from "@moneytools-dev/agentkit-action-provider";
const agentkit = await AgentKit.from({
walletProvider,
actionProviders: [moneytoolsActionProvider({ maxPaymentUsdc: 0.02, maxUsdPerRequest: 0.5 })],
});Actions
| Action | What it returns | Price |
|---|---|---|
| wallet_risk_card | 0-100 risk score, A-F grade, OFAC SDN match, address checks, open ERC-20 approvals summary | 0.02 USDC |
| token_safety_check | USDC → token → USDC round-trip simulation plus owner / proxy / paused flags | free daily tier, then 0.005 USDC |
| token_contract_info | ERC-20 name, symbol, decimals, supply, owner, paused, upgradeable proxy | free daily tier, then 0.005 USDC |
| transcribe_audio_url | Speech-to-text for a public audio/video URL (up to 3 h) | 0.005 USDC / started minute |
| get_transcription | Job status/result as JSON, SRT, VTT or text | free |
| settle_spend_check | Allow/deny a planned x402 payment against this wallet's caps | 0.005 USDC |
| settle_set_spend_cap | Per-call / per-day caps and allowed hosts | 0.005 USDC |
| settle_verify_payment | Verify an x402 USDC payment on Base | 0.005 USDC |
| settle_spend_log | Recorded spend for the last N days | 0.005 USDC |
Safety reads work on base, ethereum, arbitrum, optimism, polygon, bsc and avalanche. Payments settle in USDC on Base.
Payment safety
- Wallet-risk and token-safety first make an unpaid request. Token checks use the free daily tier when available.
- Those calls sign an x402 payment only if the wallet is an EVM wallet on
base-mainnet, the quote is USDC on Base (eip155:8453), and the price is at or belowmaxPaymentUsdc(default 0.02). Otherwise they return the terms withpaymentRequired: true. maxUsdPerRequest(default 1.00) caps each Transcripts or Settle payment; quotes above it are refused before signing.
MIT License.
One line, no code: call MoneyTools with AgentCash
AgentCash (npx agentcash) pays from your own AgentCash wallet (USDC on Base, ~/.agentcash/wallet.json). No MoneyTools account. Failed calls are not charged.
# Wallet Risk Card, 0.02 USDC
npx agentcash fetch "https://tools.moneytools.dev/v1/wallet-risk?address=vitalik.eth&chain=base"
# Pay precheck before paying any x402 seller, 0.005 USDC (free daily tier first)
npx agentcash fetch "https://api.moneytools.dev/v1/precheck?url=https://example.com/paid&method=GET"
# See the price and input schema first, without paying
npx agentcash check "https://tools.moneytools.dev/v1/wallet-risk"