Tron Fees API
In this document, we will explore several examples related to Tron Fees data. We also have PumpFun APIs to track Pump Fun token swaps, PumpSwap APIs if you want to track the token after it has been migrated to PumpSwap AMM. Additionally, you can also check out our Moonshot APIs, FourMeme APIs. These APIs can be provided through different streams including Kafka for zero latency requirements. Please contact us on telegram.
If you want fastest data without any latency, we can provide Kafka streams, please fill this form for it. Our Team will reach out.
Get Trades with Transaction fees
Get a list of successful DEX trades on Tron along with the transaction fee details for each trade. You can test the query here.
query MyQuery {
Tron {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Block {
Time
Number
}
Trade {
Buyer
Seller
AmountInUSD
Amount
PriceInUSD
Price
Dex {
ProtocolName
}
Currency {
SmartContract
Name
}
Side {
Buyer
Seller
Type
AmountInUSD
Amount
Currency {
Name
SmartContract
}
}
}
Transaction {
Hash
FeeInUSD
Fee
FeePayer
Signatures
}
}
}
}
Get Transfers by an address and Transaction fees paid for the transfer
Track wallet token transfers and get the fees paid for each by the address. You can test the query here.
query MyQuery {
Tron {
Transfers(
limit: {count: 10}
orderBy: {descending: Block_Time}
where: {Transaction: {Result: {Success: true}, FeePayer: {is: "TBgP9dqfZPfxLXPKPyXZCUT1XScTa3L3YW"}}}
) {
Block {
Time
}
Transfer {
Currency {
Name
SmartContract
Symbol
}
Sender
Receiver
}
Transaction {
Fee
FeeInUSD
FeePayer
Hash
Signatures
}
}
}
}
Total transaction fees paid by an account
Get the total fees (in SOL and USD) paid by a specific Tron account across all transfers. You can test the query here.
query MyQuery {
Tron {
Transfers(
where: {Transaction: {Result: {Success: true}, FeePayer: {is: "TBgP9dqfZPfxLXPKPyXZCUT1XScTa3L3YW"}}}
) {
Total_fees_paid_in_USD:sum(of:Transaction_FeeInUSD)
Total_fees_paid_in_TRX:sum(of:Transaction_Fee)
}
}
}
Transaction fees paid by an account for each currency transfers
Get total fees paid by a Tron account for transferring each type of token. You can test the query here.
query MyQuery {
Tron {
Transfers(
where: {Transaction: {Result: {Success: true}, FeePayer: {is: "TBgP9dqfZPfxLXPKPyXZCUT1XScTa3L3YW"}}}
) {
Transfer{
Currency{
Name
Symbol
}
}
Total_fees_paid_in_USD:sum(of:Transaction_FeeInUSD)
Total_fees_paid_in_TRX:sum(of:Transaction_Fee)
}
}
}