---
description: Verifies a Solana transaction and the amount of Solana sent
---

# transaction.php

## Verifies the details of a Solana transaction made through SOL Pay

<mark style="color:blue;">`GET`</mark> `https://solpay.solblaze.org/transaction.php`

The transaction endpoint takes in two parameters: `to` and `txid`. The `to` parameter is for the recipient address, and the `txid` is for the transaction signature (which can be obtained through one of the following transaction functions: [send-solana-lamports](../sdk-reference/send-solana-lamports "mention"), [send-solana](../sdk-reference/send-solana "mention"), [sign-transaction](../sdk-reference/sign-transaction "mention")). The endpoint returns the sender address and the number of lamports sent.

#### Query Parameters

| Name                                   | Type   | Description                                |
| -------------------------------------- | ------ | ------------------------------------------ |
| to<mark style="color:red;">\*</mark>   | string | recipient address                          |
| txid<mark style="color:red;">\*</mark> | string | transaction signature                      |
| network                                | string | mainnet-beta (default), devnet, or testnet |

{% tabs %}
{% tab title="200: OK success - the transaction details are returned" %}
```javascript
{
    "status": "success",
    "transaction": {
        "lamports": 10000,
        "amount": 1.0e-5,
        "from": "SENDER_ADDRESS"
    }
}
```
{% endtab %}

{% tab title="200: OK error - could not find transaction " %}
```javascript
{
    "status": "error",
    "error": "There was no transaction with the specified txid made through SOL Pay."
}
```
{% endtab %}

{% tab title="200: OK error - missing parameters" %}
```javascript
{
    "status": "error",
    "error": "Missing parameters, endpoint requires the following fields: to, txid."
}
```
{% endtab %}

{% tab title="200: OK error - maintenance mode" %}
```javascript
{
    "status": "error",
    "error": "SOL Pay is in maintenance mode, please try again in a few minutes."
}
```
{% endtab %}

{% tab title="200: OK error - extended maintenance mode" %}
```javascript
{
    "status": "error",
    "error": "SOL Pay is in extended maintenance mode, please try again later."
}
```
{% endtab %}

{% tab title="200: OK error - unknown" %}
```javascript
{
    "status": "error",
    "error": "An unknown error occurred, please try again in a few minutes"
}
```
{% endtab %}
{% endtabs %}

### Example Request:

```
https://solpay.solblaze.org/transaction.php?to=RECIPIENT_ADDRESS&txid=TRANSACTION_SIGNATURE&network=mainnet-beta
```
