SOL Pay
  • SOL Pay
  • Quick Start
  • Streams
  • Stake Pools
  • Reference
    • SDK Reference
      • connectNetwork
      • connectWallet
      • sendSolanaLamports
      • sendSolana
      • sendTokens
      • sendTokensDecimal
      • signTransaction
      • broadcastSerializedTransaction
      • streamLamports
      • backupStreamWallet
      • getStreamDetails
      • refillStream
      • pauseStream
      • resumeStream
      • closeStream
      • signMessage
      • getBalance
      • getTokenBalances
      • getAccountInfo
      • getAssociatedTokenAddress
      • getTokenBalance
      • tokens.getData
      • tokens.getTags
      • tokens.getToken
      • tokens.search
      • tokens.getRawUnvalidatedList
      • adapters
      • networks
    • API Reference
      • transaction.php
      • token_transaction.php
      • signature.php
  • Website
  • Source Code
Powered by GitBook
On this page
  • Verifies the details of a Solana transaction made through SOL Pay
  • Example Request:
  1. Reference
  2. API Reference

transaction.php

Verifies a Solana transaction and the amount of Solana sent

Verifies the details of a Solana transaction made through SOL Pay

GET 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: sendSolanaLamports, sendSolana, signTransaction). The endpoint returns the sender address and the number of lamports sent.

Query Parameters

Name
Type
Description

to*

string

recipient address

txid*

string

transaction signature

network

string

mainnet-beta (default), devnet, or testnet

{
    "status": "success",
    "transaction": {
        "lamports": 10000,
        "amount": 1.0e-5,
        "from": "SENDER_ADDRESS"
    }
}
{
    "status": "error",
    "error": "There was no transaction with the specified txid made through SOL Pay."
}
{
    "status": "error",
    "error": "Missing parameters, endpoint requires the following fields: to, txid."
}
{
    "status": "error",
    "error": "SOL Pay is in maintenance mode, please try again in a few minutes."
}
{
    "status": "error",
    "error": "SOL Pay is in extended maintenance mode, please try again later."
}
{
    "status": "error",
    "error": "An unknown error occurred, please try again in a few minutes"
}

Example Request:

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

Last updated 3 months ago