# Solana Priority Fee Calculator

> Solana Priority Fee Calculator is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Calculates the priority fee in lamports for a Solana transaction given compute unit limit and price inputs, without making live network calls.

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/solana_priority_fee_calculate/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solana-priority-fee-calculator-23016a8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2OfRHkwjnHQ0u_FAFDDcY

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 solana-priority-fee-calculator-23016a8a -d '<json body>'
```

Example prompt: Calculate the Solana priority fee for a transaction with a compute unit limit of 200,000 and a compute unit price of 1,000 micro-lamports — I need to know the total fee in lamports before I submit.

## When to prefer this

Use this endpoint when you need a fast, deterministic, offline calculation of a Solana priority fee from known compute unit parameters — ideal for pre-flight fee budgeting, transaction cost validation, or bot pipelines where you supply the CU limit and price yourself. Prefer it over live fee estimation APIs when you already know your CU parameters and want a reliable ceiling-rounded lamport value without network latency.

## Known failure modes

- Malformed or invalid request_json input returns an error
- Missing required compute unit fields causes calculation failure
- Values outside acceptable numeric ranges may produce warnings or errors
- Service does not fetch live network data so results may not reflect current competitive fee conditions

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON analysis containing the compute unit limit, compute unit price in micro-lamports, the calculated priority fee in lamports (rounded up to ceiling), the rounding method used, the analyzed network (solana), and any warnings such as the fact that this is a deterministic calculation and does not reflect live competitive CU pricing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request_json": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Does not estimate a live competitive CU price."
   ],
   "service_id": "solana_priority_fee_calculate",
   "analysis_json": "{\"compute_unit_limit\":\"200000\",\"compute_unit_price_micro_lamports\":\"1000\",\"priority_fee_lamports\":\"200\",\"rounding\":\"ceiling\"}",
   "evidence_scope": "caller_supplied_data",
   "analyzed_network": "solana"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "solana_priority_fee_calculate",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "3b3dc94ff3dc0f0026934cb71c3285a2626aa3aa865c6e7aba495ba8efacf98a",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solana-priority-fee-calculator-23016a8a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
