{"uid":"cap_w6qa5DBrOJ86zc0mR28BM","slug":"strale-web3-pre-trade-security-check-97ac2433","name":"Strale Web3 Pre-Trade Security Check","description":"Everything a trading agent needs before placing a trade. Market price, token contract safety, protocol health, deployer wallet risk, market sentiment, and gas costs — all in one call.","url":"https://api.strale.io/x402/solutions/web3-pre-trade","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain_id":{"type":"string","description":"Chain ID, default 1"},"protocol":{"type":"string","description":"DeFi Llama protocol slug for TVL check"},"token_id":{"type":"string","description":"CoinGecko token ID or symbol (e.g., 'ethereum', 'bitcoin')"},"contract_address":{"type":"string","description":"Token contract address for security check"}}},"responseSchema":null,"example":{"request":{"chain_id":"1","protocol":"aave","token_id":"ethereum","contract_address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.1296,"settlement_id":"0x2f6df15abfb0b7ad5c8f5f45e05e086fa1c088e5260db8c0de16aa6cbc421303"},"solution":"web3-pre-trade","latency_ms":722,"step_count":6},"steps":{"crypto-price":{"id":"ethereum","name":"Ethereum","prices":{"eur":1448.5,"gbp":1249.59,"usd":1676.51},"symbol":"eth","ath_usd":4946.05,"ath_date":"2025-08-24T19:21:03.333Z","last_updated":"2026-06-12T04:47:07.269Z","total_supply":120684283.3954924,"market_cap_usd":202328158769,"market_cap_rank":2,"total_volume_usd":11356782703,"circulating_supply":120684283.3954924,"price_change_7d_percent":-3.12268,"price_change_24h_percent":1.29033,"price_change_30d_percent":-26.88952},"gas-price-check":{"chain_id":"1","base_fee_gwei":0.172282654,"fast_gas_gwei":0.189843362,"safe_gas_gwei":0.17250932,"gas_used_ratio":"0.514383316666667,0.53752685,0.522485,0.358766733333333,0.2530531","proposed_gas_gwei":0.172584875},"fear-greed-index":{"timestamp":"2026-06-12T00:00:00.000Z","current_value":12,"classification":"Extreme Fear"},"wallet-risk-score":{"address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","details":{"fake_kyc":false,"cybercrime":false,"blacklist_doubt":false,"financial_crime":false,"stealing_attack":false,"money_laundering":false,"phishing_activities":false,"blackmail_activities":false,"darkweb_transactions":false,"honeypot_related_address":false,"malicious_mining_activities":false},"chain_id":"1","risk_level":"low","risk_labels":[],"is_malicious":false},"protocol-tvl-lookup":{"url":"https://aave.com","name":"Aave","slug":"aave","audits":null,"chains":[],"github":["aave","aave-dao"],"symbol":"AAVE","tvl_usd":12282484367,"twitter":"aave","category":null,"chain_tvls":{"BSC":154634033,"Base":369024401,"Celo":4229763,"Aptos":1336207,"Linea":11176635,"Metis":289688,"Sonic":7704347,"pool2":608085,"Fantom":3522,"Gnosis":50462934,"Mantle":89497778,"Plasma":572627738,"Scroll":1677585,"Harmony":0,"MegaETH":93386634,"Polygon":122769220,"Soneium":155338,"X Layer":57715333,"Arbitrum":405890441,"Ethereum":10036725342,"Avalanche":260974248,"OP Mainnet":41254453,"ZKsync Era":948717},"audit_links":[],"description":"Aave is an Open Source and Non-Custodial protocol to earn interest on deposits and borrow assets","listed_since":null,"is_open_source":false,"tvl_change_1d_pct":null,"tvl_change_7d_pct":null},"token-security-check":{"buy_tax":"0","chain_id":"1","is_proxy":false,"sell_tax":"0","is_in_dex":true,"risk_level":"low","token_name":"Wrapped Ether","is_honeypot":false,"is_mintable":false,"hidden_owner":false,"holder_count":3608324,"token_symbol":"WETH","total_supply":"2613421.858371091106255719","is_anti_whale":false,"owner_address":null,"is_blacklisted":false,"is_open_source":true,"creator_address":"0x4f26ffbe5f04ed43630fdc30a87638d53d0b0876","contract_address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","can_take_back_ownership":false}},"solution":"web3-pre-trade"}},"exampleRequest":{"chain_id":"1","protocol":"aave","token_id":"ethereum","contract_address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"},"tags":["x402"],"displayCostAmount":"0.1296","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1296/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1296","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1296","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GjtVReFUzCX1PpCKbNHbE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1296","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs pre-trade due diligence on a crypto token by aggregating security analysis, TVL data, and market trust signals before executing a DeFi trade","exampleAgentPrompt":"Before I swap into AAVE on Ethereum mainnet (chain 1), run a pre-trade security check on it — use CoinGecko ID 'aave', contract address 0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9, and check the 'aave' protocol on DeFi Llama for TVL.","exampleUseCases":[{"title":"Validate meme coin before buying","prompt":"I'm thinking about buying into this new meme coin — contract address is 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum (chain 1). Can you run a full pre-trade safety check on it, including the contract risk, TVL, and any market trust signals, before I commit any funds?"},{"title":"Check DeFi protocol TVL and security","prompt":"Before I provide liquidity to Curve Finance, can you do a pre-trade due diligence check? Use CoinGecko ID 'curve-dao-token', contract address 0xD533a949740bb3306d119CC777fa900bA034cd52 on chain 1, and pull the 'curve' protocol data from DeFi Llama so I can see if it's safe and has enough TVL."},{"title":"Audit unfamiliar token before swapping","prompt":"I just got a tip on a token I've never heard of — contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum. Before I swap any ETH into it, run a security and trust check on it and tell me if there are any red flags in the contract or if the market signals look sketchy."}],"resultDescription":"Returns a structured JSON object with security assessment of the token including contract risk flags, TVL data from DeFi Llama, market trust signals from CoinGecko, and an audit trail — giving a pre-trade safety verdict before committing to a DeFi trade.","failureModes":["Invalid or unknown token_id returns 404 or empty data","Unrecognized contract_address may return no security scan results","DeFi Llama protocol slug mismatch causes TVL lookup to fail","Unsupported chain_id may result in incomplete contract analysis","Network timeouts from upstream data providers (CoinGecko, DeFi Llama)"],"whenToPreferThis":"Use this endpoint when an AI agent needs to perform pre-trade due diligence on a DeFi token or protocol — specifically when you need a bundled security + TVL + market trust check in one call with an audit trail, rather than querying CoinGecko, DeFi Llama, and a contract scanner separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:08:37.910Z","isFirstParty":false}