Tipwise

Developer documentation

Price a tip from live landing data, send through Solami Beam, and get a receipt for every transaction. Plain HTTP and JSON.

Contents

Overview

Base URLhttps://api.tipwise.tech
  • JSON over HTTPS. POST bodies are JSON with content-type application/json, up to 256 KB.
  • Public endpoints need no key; Tipwise's own Solami key never leaves the server.
  • Amounts are integers in lamports unless the field name ends in Sol or Usd. Fields ending in At are epoch milliseconds; ms and deadlineMs are durations in milliseconds; blockTime, periodFrom and periodTo are epoch seconds. Slots are Solana slot numbers.
  • Browsers can call the API from origins the operator allows (ALLOWED_ORIGINS; every origin when unset).
  • There is no pagination: list endpoints return bounded lists.

Quick start

Replace a hardcoded tip with a live fare. The SDK is a single file, src/sdk.ts in the repository, whose only dependency is @solana/web3.js. It is not published to npm, so copy it into your project.

  1. Fetch a fare

    GET /fares, or GET /quote for your own deadline and confidence.

  2. Get a blockhash and a tip address

    GET /blockhash and GET /tips/addresses (the SDK's tipInstruction does the second).

  3. Build the transaction

    Your instructions, the fare's priority fee and a transfer of the fare's tip to a Beam tip address.

  4. Sign it

    With your own key or wallet. Tipwise never sees a private key.

  5. Submit it

    POST /send with the base64 transaction and, optionally, the fare.

  6. Read the receipt

    Poll GET /receipt/:signature until settled, or follow lifecycle events.

TypeScript
import { ComputeBudgetProgram, Keypair, TransactionMessage, VersionedTransaction, type TransactionInstruction } from "@solana/web3.js";
import { createTipwise } from "./sdk"; // a copy of src/sdk.ts from the Tipwise repository

const BASE = "https://api.tipwise.tech";
const tipwise = createTipwise(BASE);

// Yours: the signer and the instructions your transaction already makes.
declare const wallet: Keypair;
declare const yourInstructions: TransactionInstruction[];

// 1. Fetch a fare.
const fare = (await tipwise.fares()).find((f) => f.id === "standard")!;

// 2. A recent blockhash from Tipwise, and a tip transfer to a random Beam tip address.
const { blockhash } = await (await fetch(`${BASE}/blockhash`)).json();
const tip = await tipwise.tipInstruction(wallet.publicKey, fare.tipLamports);

// 3. Build the transaction with the fare's priority fee and tip.
const message = new TransactionMessage({
  payerKey: wallet.publicKey,
  recentBlockhash: blockhash,
  instructions: [
    ComputeBudgetProgram.setComputeUnitLimit({ units: 200_000 }), // size this for your instructions
    ComputeBudgetProgram.setComputeUnitPrice({ microLamports: fare.priorityFeeMicroLamports }),
    ...yourInstructions,
    tip,
  ],
}).compileToV0Message();

// 4. Sign it yourself (or with a wallet adapter's signTransaction).
const tx = new VersionedTransaction(message);
tx.sign([wallet]);

// 5. Submit. "standard" is recorded on the receipt; it does not change the transaction.
const signature = await tipwise.send(tx, "standard");

// 6. Wait for the settled receipt.
const receipt = await tipwise.waitForReceipt(signature);
console.log(receipt.explanation?.title, receipt.explanation?.whatToDo);

Live console

Send a read-only request to the API this site uses and see the real response.

GET https://api.tipwise.tech/fares

Read only. Requests go to https://api.tipwise.tech only when you press Run.

Response
Press Run to see the live response.

Concepts and units

Lamports, SOL and dollars
1 SOL is 1,000,000,000 lamports. Tips and fees are integers in lamports. Dollar fields use the SOL price Tipwise reads from Solami's Data API every minute and are null when it is unavailable.
Slots and seconds
Deadlines are counted in slots (blocks). Seconds such as deadlineMs use slotMs, the slot time Tipwise measures from the live stream (about 206 ms since Alpenglow); real slot times vary, so treat them as approximate.
Priority fee
A compute unit price in micro-lamports per compute unit. It costs price times your compute unit limit divided by 1,000,000 lamports. Tipwise suggests p75 of recent prioritization fees, the same for every fare.
Tip, fee and total cost
The tip is a System transfer to a Beam tip address, at least 100,000 lamports (0.0001 SOL), which Beam requires. On top come the base fee of 5,000 lamports per signature and the priority fee. Total cost is tip plus base fee plus priority fee.
Target confidence and estimated probability
confidence is the chance a fare's estimate is judged against. probability is Tipwise's estimate for the tip actually returned, from real test trips. meetsConfidence is true when the estimate reaches the target. For fares the target does not choose the price; for GET /quote it does.
Estimates and calibration
Each percentile range of tips Beam accepts gets an estimate from its test trips: (landed + 1) / (trips + 2), fitted so a bigger tip never shows a lower chance. Ten trips that all land give about 0.917, an estimate from ten observations, not a measured long-run rate. A range with fewer than 10 trips borrows the estimate below it (basis inherited) or uses a starting prior (basis prior). calibrated means every reachable range has 10 trips. Probes stop once calibrated, so estimates can age; newestSlot says how old the newest trip is.
How fares are priced
Prices come from where landed tips sit today; chances come from Tipwise's test trips. Saver pays the 25th percentile of landed tips, Standard the median, Express the 75th percentile. A pricier fare that would collide with the one below is raised to at least 1.25 times it (stepApplied). Fares share a price only at the tip ceiling (ceilingLimited).
A fare is not a route
Every transaction goes through Solami Beam with the same priority fee; fares differ only by tip. A higher tip buys position when blocks get crowded, but it does not guarantee an earlier block, and the estimates say whether our test trips have measured a gain. A fare label only records a target on the receipt.
Fares and custom quotes differ
GET /fares prices at fixed percentiles of the current window and reports the estimate for that tip. GET /quote returns the cheapest tip whose estimate meets your target, projected forward by its deadline. The same deadline and confidence usually return a lower tip from GET /quote.

Fares and custom quotes

A fare is a target: a deadline in slots and the chance Tipwise aims for. GET /fares prices the three fixed fares the site shows. GET /quote prices any deadline and confidence you choose.

The two price differently. Fares are market prices: fixed percentiles of today's landed tips, with the estimated chance reported for the tip that results. A custom quote works the other way round: it returns the cheapest tip whose estimated chance meets your target, projected forward by its own deadline. So GET /quote?deadline=4&confidence=0.9 usually returns a lower tip than the Standard fare even though the targets match.

GET/fares#

Live fares

Saver, Standard and Express, priced from where landed tips sit today: the 25th, 50th and 75th percentile of landed tips at or above the Beam minimum over the last 600 slots. Chances come from Tipwise's test trips.

Each price is floored at the Beam minimum and capped at the tip ceiling. Fares are strictly ordered: if a pricier fare would not sit above the one below (for example when both land on the Beam minimum), it is raised to at least 1.25 times that fare and stepApplied is true. Each tip is the median of its last five readings (one every 2 s), rounded to two significant figures and held until the median moves more than 5%. Two fares share a price only at the ceiling, and then ceilingLimited is true.

probability is the estimate for the percentile range the final tip falls in, at the fare's own deadline; meetsConfidence compares it to the fare's target. The target no longer chooses the price. A higher tip buys position when blocks get crowded, but nothing here guarantees an earlier block.

Request

curl
curl https://api.tipwise.tech/fares

Example response

Illustrative, not a live response.

JSON example
{
  "fares": [
    {
      "id": "saver",
      "label": "Saver",
      "deadlineSlots": 10,
      "deadlineMs": 2060,
      "confidence": 0.8,
      "tipLamports": 130000,
      "tipSol": 0.00013,
      "tipUsd": 0.0146,
      "priorityFeeMicroLamports": 0,
      "probability": 0.917,
      "meetsConfidence": true,
      "bucket": {
        "lo": 0,
        "hi": 25
      },
      "estimate": {
        "basis": "measured",
        "samples": 10,
        "landed": 10,
        "newestSlot": 455799012
      },
      "ceilingLimited": false,
      "tipPercentile": 25,
      "stepApplied": false,
      "probabilityAtCheaperTip": null
    },
    {
      "id": "standard",
      "label": "Standard",
      "deadlineSlots": 4,
      "deadlineMs": 824,
      "confidence": 0.9,
      "tipLamports": 300000,
      "tipSol": 0.0003,
      "tipUsd": 0.0336,
      "priorityFeeMicroLamports": 0,
      "probability": 0.917,
      "meetsConfidence": true,
      "bucket": {
        "lo": 25,
        "hi": 50
      },
      "estimate": {
        "basis": "measured",
        "samples": 10,
        "landed": 10,
        "newestSlot": 455799012
      },
      "ceilingLimited": false,
      "tipPercentile": 50,
      "stepApplied": false,
      "probabilityAtCheaperTip": 0.917
    },
    {
      "id": "express",
      "label": "Express",
      "deadlineSlots": 2,
      "deadlineMs": 412,
      "confidence": 0.85,
      "tipLamports": 700000,
      "tipSol": 0.0007,
      "tipUsd": 0.0784,
      "priorityFeeMicroLamports": 0,
      "probability": 0.896,
      "meetsConfidence": true,
      "bucket": {
        "lo": 50,
        "hi": 75
      },
      "estimate": {
        "basis": "measured",
        "samples": 10,
        "landed": 10,
        "newestSlot": 455799012
      },
      "ceilingLimited": false,
      "tipPercentile": 75,
      "stepApplied": false,
      "probabilityAtCheaperTip": 0.896
    }
  ],
  "pricing": "market-percentile",
  "calibrated": true,
  "progress": {
    "done": 40,
    "needed": 40
  },
  "samples": 1486,
  "solPriceUsd": 112.07,
  "forecastHorizonSlots": 0,
  "tipCeilingLamports": 1000000,
  "slotMs": 206,
  "slotMsSource": "measured",
  "mood": {
    "mood": "busy",
    "ratio": 1.2
  },
  "updatedAt": 1791803636973
}

Fields

fares[].deadlineSlots, deadlineMs
The target deadline. deadlineMs is deadlineSlots times slotMs, an approximate time, not a measured arrival time.
fares[].confidence
The target chance the fare aims for (0 to 1).
fares[].tipLamports, tipSol, tipUsd
The recommended tip. tipUsd is null when the SOL price is unavailable.
fares[].priorityFeeMicroLamports
Compute unit price in micro-lamports per compute unit: p75 of recent prioritization fees, the same for every fare.
fares[].probability
Estimated chance that a transaction with this tip lands within deadlineSlots, from test trips in the tip's range.
fares[].meetsConfidence
true when probability is at least confidence. false means the estimate for this price falls short of the target; the price itself still follows the market.
fares[].bucket, estimate
Which percentile range of tips the final tip sits in, and where its estimate comes from: basis measured, inherited or prior, with samples, landed and the newest probe's slot.
fares[].tipPercentile
Optional. The percentile of landed tips the fare is priced at: 25, 50 or 75.
fares[].stepApplied
Optional. true when the fare was raised to at least 1.25 times the fare below because the two would otherwise collide.
fares[].ceilingLimited
true when the tip ceiling held the price below where the market percentile or the step put it.
fares[].probabilityAtCheaperTip
Optional. The estimate for the next cheaper fare's tip at this fare's deadline: compare it with probability to see what paying more is measured to add. null for Saver.
pricing
Optional. "market-percentile" on servers that price fares this way. Absent on older servers, which priced each fare at the cheapest range meeting its target.
slotMs, slotMsSource
Optional. Average slot time in ms over the last 600 processed slots from the gRPC stream (about 206 ms since Alpenglow), with slotMsSource "measured"; before 100 slots are seen it is the 200 ms default and slotMsSource is "default". Older servers sent a fixed 400 and no slotMsSource.
warmingUp
Optional. true while fewer than 150 complete slots (about half a minute) sit in the 600 slot window, after a restart or a stream gap that could not be replayed; fares then repeat the last good prices.
coverage
Optional. Complete slots over the window's slots (leader-skipped slots left out), 0 to 1. Slots missed by a reconnect or partly shed by the stream queue are left out of prices.
calibrated, progress
Whether every reachable range has 10 test trips, and how many of the needed trips are done.
samples
Landed tips at or above the Beam minimum in the 600 slot window the prices come from.
mood
Median tip of the last 50 slots against the window median. Context only; it does not change the estimates.

Errors

StatusWhen
500The priority fee lookup on Solami RPC failed.
GET/quote#

Custom quote

A tip for any deadline and confidence, with the estimate for every percentile range so you can see what a higher tip would or would not buy.

Unlike GET /fares, a quote is the cheapest range whose estimated chance meets your target. If none does, it is the cheapest tip with the best estimate and meetsConfidence is false.

Parameters

NameInTypeRequiredDefaultDetails
deadlinequeryinteger, slotsno21 to 32. Decimals are rounded.
confidencequerynumberno0.90.01 to 0.999. With 10 test trips per range the estimate tops out at 11/12 (about 0.917), so higher targets come back with meetsConfidence false.

Request

curl
curl "https://api.tipwise.tech/quote?deadline=4&confidence=0.9"

Example response

Illustrative, not a live response.

JSON example
{
  "deadlineSlots": 4,
  "confidence": 0.9,
  "tipLamports": 103492,
  "tipSol": 0.000103492,
  "priorityFeeMicroLamports": 0,
  "probability": 0.917,
  "meetsConfidence": true,
  "calibrated": true,
  "bucket": {
    "lo": 0,
    "hi": 25
  },
  "estimate": {
    "basis": "measured",
    "samples": 10,
    "landed": 10,
    "newestSlot": 455799012
  },
  "ceilingLimited": false,
  "buckets": [
    {
      "lo": 0,
      "hi": 25,
      "p": 0.917,
      "n": 10,
      "basis": "measured",
      "status": "reachable"
    },
    {
      "lo": 25,
      "hi": 50,
      "p": 0.917,
      "n": 10,
      "basis": "measured",
      "status": "reachable"
    },
    {
      "lo": 50,
      "hi": 75,
      "p": 0.917,
      "n": 10,
      "basis": "measured",
      "status": "reachable"
    },
    {
      "lo": 75,
      "hi": 90,
      "p": 0.917,
      "n": 10,
      "basis": "measured",
      "status": "reachable"
    },
    {
      "lo": 90,
      "hi": 100,
      "p": 0.917,
      "n": 0,
      "basis": "inherited",
      "status": "above tip ceiling"
    }
  ],
  "tipCeilingLamports": 1000000,
  "forecastHorizonSlots": 4,
  "distribution": {
    "source": "combined",
    "samples": 1486,
    "beamFloorPercentile": 88.1
  },
  "heatMultiplier": 1
}

Fields

buckets[]
Every percentile range of tips Beam accepts, with its estimate p, test trips n, basis, and whether a tip at or below the ceiling can reach it.
forecastHorizonSlots
Equal to deadline for custom quotes.
warmingUp, coverage
Optional. As on GET /fares: whether the window holds enough complete slots to trust, and the share that is complete. A quote is always computed from the complete slots it has.
distribution
Which landed tips the percentiles come from (Beam tips alone once there are 200, otherwise all tips at or above the Beam minimum) and where the Beam minimum sits among all landed tips.
heatMultiplier
1 unless the market activity lag test qualifies, in which case the price is scaled by 0.8 to 2.

Errors

StatusWhen
400deadline or confidence is outside its range.
500The priority fee lookup failed.

Transactions and receipts

Tipwise never signs for you. You build and sign the transaction, including the tip transfer and the priority fee, and POST /send forwards it through Solami Beam. Then Tipwise follows it to finalized and keeps a receipt.

GET/tips/addresses#

Tip addresses

Beam tip addresses (from Solami) and the Jito tip accounts. Your tip must be a System transfer to one of the beam addresses; picking one at random spreads load.

Request

curl
curl https://api.tipwise.tech/tips/addresses

Example response

Illustrative, not a live response. Trimmed: the live response lists every Beam address and all 8 Jito accounts.

JSON example
{
  "beam": [
    "15qWd4huAkoxvhDsHMfpUn27TW1YBYMMJJ2jkAkbeam",
    "uiuaQsxA47JybQAVN4FTfYuoEDkMiXV1r591Aewbeam"
  ],
  "jito": [
    "96gYZGLnJYVFmbjzopPSU6QiEV5fGqZNyN9nmNhvrZU5"
  ]
}
GET/blockhash#

Recent blockhash

The blockhash of the newest confirmed block on Tipwise's stream, or getLatestBlockhash from Solami RPC before the stream has one. Browsers need no RPC key.

Use it for transactions you send through Tipwise: Tipwise can only tell that a transaction expired if it saw the block that produced its blockhash.

Request

curl
curl https://api.tipwise.tech/blockhash

Example response

Illustrative, not a live response.

JSON example
{
  "blockhash": "5yypruMafnJW123xMKHprdw5brVcTKLm295Su4pbajGy",
  "lastValidBlockHeight": 434063488
}

Errors

StatusWhen
500No streamed blockhash yet and the RPC fallback failed.
POST/send#

Send a signed transaction

Forwards an already signed transaction through Solami Beam (sendTransaction with skipPreflight and no retries) and starts tracking it.

Tipwise does not add a tip, change the fee or rewrite the transaction. The fare label is only recorded on the receipt, with that fare's current estimate, so the receipt can say whether the target was met. Tipwise does not check that your tip matches the fare.

Parameters

NameInTypeRequiredDefaultDetails
txbodystring, base64yesA signed legacy or version 0 transaction. It must include a top-level System transfer of at least 100,000 lamports (0.0001 SOL) to a Beam tip address. Version 1 transactions are not accepted.
farebody"saver" | "standard" | "express"noRecords the fare's target and current estimate on the receipt.

Request

curl
curl -X POST https://api.tipwise.tech/send \
  -H "content-type: application/json" \
  -d '{"tx":"<base64 signed transaction>","fare":"standard"}'

Example response

Illustrative, not a live response.

JSON example
{
  "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R"
}

Fields

signature
The transaction's first signature. A 200 means it was handed to Beam, not that it landed: if Beam refuses it, the receipt settles with failure send_rejected.

Errors

StatusWhen
400Body is not { tx }, the transaction does not deserialize, it is not signed, its Beam tip is under 100,000 lamports, or fare is not a known fare.
503A fare was given before the first fares were computed.
GET/receipt/:signature#

Receipt

Where a transaction sent through Tipwise is: each stage with its slot and milliseconds since send, the landed slot, a failure class, Beam's landing record and a plain English explanation. Poll until settled is true, or follow lifecycle events.

Parameters

NameInTypeRequiredDefaultDetails
signaturepathstring, base58yesSignature returned by POST /send or POST /demo/send.

Request

curl
curl https://api.tipwise.tech/receipt/5EHzvLSo8dk6...

Example response

Illustrative, not a live response.

JSON example
{
  "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R",
  "kind": "sdk",
  "sentSlot": 455777841,
  "lastValidBlockHeight": 433690512,
  "tip": 109624,
  "stages": {
    "submitted": {
      "slot": 455777841,
      "ms": 0
    },
    "processed": {
      "slot": 455777842,
      "ms": 112
    },
    "confirmed": {
      "slot": 455777842,
      "ms": 231
    },
    "finalized": {
      "slot": 455777842,
      "ms": 6905
    }
  },
  "landedSlot": 455777842,
  "failure": null,
  "error": null,
  "beam": {
    "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R",
    "is_landed": true,
    "landed_via_jito": false,
    "rebroadcasted": false,
    "region": "ams",
    "tip_lamports": 109624,
    "first_seen_ms": 1791743411204,
    "forwarded_ms": 1791743411205
  },
  "settled": true,
  "sentAt": 1791743411100,
  "fare": "standard",
  "quotedProbability": 0.917,
  "deadlineSlots": 4,
  "explanation": {
    "verdict": "landed",
    "title": "Landed in 1 block (0.1 s).",
    "whatHappened": "We estimated a 92% chance of landing within 4 blocks. It took 1, within the target.",
    "whatToDo": "Nothing to fix. The tip was enough to get in on time."
  }
}

Fields

stages
submitted, processed (seen in a block), confirmed and finalized, each { slot, ms }.
failure
null, or send_rejected (Beam refused it), failed_onchain (it landed but the program failed; tip and fee were paid), leader_skipped (the next leader skipped its slot) or expired_blockhash (no block included it before its blockhash expired).
settled
true once the receipt is final and Beam's landing record has been fetched (a few seconds after landing or failing).
fare, quotedProbability, deadlineSlots
The fare recorded at send time and its estimate then; null when no fare was given.
beam
Solami's landing record: region, whether it went through Jito, timings. null if Solami has no record.
explanation
{ verdict, title, whatHappened, whatToDo } built from the facts above; null while the transaction is on its way.

Errors

StatusWhen
404Tipwise did not send this signature.
POST/demo/send#

Free test send (site only)

Powers Send a test for me on this site: Tipwise builds, signs and pays for one small transaction at a fare's tip from its own wallet. It spends Tipwise's SOL, so it is rate limited and not meant for integrations. The live console on this page never calls it.

Parameters

NameInTypeRequiredDefaultDetails
farebody"saver" | "standard" | "express"no"standard"Which fare's tip to send with.

Request

curl
curl -X POST https://api.tipwise.tech/demo/send -H "content-type: application/json" -d '{"fare":"standard"}'

Example response

Illustrative, not a live response.

JSON example
{
  "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R",
  "fare": "standard",
  "quotedProbability": 0.917,
  "deadlineSlots": 4
}

Errors

StatusWhen
400Unknown fare.
429reason cooldown (one test every 20 s for everyone), ip (one per address every 3 minutes), daily (the daily allowance is used) or budget (paused). Body: { error, retryAfterSec, reason }.
503reason disabled (no test wallet configured) or warming (fares not computed yet).

Wallet checkups and watching

A checkup reads a wallet's recent transactions, finds the tip each one paid to Jito or Beam, and compares it with the tips that landed in the same slot.

POST/audit#

Run a checkup

Runs and stores a checkup. The same address within 60 seconds returns the stored checkup without running a new one (and without counting against the rate limit). A checkup takes 5 to 20 seconds.

Parameters

NameInTypeRequiredDefaultDetails
addressbodystring, base58yesAny Solana wallet.
limitbodyintegerno100Transactions to read, 1 to 300.

Request

curl
curl -X POST https://api.tipwise.tech/audit -H "content-type: application/json" \
  -d '{"address":"XUrKb2aK4jBm77q75EemchVUNRTJyeFQ5KebTJygPhF"}'

Example response

Illustrative, not a live response. Trimmed: txs lists every transaction read and worst lists up to 10.

JSON example
{
  "address": "XUrKb2aK4jBm77q75EemchVUNRTJyeFQ5KebTJygPhF",
  "limit": 100,
  "historySource": "getTransactionsForAddress",
  "blocksFetched": 12,
  "solPriceUsd": 112.07,
  "watching": false,
  "updatedAt": 1791803636973,
  "summary": {
    "periodFrom": 1791803590,
    "periodTo": 1791803593,
    "totalTipsUsd": 2.24,
    "goingRateLamports": 285000,
    "monthlyOverpayLamports": 17100000000,
    "monthlyOverpayUsd": 1916.4,
    "stamp": "overpaid",
    "analyzed": 100,
    "tipped": 45,
    "benchmarked": 45,
    "totalTipsLamports": 20300000,
    "overpayLamports": 20015000,
    "overpaySol": 0.020015,
    "overpayUsd": 2.21,
    "underpaidCount": 0,
    "worst": []
  },
  "txs": [
    {
      "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R",
      "slot": 455799012,
      "blockTime": 1791803593,
      "success": true,
      "tip": 450000,
      "priorityFee": 0,
      "slotP25": 4100,
      "slotP50": 6300,
      "slotP75": 12000,
      "overpay": 443700,
      "underpaid": false
    }
  ]
}

Fields

summary.goingRateLamports, overpayLamports
Going rate is the median tip that landed in the same slot. Overpay is the part of each tip above it, an estimate: a smaller tip might still have landed.
summary.underpaidCount
Tips below the cheapest quarter of tips in their slot.
summary.stamp
overpaid (over 30% of tips above the going rate), too_low (over 25% of compared tips too low) or fair.
summary.monthlyOverpayLamports
Overpay projected over 30 days from the time span covered; null when the analyzed tips span less than 10 minutes, since a month extrapolated from a minute of trades misleads.
txs[].slotP25, slotP50, slotP75
Tips that landed in the same slot; null when the slot could not be compared, for example a block that was not yet available (counted in blocksFailed).

Errors

StatusWhen
400address is not a valid Solana address, or limit is not an integer from 1 to 300.
429More than 6 new checkups per minute from one IP. Body: { error, retryAfterSec, reason: "ip" }.
502The wallet's history could not be read right now. The body carries errorClass (timeout, history_failed, block_unavailable or upstream) and retryable: true; retry after a second or two.
503Solami rate-limited the checkup (errorClass rate_limited); retry shortly.
GET/audit/:address#

Stored checkup

The last stored checkup for an address, including live updates while it is watched. Does not run a new checkup.

Parameters

NameInTypeRequiredDefaultDetails
addresspathstring, base58yesWallet address.

Request

curl
curl https://api.tipwise.tech/audit/XUrKb2aK4jBm77q75EemchVUNRTJyeFQ5KebTJygPhF

Same shape as POST /audit.

Errors

StatusWhen
400Invalid address.
404No checkup stored for this address yet.
POST/audit/:address/watch#

Watch a wallet live

Adds a checked wallet to a Solami webhook stream for 15 minutes. Each new transaction is analysed, added to the stored checkup and published as an audit event on GET /events.

Parameters

NameInTypeRequiredDefaultDetails
addresspathstring, base58yesA wallet with a stored checkup.

Request

curl
curl -X POST https://api.tipwise.tech/audit/XUrKb2aK4jBm77q75EemchVUNRTJyeFQ5KebTJygPhF/watch

Example response

Illustrative, not a live response.

JSON example
{
  "address": "XUrKb2aK4jBm77q75EemchVUNRTJyeFQ5KebTJygPhF",
  "until": 1791804536973,
  "delivery": "stream"
}

Fields

until
Epoch milliseconds when watching stops. Watching again extends it.

Errors

StatusWhen
400Invalid address, no stored checkup for it yet, or Solami refused the webhook change.
429More than 3 watch requests per minute from one IP. Body: { error, retryAfterSec, reason: "ip" }.
GET/audit/examples#

Live example wallets

Up to three wallets that paid the most tips in the last 10 minutes, counted live from the gRPC stream. Tipwise's own test wallet is excluded.

Request

curl
curl https://api.tipwise.tech/audit/examples

Example response

Illustrative, not a live response.

JSON example
[
  {
    "address": "XUrKb2aK4jBm77q75EemchVUNRTJyeFQ5KebTJygPhF",
    "tips": 609,
    "lastSlot": 456026317
  }
]

Live events

GET /events is a server-sent event stream. Each message has an event name and a JSON data line. The stream opens with a : tipwise comment and sends a : ping comment every 15 seconds. Events carry no ids and nothing is replayed: a client that reconnects only gets events from then on.

JavaScript
const events = new EventSource("https://api.tipwise.tech/events");

events.addEventListener("fares", (e) => {
  const { fares } = JSON.parse(e.data);
  console.log(fares.map((f) => `${f.label}: ${f.tipLamports} lamports, ${f.probability}`).join("; "));
});

events.addEventListener("lifecycle", (e) => {
  const receipt = JSON.parse(e.data);
  if (receipt.signature === mySignature && receipt.settled) console.log(receipt.explanation?.title);
});

// EventSource reconnects by itself. Events sent while disconnected are not
// replayed: after a reconnect, read GET /receipt/:signature or GET /stats to catch up.
events.onerror = () => console.warn("reconnecting to Tipwise events");
EventWhen and what
slotEach new processed slot: { slot, chainTip, behind }.
tipsEach confirmed slot: { slot, count, p25, p50, p75, p90, max, heat, dots, beam } with tips in lamports; dots and beam are up to 12 sampled tips.
faresSame body as GET /fares, at most every 2 s and only when something changed.
quoteEvery 5 s, the GET /quote result for deadline 2 at 0.9.
lifecycleA receipt (same body as GET /receipt/:signature) at every stage of every send, for all senders.
auditA new transaction of a watched wallet: { address, tx, summary, dropped }.
probeA test trip went out: { signature, tip, fee, bucket, percentile, predicted }.
productsEvery 5 s, the eight Solami product rows shown on Under the hood.
heatEvery 2 s, [slot, heat] pairs for the last 40 slots of Blur market activity.
lagEvery 30 s, the market activity lag test: { k, r, n, qualifies, beta, computedAt }.
streamA stream connected, closed or was refused: one entry of GET /health streams.

Calibration and track record

Tipwise sends small real test transactions (probes) to measure how often each range of tips lands in time. These endpoints show the evidence behind every estimate.

GET/calibration#

Calibration table

Per percentile range: test trips, the estimate each trip was sent with, the share that landed within 2 slots, and the model's current estimate at 2 slots.

Request

curl
curl https://api.tipwise.tech/calibration

Example response

Illustrative, not a live response. Trimmed to three of the five ranges.

JSON example
{
  "deadlineSlots": 2,
  "probes": 40,
  "calibrated": true,
  "brier": 0.126,
  "buckets": [
    {
      "lo": 0,
      "hi": 25,
      "n": 10,
      "predicted": 0.5,
      "actual": 1,
      "model": 0.917,
      "status": "reachable"
    },
    {
      "lo": 75,
      "hi": 90,
      "n": 10,
      "predicted": 0.9,
      "actual": 0.9,
      "model": 0.917,
      "status": "reachable"
    },
    {
      "lo": 90,
      "hi": 100,
      "n": 0,
      "predicted": null,
      "actual": null,
      "model": 0.917,
      "status": "above tip ceiling"
    }
  ]
}

Fields

brier
Mean squared error of the at-send estimates against landing within 2 slots; null before any trip settles. Lower is better.
GET/track-record#

Track record

Each test trip scored out of sample at the Standard deadline: the estimate the model would have given from the trips sent before it, against whether it landed within that same deadline.

Request

curl
curl https://api.tipwise.tech/track-record

Example response

Illustrative, not a live response. Trimmed: rows has one entry per range and recent holds up to 30 trips.

JSON example
{
  "deadlineSlots": 4,
  "trips": 40,
  "averageGapPoints": 27.5,
  "rows": [
    {
      "lo": 0,
      "hi": 25,
      "n": 10,
      "promised": 0.5,
      "delivered": 1,
      "reachable": true
    }
  ],
  "testTrips": {
    "trips": 40,
    "landed": 40,
    "running": false
  },
  "recent": [
    {
      "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R",
      "kind": "probe",
      "sentSlot": 455777841,
      "lastValidBlockHeight": 433690512,
      "tip": 109624,
      "stages": {
        "submitted": {
          "slot": 455777841,
          "ms": 0
        },
        "processed": {
          "slot": 455777842,
          "ms": 112
        },
        "confirmed": {
          "slot": 455777842,
          "ms": 231
        },
        "finalized": {
          "slot": 455777842,
          "ms": 6905
        }
      },
      "landedSlot": 455777842,
      "failure": null,
      "error": null,
      "beam": {
        "signature": "5EHzvLSo8dk6wwm5WW2FpqpRytJgdY4JF5KVkHY178ArMMKPFfJVfkFVHcsWQcAR8nNGqJgK3keAN9VPQJSG2U4R",
        "is_landed": true,
        "landed_via_jito": false,
        "rebroadcasted": false,
        "region": "ams",
        "tip_lamports": 109624,
        "first_seen_ms": 1791743411204,
        "forwarded_ms": 1791743411205
      },
      "settled": true,
      "sentAt": 1791743411100,
      "fare": null,
      "quotedProbability": null,
      "deadlineSlots": null,
      "explanation": {
        "verdict": "landed",
        "title": "Landed in 1 block (0.1 s).",
        "whatHappened": "We estimated a 92% chance of landing within 4 blocks. It took 1, within the target.",
        "whatToDo": "Nothing to fix. The tip was enough to get in on time."
      }
    }
  ]
}

Fields

rows[].promised, delivered
Average estimate before each trip, and the share that landed within deadlineSlots. The names are kept for compatibility; both run from 0 to 1.
averageGapPoints
Average absolute gap between the two, in percentage points. Too cautious and too optimistic both count.

Health and supporting endpoints

Read only views of the running service.

GET/health#

Health

Stream health, kept in memory and cheap to call. ok is false when any stream is down; the webhook stream counts only while a wallet is being watched.

Request

curl
curl https://api.tipwise.tech/health

Example response

Illustrative, not a live response. Trimmed to one of the streams.

JSON example
{
  "ok": true,
  "slot": 456026318,
  "behind": 0,
  "maxBehind": 1,
  "degraded": [],
  "streams": [
    {
      "name": "grpc",
      "connected": true,
      "reconnects": 0,
      "lastEventAt": 1791803636973,
      "bytes": 57217120,
      "error": null,
      "blocked": null,
      "backpressureClosures": 0,
      "queue": {
        "depth": 0,
        "maxDepth": 1,
        "capacity": 50000,
        "dropped": 0
      }
    }
  ]
}

Fields

behind, maxBehind
Slots between Tipwise's stream and Solami's chain tip, now and at worst since start.
degraded
Features Solami refused (missing permission, plan or balance), each { feature, error }.
slotMs, slotMsSource
Optional. Average slot time in ms over the last 600 processed slots from the gRPC stream (about 206 ms since Alpenglow), with slotMsSource "measured"; before 100 slots are seen it is the 200 ms default and slotMsSource is "default". Older servers sent a fixed 400 and no slotMsSource.
coverage, incompleteSlots
Optional. Share of the tip window's slots with complete data, and how many are missing or partial (a reconnect that could not be replayed, a restart, or transaction updates shed by the stream queue). Leader-skipped slots do not count.
streams[].idle
true while a stream is paused on purpose: the webhooks stream runs only while a wallet is watched. An idle stream has no error, counts no reconnects and does not affect ok.
GET/stats#

Snapshot

Everything the site shows on first paint: slot and chain tip, streams, the gRPC versus Mirage race, Blur counts, the 600 slot tip window, mood, fares, SOL price, Solami product rows, calibration, track record, test trip counts and recent receipts. About 100 KB; prefer the specific endpoints.

Request

curl
curl https://api.tipwise.tech/stats
GET/leaders#

Upcoming leaders

The validators scheduled for the next 20 slots, grouped into runs, with what Tipwise has stored about their past slots.

Request

curl
curl https://api.tipwise.tech/leaders

Example response

Illustrative, not a live response.

JSON example
[
  {
    "identity": "GQzMeEMwAR44ugoNCifTb5NdRKos1GduDUPeNh6AgV46",
    "firstSlot": 456026318,
    "lastSlot": 456026319,
    "slotsObserved": 72,
    "medianTip": 4868,
    "probesLanded": 0,
    "skipped": 0
  }
]

Fields

medianTip
Median of the per-slot median tip in this leader's stored slots, in lamports; null when none are stored.

Errors and rate limits

Errors are JSON: { "error": "message" }, plus retryAfterSec and reason on 429 responses.

StatusWhen
400Invalid input. The body is not JSON, or a parameter is out of range. The message says which.
401Webhook receiver only: bad or missing signature.
404Unknown route, unknown receipt, no stored checkup, or an admin route without its token.
413Request body larger than 256 KB.
429Rate limited. The body adds retryAfterSec (seconds, or null) and reason.
500A Solami call failed or something unexpected happened. Retry later.
503Not ready or not configured: fares not computed yet, or free test sends disabled.

Rate limits

WhatLimit
POST /audit6 new checkups per minute per IP. A repeat within 60 s returns the stored checkup and is not counted.
POST /audit/:address/watch3 per minute per IP. Each watch lasts 15 minutes.
POST /demo/sendOne every 20 s across everyone, one per IP every 3 minutes, a daily allowance, and a total budget.
Request bodies256 KB.

Limits are per IP as seen by the server (the first x-forwarded-for entry behind its reverse proxy) and are kept in memory, so they reset when the server restarts.

Self-hosting

Tipwise is open source. With your own Solami key you run the streams, the API and this site. Point the site at your API with NEXT_PUBLIC_API_BASE; every example on this page uses that base URL.

Shell
git clone https://github.com/sadiqsaidu/tipwise.git && cd tipwise
npm install
cp .env.example .env      # set SOLAMI_API_KEY (PROBE_SECRET only if you want test trips)
docker compose up -d db   # local Postgres
npm run serve             # API and streams on http://localhost:8080

cd web && npm install
NEXT_PUBLIC_API_BASE=http://localhost:8080 npm run dev

The README covers the key permissions, every environment variable and a production deploy: Quick start and Deploy.

Operator endpoints

For people running their own Tipwise server. Integrations do not need these.

GET/admin/probe#

Probe budget (operators)

The test wallet's address, budget and spend. Enabled only when ADMIN_TOKEN is set on the server; otherwise, and without the right token, it answers 404 as if it did not exist.

Parameters

NameInTypeRequiredDefaultDetails
authorizationheaderstringyesBearer <ADMIN_TOKEN>.

Request

curl
curl https://api.tipwise.tech/admin/probe -H "authorization: Bearer $ADMIN_TOKEN"

Example response

Illustrative, not a live response.

JSON example
{
  "wallet": "<test wallet address>",
  "budgetLamports": 60000000,
  "spentLamports": 9800000,
  "leftLamports": 50200000,
  "stopped": true,
  "stopReason": "every reachable bucket has 10 probes"
}

Errors

StatusWhen
404ADMIN_TOKEN is not set, or the header does not match.
POST/webhooks/solami#

Webhook receiver (operators)

Receives Solami webhook deliveries over HTTP when WEBHOOK_PUBLIC_URL is set. Tipwise normally consumes webhooks as a stream and does not need it. The body is checked against the x-webhook-signature header, which Tipwise expects to be a hex HMAC-SHA256 of the raw body keyed with the secret Solami returned when this process created the webhook (Solami documents only an HMAC of the body).

Request

curl
Called by Solami, not by clients.

Errors

StatusWhen
401No webhook secret is held by this process, or the signature does not match.