Transaction Search
What is a transaction?
A transaction on a blockchain is an instruction that changes the blockchain state. For example, a transaction occurs when one person transfers a digital asset they own to another person.
This guide is designed to walk you through the steps needed to search for a transaction on the network. There are two approaches to performing a search:
- Using the prepare-execute model: Using this approach, the first API call will register the search request, and the second API call will perform it.
- Using the autoexecute model: Using this approach, there is only one API call, where the search is performed immediately.
In this page, we will only discuss the autoexecute version.
Prerequisites
- Create an account and generate your application's API keys
Create an account on Quant Connect. Then, register your application to generate API keys to authorise your requests on Overledger APIs.
- Generate a Bearer Token You must generate an authentication token in order to use the Overledger APIs.
Call the endpoint
To get details on the transaction 51Jrk8dWn21giGbeuC1w4iB4pKZpMZGjc9iRqrYbuMtEDSMgwTJqzPpk8Y8NdnipQDCP5mAGpGSUPyUYT3gYebRs, build your request as below.
curl --request POST \
--url https://hook.eu2.make.com/7rovt2a2ertimrhhwjkqdz5lw7dunu7q \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
--header 'content-type: application/json' \
--data '
{
"location": {
"technology": "solana",
"network": "solana testnet"
},
"transactionId": "51Jrk8dWn21giGbeuC1w4iB4pKZpMZGjc9iRqrYbuMtEDSMgwTJqzPpk8Y8NdnipQDCP5mAGpGSUPyUYT3gYebRs"
}
'
If the request is successful, you will receive a response with the transaction details as below:
{
"location": {
"technology": "solana",
"network": "solana testnet"
},
"type": "PAYMENT",
"timestamp": "1729672480",
"status": {
"value": "SUCCESSFUL",
"code": "TXN1003",
"description": "Transaction successful",
"message": "Transaction successful",
"timestamp": "1730736653"
},
"transaction": {
"transactionId": "51Jrk8dWn21giGbeuC1w4iB4pKZpMZGjc9iRqrYbuMtEDSMgwTJqzPpk8Y8NdnipQDCP5mAGpGSUPyUYT3gYebRs",
"signed": "AchVYLCJUFAr754GyQfRwipEDjs8UasZpe6LhMyVDfaKCHfMAl/uXZoQk+3K3iq30t3MsKGJHYwRfi3HIjaW5wIBAAEDy4LMEyWFPkvUqe7XJTH1/xPTK+i3VFAbrqN2k548M4Nbwq/ZjEadZPPnz2qYWFlfskPteKVnTV8kaS8GDmS/JwdhSB01dHS7fE12JOvTvbPYNV5z0RBD/A2jU4AAAAAApOAPfOlVUFHJ+3oOP6odlrpUa4+hDaFFanmetHNiKiMBAgIBAHQMAAAADtLEEQAAAAAfAR8BHgEdARwBGwEaARkBGAEXARYCFQEUARMBEgERARABDwEOAQ0BDAELAgoBCQEIAQcBBgEFAQQBAwECAQHkk1Rg8PdZwUfZDn9QLsCv1XP1cuX3lJT27RKpM5oToAFfmxtnAAAAAA==",
"message": "",
"signature": [
"51Jrk8dWn21giGbeuC1w4iB4pKZpMZGjc9iRqrYbuMtEDSMgwTJqzPpk8Y8NdnipQDCP5mAGpGSUPyUYT3gYebRs"
],
"totalPaymentAmount": [],
"origin": [],
"destination": [],
"fee": {
"amount": "NaN",
"unit": "SOL"
},
"nativeData": {
"blockTime": 1729672480,
"meta": {
"computeUnitsConsumed": 2100,
"err": null,
"fee": 5000,
"innerInstructions": [],
"logMessages": [
"Program Vote111111111111111111111111111111111111111 invoke [1]",
"Program Vote111111111111111111111111111111111111111 success"
],
"postBalances": [
1976352596229,
24491268473041,
1
],
"postTokenBalances": [],
"preBalances": [
1976352601229,
24491268473041,
1
],
"preTokenBalances": [],
"rewards": [],
"status": {
"Ok": null
}
},
"slot": 298111539,
"transaction": {
"message": {
"accountKeys": [
{
"pubkey": "EhRSYFM1RgJoTaZ8LXHwePB6VGRPyYuXE1KiHNnSkX3p",
"signer": true,
"source": "transaction",
"writable": true
},
{
"pubkey": "7BCHPdZoBzbUcRvC8GELMibuBpv53CG1UTW8bTqVmgGe",
"signer": false,
"source": "transaction",
"writable": true
},
{
"pubkey": "Vote111111111111111111111111111111111111111",
"signer": false,
"source": "transaction",
"writable": false
}
],
"instructions": [
{
"parsed": {
"info": {
"voteAccount": "7BCHPdZoBzbUcRvC8GELMibuBpv53CG1UTW8bTqVmgGe",
"voteAuthority": "EhRSYFM1RgJoTaZ8LXHwePB6VGRPyYuXE1KiHNnSkX3p",
"voteStateUpdate": {
"hash": "GPGFjvT8FW8itMrTCRJ8awPVWNPfhLynsn3HbFGWFa1V",
"lockouts": [
{
"confirmation_count": 31,
"slot": 298111503
},
{
"confirmation_count": 30,
"slot": 298111504
},
{
"confirmation_count": 29,
"slot": 298111505
},
{
"confirmation_count": 28,
"slot": 298111506
},
{
"confirmation_count": 27,
"slot": 298111507
},
{
"confirmation_count": 26,
"slot": 298111508
},
{
"confirmation_count": 25,
"slot": 298111509
},
{
"confirmation_count": 24,
"slot": 298111510
},
{
"confirmation_count": 23,
"slot": 298111511
},
{
"confirmation_count": 22,
"slot": 298111512
},
{
"confirmation_count": 21,
"slot": 298111514
},
{
"confirmation_count": 20,
"slot": 298111515
},
{
"confirmation_count": 19,
"slot": 298111516
},
{
"confirmation_count": 18,
"slot": 298111517
},
{
"confirmation_count": 17,
"slot": 298111518
},
{
"confirmation_count": 16,
"slot": 298111519
},
{
"confirmation_count": 15,
"slot": 298111520
},
{
"confirmation_count": 14,
"slot": 298111521
},
{
"confirmation_count": 13,
"slot": 298111522
},
{
"confirmation_count": 12,
"slot": 298111523
},
{
"confirmation_count": 11,
"slot": 298111524
},
{
"confirmation_count": 10,
"slot": 298111526
},
{
"confirmation_count": 9,
"slot": 298111527
},
{
"confirmation_count": 8,
"slot": 298111528
},
{
"confirmation_count": 7,
"slot": 298111529
},
{
"confirmation_count": 6,
"slot": 298111530
},
{
"confirmation_count": 5,
"slot": 298111531
},
{
"confirmation_count": 4,
"slot": 298111532
},
{
"confirmation_count": 3,
"slot": 298111533
},
{
"confirmation_count": 2,
"slot": 298111534
},
{
"confirmation_count": 1,
"slot": 298111535
}
],
"root": 298111502,
"timestamp": 1729862495
}
},
"type": "compactupdatevotestate"
},
"program": "vote",
"programId": "Vote111111111111111111111111111111111111111",
"stackHeight": null
}
],
"recentBlockhash": "C6c2KH6odrzXnQCo6xSfsBDbytx4aTVKMEEpVzNt7pJn"
},
"signatures": [
"51Jrk8dWn21giGbeuC1w4iB4pKZpMZGjc9iRqrYbuMtEDSMgwTJqzPpk8Y8NdnipQDCP5mAGpGSUPyUYT3gYebRs"
]
},
"version": "legacy"
}
}
}
Updated 14 days ago