walletsolidity/gettransactioninfobyid
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid \
--header 'Content-Type: application/json' \
--data '
{
"value": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b"
}
'import requests
url = "https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid"
payload = { "value": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({value: '7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b'})
};
fetch('https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid', 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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid",
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([
'value' => '7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b'
]),
CURLOPT_HTTPHEADER => [
"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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid"
payload := strings.NewReader("{\n \"value\": \"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": \"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b\"\n}"
response = http.request(request)
puts response.read_body{
"id": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b",
"blockNumber": 70000000,
"blockTimeStamp": 1704067200000,
"contractResult": [
"<string>"
],
"fee": 1100000,
"result": "SUCCESS",
"resMessage": "<string>",
"receipt": {
"energy_usage": 65000,
"energy_fee": 1100000,
"net_usage": 345,
"net_fee": 0
},
"log": [
{
"address": "<string>",
"topics": [
"<string>"
],
"data": "<string>"
}
]
}TRON node API
walletsolidity/gettransactioninfobyid | TRON
TRON API method that retrieves transaction execution information by transaction ID from solidified blocks. Chainstack TRON reference.
POST
/
mt_c524ad9781ae5dccd9ac6f5b0370e
/
walletsolidity
/
gettransactioninfobyid
walletsolidity/gettransactioninfobyid
curl --request POST \
--url https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid \
--header 'Content-Type: application/json' \
--data '
{
"value": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b"
}
'import requests
url = "https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid"
payload = { "value": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({value: '7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b'})
};
fetch('https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid', 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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid",
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([
'value' => '7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b'
]),
CURLOPT_HTTPHEADER => [
"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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid"
payload := strings.NewReader("{\n \"value\": \"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid")
.header("Content-Type", "application/json")
.body("{\n \"value\": \"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://tron-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e/walletsolidity/gettransactioninfobyid")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"value\": \"7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b\"\n}"
response = http.request(request)
puts response.read_body{
"id": "7c2d4206c59cc541d4b7eb7a0001bce8a7a77d1a2e3b5c4f7a8b9c0d1e2f3a4b",
"blockNumber": 70000000,
"blockTimeStamp": 1704067200000,
"contractResult": [
"<string>"
],
"fee": 1100000,
"result": "SUCCESS",
"resMessage": "<string>",
"receipt": {
"energy_usage": 65000,
"energy_fee": 1100000,
"net_usage": 345,
"net_fee": 0
},
"log": [
{
"address": "<string>",
"topics": [
"<string>"
],
"data": "<string>"
}
]
}TRON API method that retrieves transaction execution information by transaction ID from solidified blocks. This method queries confirmed and finalized blockchain state, providing reliable transaction execution details that cannot be rolled back.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
value— the transaction ID (hash) in hexadecimal format
Response
Returns detailed transaction execution information including:id— the transaction hashblockNumber— block number containing the transactionblockTimeStamp— block timestampcontractResult— contract execution resultsfee— transaction fee paidresult— transaction execution result (SUCCESS/REVERT)resMessage— result message if failedreceipt— transaction receipt with resource usagelog— event logs generated by the transaction
Use case
Thewalletsolidity/gettransactioninfobyid method is used for:
- Retrieving confirmed transaction execution results from solidified blockchain state
- Analyzing gas usage and fees for finalized transactions
- Monitoring contract execution outcomes using reliable data
- Building applications that require confirmed transaction execution information
Body
application/json
Response
200 - application/json
Transaction execution information from solidified blocks
Last modified on November 6, 2026
Was this page helpful?