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 a signed message
  • Example Request:
  1. Reference
  2. API Reference

signature.php

Verifies a signed message made by the user's wallet

Verifies a signed message

GET https://solpay.solblaze.org/signature.php

The signature endpoint takes in three parameters: address, message, and signature. The address parameter is for the signing address, the message is for the text which was signed, and the signature is for the signed message (which can be obtained through signMessage). The endpoint returns whether the signature is valid.

Query Parameters

Name
Type
Description

address*

string

signing address

message*

string

original text

signature*

string

signed text

{
    "status": "success",
    "verified": true
}
{
    "status": "success",
    "verified": false
}
{
    "status": "error",
    "error": "Missing parameters, endpoint requires the following fields: address, message, signature."
}
{
    "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/signature.php?address=SIGNING_ADDRESS&message=MESSAGE&signature=SIGNATURE
Previoustoken_transaction.php

Last updated 2 months ago