Enhance Transaction Metadata
curl --request POST \
--url https://api.soltop.sh/enhance-metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"signature": "5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ"
}
'import requests
url = "https://api.soltop.sh/enhance-metadata"
payload = { "signature": "5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
signature: '5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ'
})
};
fetch('https://api.soltop.sh/enhance-metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.soltop.sh/enhance-metadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'signature' => '5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.soltop.sh/enhance-metadata"
payload := strings.NewReader("{\n \"signature\": \"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.soltop.sh/enhance-metadata")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"signature\": \"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.soltop.sh/enhance-metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"signature\": \"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"signature": "<string>",
"slot": 123,
"blockTime": 123,
"metadata": {
"fee": 123,
"err": {},
"compute_units_consumed": 123,
"signer": "<string>",
"leader": "<string>",
"client": "<string>",
"client_version": "<string>",
"validator_name": "<string>",
"balance_changes": {
"spl_token_deltas": [
{
"owner": "<string>",
"mint": "<string>",
"delta_base": "<string>",
"decimals": 123,
"delta_ui": 123,
"account_index": 123
}
],
"sol_deltas": [
{
"pubkey": "<string>",
"delta_lamports": "<string>",
"delta_sol": 123,
"account_index": 123
}
],
"fee_lamports": 123,
"summary": {
"total_spl_changes": 123,
"total_sol_changes": 123
}
},
"signer_pre_balance": 123,
"signer_post_balance": 123,
"signer_pre_token_balances": "<array>",
"signer_post_token_balances": "<array>"
},
"processing_time_ms": 123
}
}{
"error": "Transaction not found",
"details": "No transaction found with signature: abc123...",
"timestamp": "2025-10-02T15:30:45.123Z"
}Transactions
Enhance Transaction Metadata
Fetches detailed transaction metadata from Solana RPC including fees, error status, and balance changes. Complements /analyze-trade by providing financial details for each transaction signature. Shows SOL/token balance changes, fees, and success/failure status focused exclusively on the transaction signer. Features 48-hour Redis caching.
POST
/
enhance-metadata
Enhance Transaction Metadata
curl --request POST \
--url https://api.soltop.sh/enhance-metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"signature": "5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ"
}
'import requests
url = "https://api.soltop.sh/enhance-metadata"
payload = { "signature": "5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
signature: '5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ'
})
};
fetch('https://api.soltop.sh/enhance-metadata', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.soltop.sh/enhance-metadata",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'signature' => '5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.soltop.sh/enhance-metadata"
payload := strings.NewReader("{\n \"signature\": \"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.soltop.sh/enhance-metadata")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"signature\": \"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.soltop.sh/enhance-metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"signature\": \"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"signature": "<string>",
"slot": 123,
"blockTime": 123,
"metadata": {
"fee": 123,
"err": {},
"compute_units_consumed": 123,
"signer": "<string>",
"leader": "<string>",
"client": "<string>",
"client_version": "<string>",
"validator_name": "<string>",
"balance_changes": {
"spl_token_deltas": [
{
"owner": "<string>",
"mint": "<string>",
"delta_base": "<string>",
"decimals": 123,
"delta_ui": 123,
"account_index": 123
}
],
"sol_deltas": [
{
"pubkey": "<string>",
"delta_lamports": "<string>",
"delta_sol": 123,
"account_index": 123
}
],
"fee_lamports": 123,
"summary": {
"total_spl_changes": 123,
"total_sol_changes": 123
}
},
"signer_pre_balance": 123,
"signer_post_balance": 123,
"signer_pre_token_balances": "<array>",
"signer_post_token_balances": "<array>"
},
"processing_time_ms": 123
}
}{
"error": "Transaction not found",
"details": "No transaction found with signature: abc123...",
"timestamp": "2025-10-02T15:30:45.123Z"
}Authorizations
API Key authentication. Format: sk_live_xxx (production) or sk_test_xxx (testing). Obtain your API key from the Blockline Dashboard.
Body
application/json
Transaction signature to enhance (base58, 87-88 characters)
Pattern:
^[1-9A-HJ-NP-Za-km-z]{87,88}$Example:
"5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ"