NanoAPI · Solana Fee Recommendation

Calculate optimal Solana transaction fees based on compute units and writable accounts to ensure transaction inclusion without overpayment.

What it does

Calculate optimal Solana transaction fees based on compute units and writable accounts to ensure transaction inclusion without overpayment.

  • Estimate compute units and fees for Solana transactions before submission
  • Optimize transaction costs by calculating minimum viable fees
  • Determine priority fees for high-congestion periods on Solana

Ideal buyer

Solana developers, MEV searchers, and wallet applications that need real-time fee estimation for cost-efficient transaction submission.

Use with AXON

Run this through your governed agent wallet.

  1. 01
    Bootstrap AXON once with npx @axon402/init.
  2. 02
    Use the AXON runtime MCP tools to search_x402_services or inspect_x402_offer for this service.
  3. 03
    Quote, test-buy, then run the governed paid fetch through AXON.

Send this

Prompt for your agent

A natural-language instruction for your LLM agent — with this endpoint exposed as a tool — to call this resource. Not sent to the endpoint; the endpoint consumes the JSON body below.

Pasting this prompt into a raw ChatGPT or unconfigured agent will notexecute the paid endpoint flow. Run it through an agent with the AXON runtime / MCP tools exposed (see “Use with AXON” above) so the 402 challenge, quote, and governed fetch are handled for you.

Recommend the optimal fee for a Solana transaction with 200000 compute units and 3 writable accounts to ensure fast confirmation.

Endpoint request body

The JSON payload your agent sends to the endpoint.

application/json
{
  "accounts": [
    "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
    "9WzDXwBbmkgMZ27MtB1xvsy2qQEcRLXq6YF7Yd6sP2mN",
    "3n2C9Qf8vKpLmNoRt5XyZaBcDeFgHiJkL4M7N8PqRsTu"
  ],
  "computeUnits": 200000
}

Advanced HTTP details

For integrators who need the raw protocol surface. Most agents should use AXON above instead of calling these directly.

curl fallback

curl https://nanoapi.org/sol/fees/recommend \
  -H "Content-Type: application/json" \
  -H "X-PAYMENT: [signed_payment_envelope]" \
  -d '{"accounts":["7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU","9WzDXwBbmkgMZ27MtB1xvsy2qQEcRLXq6YF7Yd6sP2mN","3n2C9Qf8vKpLmNoRt5XyZaBcDeFgHiJkL4M7N8PqRsTu"],"computeUnits":200000}'

Payment & settlement details

Raw on-chain settlement parameters. AXON above handles these automatically through quote / test-buy / governed fetch.

baseexact
$0.0010
per call
Pay-to address0xc9d8b70e8d66838aed62919acee5cf3364d54f7d
T/O: 300s asset 0x8335…2913
solanaexact
$0.0010
per call
Pay-to addressEDA777JRvxbahjFS5x2wmXFR4VZiwTGU7dFA24Zpgp8Q
T/O: 300s asset EPjFWd…Dt1v

Price & network

Cheapest call$0.0010
Networks
basesolana

Trust & risk

Trust tier Indexed external
Pricing sanityCheap outlierratio 0.10×
Risk flagsNo risks flagged
View JSON bundle

Indexed from facilitator discovery data

Last enriched: