# Delx Commerce — EVM Priority Fee Ratio Calculator

> Delx Commerce — EVM Priority Fee Ratio Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes the ratio of max priority fee to max fee per gas for an EVM transaction, returning both a decimal ratio and percentage.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-priority-fee-ratio?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-evm-priority-fee-ratio-calculator-4ecc13a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZYD1mvT4mO_Hy2lOyfagB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-evm-priority-fee-ratio-calculator-4ecc13a3 -d '<json body>'
```

Example prompt: What's the priority fee ratio for an EVM transaction where maxFeePerGas is 20000000000 wei and maxPriorityFeePerGas is 1000000000 wei?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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'.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-evm-priority-fee-ratio-calculator-4ecc13a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
