AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.
Start building today!Returns the statuses of a list of signatures. Unless the searchTransactionHistory configuration parameter is included, this method only searches the recent status cache of signatures, which retains statuses for all active slots plus MAX_RECENT_BLOCKHASHES rooted slots.
The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.
Parameters:
searchTransactionHistory - boolean - (optional) (default: false) If true, the search includes the entire transaction history. If false, the search only includes recent transactions in the latest confirmed block
Returns:
context - The information about the current state of the program
apiVersion - The version of the Solana RPC API to use
slot - An integer representing the slot for which to retrieve the fee calculator
value - A JSON object with the following fields:
confirmationStatus - The transaction's cluster confirmation status. It can either be processed, confirmed, or finalized
confirmations - The number of confirmations a transaction has received. If the transaction is finalized (i.e., confirmed at the highest level of commitment), the value will be null
err - Error code if the transaction failed or null if the transaction succeeds
slot - The slot number in which the transaction was confirmed
status - The processing status of the transaction. It returns Ok if the transaction was successful and Err if the transaction failed with TransactionError
Code Examples:
const web3 = require("@solana/web3.js"); (async () => { const accountOne = "5tGfZLNDxtCtWsW1BJoeTyHvnfGqpADDfBkUgkKENQJ8iz5yTN3ae51j8m8GRFevJx82gyuKnEX7iexFsqf7X2vS"; const accountTwo = "D13jTJYXoQBcRY9AfT5xRtsew7ENgCkNs6mwwwAcUCp4ZZCEM7YwZ7en4tVsoDa7Gu75Jjj2FgLXNUz8Zmgedff"; const solana = new web3.Connection("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/"); console.log( await solana.getSignatureStatuses([accountOne, accountTwo], { searchTransactionHistory: true, }) ); })();
require "uri" require "json" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request.body = JSON.dump({ "jsonrpc": "2.0", "id": 1, "method": "getSignatureStatuses", "params": [ [ "5tGfZLNDxtCtWsW1BJoeTyHvnfGqpADDfBkUgkKENQJ8iz5yTN3ae51j8m8GRFevJx82gyuKnEX7iexFsqf7X2vS", "D13jTJYXoQBcRY9AfT5xRtsew7ENgCkNs6mwwwAcUCp4ZZCEM7YwZ7en4tVsoDa7Gu75Jjj2FgLXNUz8Zmgedff" ], { "searchTransactionHistory": true } ] }) response = https.request(request) puts response.read_body
curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc": "2.0","id": 1,"method": "getSignatureStatuses","params": [["5tGfZLNDxtCtWsW1BJoeTyHvnfGqpADDfBkUgkKENQJ8iz5yTN3ae51j8m8GRFevJx82gyuKnEX7iexFsqf7X2vS","D13jTJYXoQBcRY9AfT5xRtsew7ENgCkNs6mwwwAcUCp4ZZCEM7YwZ7en4tVsoDa7Gu75Jjj2FgLXNUz8Zmgedff"],{"searchTransactionHistory": true}]}'
from solana.rpc.api import Client solana_client = Client("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/") signatures = [ "5tGfZLNDxtCtWsW1BJoeTyHvnfGqpADDfBkUgkKENQJ8iz5yTN3ae51j8m8GRFevJx82gyuKnEX7iexFsqf7X2vS", "D13jTJYXoQBcRY9AfT5xRtsew7ENgCkNs6mwwwAcUCp4ZZCEM7YwZ7en4tVsoDa7Gu75Jjj2FgLXNUz8Zmgedff" ] print(solana_client.get_signature_statuses(signatures,search_transaction_history=true))