Solana Fees API
In this document, we will explore several examples related to Solana 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 Solana along with the transaction fee details for each trade. You can test the query here.
query MyQuery {
Solana {
DEXTradeByTokens(
where: {Transaction: {Result: {Success: true}}}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Block {
Time
Slot
}
Trade {
Account {
Address
Token {
Owner
}
}
AmountInUSD
Amount
PriceInUSD
Price
Dex {
ProtocolName
}
Currency {
MintAddress
Name
}
Side {
Account {
Address
Token {
Owner
}
}
Type
AmountInUSD
Amount
Currency {
Name
MintAddress
}
}
}
Transaction {
Signer
Signature
FeeInUSD
Fee
FeePayer
}
}
}
}
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 {
Solana {
Transfers(
limit: {count: 10}
orderBy: {descending: Block_Time}
where: {Transaction: {Result: {Success: true}, FeePayer: {is: "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"}}}
) {
Block {
Time
}
Transfer {
Currency {
Name
MintAddress
Symbol
}
Sender {
Address
}
Receiver {
Address
}
}
Transaction {
Fee
FeeInUSD
FeePayer
Signer
Signature
}
}
}
}
Total transaction fees paid by an account
Get the total fees (in SOL and USD) paid by a specific Solana account across all transfers. You can test the query here.
query MyQuery {
Solana {
Transfers(
where: {Transaction: {Result: {Success: true}, FeePayer: {is: "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"}}}
) {
Total_fees_paid_in_USD:sum(of:Transaction_FeeInUSD)
Total_fees_paid_in_SOL:sum(of:Transaction_Fee)
}
}
}
Transaction fees paid by an account for each currency transfers
Get total fees paid by a Solana account for transferring each type of token. You can test the query here.
query MyQuery {
Solana {
Transfers(
where: {Transaction: {Result: {Success: true}, FeePayer: {is: "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"}}}
) {
Transfer{
Currency{
Name
Symbol
}
}
Total_fees_paid_in_USD:sum(of:Transaction_FeeInUSD)
Total_fees_paid_in_SOL:sum(of:Transaction_Fee)
}
}
}