# GET /v1/solana/transaction/expiry

Did this sent Solana transaction land, can it still land, or did its blockhash expire before it landed?

## Purpose

Answers one `verdict` on a transaction you sent, from its `signature` and the `blockhash` it was signed with: `landed`, `failed`, `wait` or `re_sign`. A transaction can land only while its blockhash is valid, so the route reads the blockhash validity first and the status after it: `isBlockhashValid` for `blockhash` at `finalized`; only when that is false, `isBlockhashValid` again at `processed` (a blockhash too new for `finalized`, or still valid at the tip); only when that is false too and `last_valid_block_height` was sent, the block height at `processed`; then `getSignatureStatuses` for `signature` with `searchTransactionHistory`, which takes no commitment. Because every validity read comes before the status read, no status after a blockhash found expired at both commitments means the transaction never landed and no longer can. That is two reads when the blockhash is valid at `finalized`, and up to four. `blockhash_valid` is true when either validity read is true. The first verdict that matches, in this order, is the one returned:

| Verdict | What settles it | What it means |
|---|---|---|
| `landed` | a status at `confirmed` or `finalized` (equal under Alpenglow) with a null `err` | the transaction is in a block and succeeded; it needs no new transaction |
| `failed` | a status at `confirmed` or `finalized` with an `err` | the transaction is in a block and failed; the error itself is not returned |
| `wait` | a status at `processed`; or no status while the blockhash is valid at either commitment, or while the block height read is not above `last_valid_block_height` | the transaction may still land or become final: ask again later |
| `re_sign` | no status, the blockhash valid at neither commitment and, when `last_valid_block_height` was sent, the block height read above it | the transaction never landed and can no longer land with this blockhash; a new transaction needs a new blockhash |

A found status gives its verdict whatever the validity reads, since a transaction can land before its blockhash expires. A status without `confirmationStatus` (older nodes) is rooted, read as `finalized`, when its `confirmations` is null, and gives `wait` when `confirmations` is a count. The route cannot check that the signature's transaction was signed with the given blockhash, so pass the blockhash from that transaction's message (`recentBlockhash`) and, for the optional `last_valid_block_height`, the `lastValidBlockHeight` you got with it; a mismatched pair follows the status read. The body echoes `signature`, `blockhash` and `last_valid_block_height` (a JSON integer, `null` when the request sent none) before `blockhash_valid` and `verdict`; no raw status and no error object is returned. A `signature` that does not decode to 64 bytes, a `blockhash` that does not decode to 32 bytes, or a `last_valid_block_height` that is not an integer from 0 to 9007199254740991 is a 400 naming it, with no read. A failed read answers 503 `upstream-unavailable`, never a verdict without its reads, and so does an answer the route cannot read: an `isBlockhashValid` answer without a boolean value or a context slot, a block height answer that is not a safe non-negative integer, or a `getSignatureStatuses` answer whose `value` is not one status or `null`, or whose status carries an unknown `confirmationStatus`. Each read is cached on its own, fresh for 2 seconds and served stale for up to 10 when its next read fails: the validity per blockhash and commitment, the block height once, and a found status per signature. A missing status is never cached, so every request reads it again after its validity reads. `meta.slot` is the lowest context slot of the reads behind the answer (the block height read carries none), and `meta.commitment` is `finalized`: the first validity read is at finalized commitment; a blockhash not valid there is re-read at processed, the block height is read at processed, and the status read takes no commitment. The example is the answer for a recorded mainnet SOL payment and the blockhash its transaction was signed with, read when that blockhash had long expired: the transaction had landed without an error.

## When to use

After sending a Solana transaction: to know whether it landed, may still land, or never landed and can no longer land because its blockhash expired.

## When not to use

To check what a settled payment delivered to its recipient (use `/v1/solana/payment/verify`), or before sending a transfer (use `/v1/solana/transfer-readiness`).

## Parameters

| Name | In | Required | Description | Constraints | Example |
|---|---|---|---|---|---|
| `signature` | query | yes | Signature of the sent transaction. | A base58 string that decodes to exactly 64 bytes (a Solana transaction signature); anything else is a 400 | `B7yABUkY4RudiDfoax94mfqVv2YuNJ4AVsg7LjdFT9Qm8bScsw3PoB2LxpuUqzCkiniKQJ9AKXfSfWaw1kWYFaF` |
| `blockhash` | query | yes | The blockhash that transaction was signed with: the `recentBlockhash` of its message. | A base58 string that decodes to exactly 32 bytes (a blockhash); anything else is a 400 | `8BLYkYHZUjAgxoFbvV8QVSR6uFbgfhvLBSAHb9GJu8kV` |
| `last_valid_block_height` | query | no | The `lastValidBlockHeight` you got with that blockhash; without it the block height is not read. | Digits only, an integer from 0 to 9007199254740991; anything else is a 400 | `444222848` |

## Request example

```sh
curl -s "https://api.criptonlabs.com/v1/solana/transaction/expiry?signature=B7yABUkY4RudiDfoax94mfqVv2YuNJ4AVsg7LjdFT9Qm8bScsw3PoB2LxpuUqzCkiniKQJ9AKXfSfWaw1kWYFaF&blockhash=8BLYkYHZUjAgxoFbvV8QVSR6uFbgfhvLBSAHb9GJu8kV"
```

## Response example (200)

```json
{
  "signature": "B7yABUkY4RudiDfoax94mfqVv2YuNJ4AVsg7LjdFT9Qm8bScsw3PoB2LxpuUqzCkiniKQJ9AKXfSfWaw1kWYFaF",
  "blockhash": "8BLYkYHZUjAgxoFbvV8QVSR6uFbgfhvLBSAHb9GJu8kV",
  "last_valid_block_height": null,
  "blockhash_valid": false,
  "verdict": "landed",
  "meta": {
    "slot": 476378841,
    "commitment": "finalized",
    "as_of": "2026-12-02T01:10:50.000Z",
    "age_seconds": 0,
    "cache": "miss",
    "stale": false
  }
}
```

## Errors

- 400 [invalid-parameters](https://api.criptonlabs.com/errors/invalid-parameters.md)
- 400 [bad-request](https://api.criptonlabs.com/errors/bad-request.md)
- 429 [rate-limited](https://api.criptonlabs.com/errors/rate-limited.md)
- 503 [upstream-unavailable](https://api.criptonlabs.com/errors/upstream-unavailable.md)

## Caching

Fresh for 2 seconds; on upstream failure the last good value is served for up to 10 seconds (`meta.stale` is `true`), then the service answers 503. See the [freshness guide](https://api.criptonlabs.com/docs/guides/freshness.md).

## Rate limit

Tier `expensive`. See the [rate-limits guide](https://api.criptonlabs.com/docs/guides/rate-limits.md).

## MCP tool

The MCP tool `solana_transaction_expiry` returns the same data. See the [MCP quickstart](https://api.criptonlabs.com/docs/guides/mcp-quickstart.md).
