{"uid":"cap_x5124Xd3h-9HC_PUMgr8g","slug":"delx-evm-priority-fee-ratio-70dd0523","name":"Delx EVM Priority Fee Ratio","description":"EVM Priority Fee Ratio: EVM Priority Fee Ratio calculates the priority-fee share of the total fee cap from bounded caller-supplied values without an external provider. Call EVM Priority Fee Ratio before signing, submitting, replacing, or accepting an EVM/Base transaction assembled from caller-owned data. Returns normalized transaction evidence, calculated budget or shape findings, and a fail-closed preflight status for EVM Priority Fee Ratio as versioned deterministic JSON. Price: $0.001 USDC v…","url":"https://api.delx.ai/api/v1/x402/evm-priority-fee-ratio","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"max_fee_per_gas_wei":{"type":"string","maxLength":8192,"description":"Max Fee Per Gas Wei supplied to EVM Priority Fee Ratio; used only for this bounded calculation and processed in memory without retention."},"max_priority_fee_per_gas_wei":{"type":"string","maxLength":8192,"description":"Max Priority Fee Per Gas Wei supplied to EVM Priority Fee Ratio; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"ratio":0.05,"percent":5},"schema":"delx/util-evm-priority-fee-ratio/v1","status":"pass","evidence":{"retained":false,"input_sha256":"b04dce361f99458031086c658ad3571d192c3729ea28ea2ccad5d3960a15eaf2","external_calls":0},"operation":"evm_preflight:evm_priority_fee_ratio"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c6sbuT5c2BBffEEK95y1C","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the ratio of max priority fee per gas to max fee per gas for an EVM transaction, returning the proportion as a decimal and percentage.","exampleAgentPrompt":"Calculate the EVM priority fee ratio for a transaction where maxFeePerGas is 20000000000 wei and maxPriorityFeePerGas is 1000000000 wei — I want to see the ratio and what percent of the max fee the tip represents.","exampleUseCases":[{"title":"Pre-submission gas sanity check","prompt":"Before I submit this Ethereum transaction, can you check the priority fee ratio? My maxFeePerGas is 50000000000 wei and maxPriorityFeePerGas is 2500000000 wei — I want to confirm the tip is a reasonable proportion."},{"title":"DeFi bot fee calibration","prompt":"My trading bot just set maxFeePerGas to 100000000000 wei and maxPriorityFeePerGas to 10000000000 wei — what percentage of the max fee is going to the priority tip? I need to tune the ratio to stay competitive without overpaying."},{"title":"Gas fee analytics pipeline","prompt":"For each transaction in my batch, compute the EVM priority fee ratio: the first one has maxFeePerGas 30000000000 wei and maxPriorityFeePerGas 1500000000 wei — what's the ratio and percent?"}],"resultDescription":"Returns a JSON object containing the computed ratio (decimal) and percent (integer or float) of the priority fee relative to the max fee per gas, along with a status field ('pass'), the operation name, and an evidence block confirming no data retention and zero external calls.","failureModes":["Invalid or non-numeric wei string values causing computation errors","maxPriorityFeePerGas exceeding maxFeePerGas producing a ratio greater than 1","Missing required fields returning a validation error","Division by zero if maxFeePerGas is zero or empty"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, in-memory, zero-retention computation of the EVM priority fee ratio before submitting a transaction — especially in agent preflight workflows where you want to validate fee proportionality without any external state side effects. Prefer this over manual calculation when you need a structured, auditable result with an evidence block for compliance or logging.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:10:43.955Z","isFirstParty":false}