{"uid":"cap_ZYD1mvT4mO_Hy2lOyfagB","slug":"delx-commerce-evm-priority-fee-ratio-calculator-4ecc13a3","name":"Delx Commerce — EVM Priority Fee Ratio Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/evm-priority-fee-ratio?utm_source=zero.xyz","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_YPfyBhJ-kv1s-dggMZcfm","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 to max fee per gas for an EVM transaction, returning both a decimal ratio and percentage.","exampleAgentPrompt":"What's the priority fee ratio for an EVM transaction where maxFeePerGas is 20000000000 wei and maxPriorityFeePerGas is 1000000000 wei?","exampleUseCases":[{"title":"Pre-flight gas sanity check","prompt":"Before I send this Ethereum transaction, check the priority fee ratio — my maxFeePerGas is 50000000000 wei and maxPriorityFeePerGas is 2500000000 wei. Is the tip proportion reasonable?"},{"title":"Gas fee structure analysis","prompt":"I'm building a gas estimator and need to know the ratio of priority fee to total fee cap — max fee is 30000000000 wei, priority fee is 1500000000 wei. Give me the ratio and percentage."},{"title":"Transaction cost optimization","prompt":"Can you compute the priority fee percentage for my pending tx? The maxFeePerGas is 100000000000 wei and the maxPriorityFeePerGas is 5000000000 wei — I want to see if I'm over-tipping miners."}],"resultDescription":"Returns a JSON object containing the computed ratio (decimal) and percent (e.g. ratio: 0.05, percent: 5), along with a status field ('pass'), evidence object confirming no data retention and zero external calls, the input SHA256 hash for verifiability, and the operation identifier 'evm_preflight:evm_priority_fee_ratio'.","failureModes":["Invalid or non-numeric wei strings cause computation failure","Missing required fields (max_fee_per_gas_wei or max_priority_fee_per_gas_wei) return an error","Division by zero if max_fee_per_gas_wei is '0'","Strings exceeding 8192 characters are rejected","Payment failure via x402 if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, verifiable, pay-per-call computation of the EVM priority fee ratio without standing up your own arithmetic pipeline. Ideal for agent-driven transaction preflight checks where auditability (SHA256 input hash, no data retention guarantee) matters. Prefer over local computation when you need a tamper-evident record of the ratio calculation or when integrating into an x402 micropayment workflow on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:44.805Z","isFirstParty":false,"canonicalSlug":"delx-commerce-evm-priority-fee-ratio-calculator-4ecc13a3"}