What's New

Latest announcements & updates

Live updates
1 announcement
Announcement
Mar 19 β€’ 4 months ago
πŸš€ Introducing FauxChain – The Most Realistic Simulated Blockchain Explorer

πŸš€ Introducing FauxChain – The Most Realistic Simulated Blockchain Explorer

We’re excited to announce the launch of FauxChain β€” a fully simulated blockchain explorer that looks and behaves like the real thi ...

We’re excited to announce the launch of FauxChain β€” a fully simulated blockchain explorer that looks and behaves like the real thing.

FauxChain features:

  • Realistic blocks and transaction data
  • Dynamic wallet balances and histories
  • Simulated pending, failed, and successful transactions
  • Gas fees, confirmations, and hashes that feel authentic
  • Fully linked explorer views for wallets, blocks, and transactions
  • Public access to view and trace all activity

Everything is simulated β€” nothing on FauxChain is connected to a real blockchain, but it’s designed to make you believe it is.

136 reactions
Announcement Image
Tron

TRON API Documentation

Use this API to simulate TRON (TRX) transactions on Fauxchain.

Authentication

All API requests must include your API key in the request headers. Your API key identifies your account and provides access to the TRON simulation features.

API Key Header
X-API-KEY: your_api_key_here
API Key Security
Your API key grants access to your Fauxchain account. Keep it secure and never share it in public repositories or client-side code.

Simulate a TRON Transaction

This endpoint allows you to create a simulated TRON transaction between wallets on the Fauxchain network. The transaction will be processed using TRON's unique fee structure, but no real cryptocurrency is used.

Endpoint
POST /api/simulate/tron

Body Parameters

Parameter Type Required Description
receiver_address string Required The TRON address that will receive the transaction
amount float Required Amount of TRX to send (minimum 0.000001 TRX)

TRON Fee Structure

TRON transactions use a unique fee structure compared to other blockchains. All simulated TRON transactions incur a network-like fee calculated using burned_trx as the API fee metric. No bandwidth is used or deducted β€” bandwidth_used will always be 0 in the transaction response, simulating the use of free daily bandwidth allocation.

TRON Energy Model
In real TRON networks, transactions consume either bandwidth (free daily allocation) or energy (paid with TRX). Our simulation uses the burned TRX model to represent transaction costs while keeping bandwidth at zero.

Transaction Hash Usage

Every successful transaction returns a unique tx_hash. This hash serves as a permanent identifier for the transaction and can be used to build an explorer link for your users to view transaction details.

Explorer URL Format
https://fauxchain.io/explorer/tron/tx/YOUR_TX_HASH

Replace YOUR_TX_HASH with the actual hash returned in the API response. Example:

Explorer URL Example
https://fauxchain.io/explorer/tron/tx/b7e2c8f9d3a6e1b4c7f0a5d8e2b9c6f3a7e4d1b8c5f2a9e6d3b0c7f4a1e8d5b2

Example Request

JSON Request Body
{
  "receiver_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
  "amount": 10.5
}

Example Success Response

JSON Response
{
  "success": true,
  "tx_hash": "b7e2c8f9d3a6e1b4c7f0a5d8e2b9c6f3a7e4d1b8c5f2a9e6d3b0c7f4a1e8d5b2",
  "sender_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
  "receiver_address": "TLyqzVGLV1srkB7dToTAEqgDSfPtXRJZYH",
  "amount": 10.5,
  "burned_trx": "1.470000",
  "bandwidth_used": 0
}

Response Field Description

Field Type Description
tx_hash string Unique transaction identifier. Used to link to the explorer.
sender_address string Your configured TRON API address
receiver_address string Destination TRON address
amount float Amount of TRX transferred
burned_trx string Amount of TRX burned for energy to process the transaction
bandwidth_used integer Bandwidth consumed (always 0 in simulation, representing free daily allocation)

Example Error Responses

The following errors may be returned if the request fails validation or is unauthorized:

API Address Not Set
{
  "error": "TRON API address is not set. Please configure it in your dashboard."
}
Insufficient Balance
{
  "error": "Insufficient balance. Minimum of $0.05 is required to simulate a transaction."
}

Response Codes

  • 200 OK
    Transaction simulated successfully. JSON response includes all transaction details.
  • 401 Unauthorized
    Missing or invalid API key.
  • 403 Forbidden
    Insufficient balance.
  • 422 Unprocessable Entity
    Validation errors (e.g., missing receiver address, invalid amount, API address not set).
  • 500 Internal Server Error
    Unexpected backend error.

Code Examples

Python
PHP
C#
JavaScript
Ruby
Java
Go
Python Example
import requests

url = "https://fauxchain.io/api/simulate/tron"
headers = {
    "X-API-KEY": "YOUR_API_KEY",
    "Content-Type": "application/json"
}
data = {
    "receiver_address": "RECEIVER_ADDRESS",
    "amount": TRX_AMOUNT
}
response = requests.post(url, json=data, headers=headers)
print(response.json())
PHP Example
$response = Http::withHeaders([
    'X-API-KEY' => 'YOUR_API_KEY'
])->post('https://fauxchain.io/api/simulate/tron', [
    'receiver_address' => 'RECEIVER_ADDRESS',
    'amount' => TRX_AMOUNT
]);
echo $response->body();
C# Example
var client = new HttpClient();
client.DefaultRequestHeaders.Add("X-API-KEY", "YOUR_API_KEY");
var content = new StringContent("{ \"receiver_address\": \"RECEIVER_ADDRESS\", \"amount\": TRX_AMOUNT }", Encoding.UTF8, "application/json");
var response = await client.PostAsync("https://fauxchain.io/api/simulate/tron", content);
var responseString = await response.Content.ReadAsStringAsync();
JavaScript Example
fetch('https://fauxchain.io/api/simulate/tron', {
    method: 'POST',
    headers: {
        'X-API-KEY': 'YOUR_API_KEY',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        receiver_address: 'RECEIVER_ADDRESS',
        amount: TRX_AMOUNT
    })
}).then(response => response.json())
  .then(data => console.log(data));
Ruby Example
require 'net/http'
require 'uri'
require 'json'

uri = URI.parse("https://fauxchain.io/api/simulate/tron")
request = Net::HTTP::Post.new(uri)
request["X-API-KEY"] = "YOUR_API_KEY"
request.content_type = "application/json"
request.body = JSON.dump({
  "receiver_address" => "RECEIVER_ADDRESS",
  "amount" => TRX_AMOUNT
})

response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) do |http|
  http.request(request)
end
puts response.body
Java Example
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://fauxchain.io/api/simulate/tron"))
    .header("X-API-KEY", "YOUR_API_KEY")
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{\"receiver_address\":\"RECEIVER_ADDRESS\",\"amount\":TRX_AMOUNT}"))
    .build();

HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Go Example
package main

import (
    "bytes"
    "encoding/json"
    "fmt"
    "net/http"
)

type RequestBody struct {
    ReceiverAddress string  `json:"receiver_address"`
    Amount          float64 `json:"amount"`
}

func main() {
    body := RequestBody{
        ReceiverAddress: "RECEIVER_ADDRESS",
        Amount: TRX_AMOUNT,
    }
    jsonBody, _ := json.Marshal(body)
    req, _ := http.NewRequest("POST", "https://fauxchain.io/api/simulate/tron", bytes.NewBuffer(jsonBody))
    req.Header.Set("X-API-KEY", "YOUR_API_KEY")
    req.Header.Set("Content-Type", "application/json")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    var result map[string]interface{}
    json.NewDecoder(resp.Body).Decode(&result)
    fmt.Println(result)
}
Important
Replace YOUR_API_KEY, RECEIVER_ADDRESS, and TRX_AMOUNT with your actual values. Remember that the minimum transaction amount is 0.000001 TRX, and TRON addresses typically start with 'T'.