Track wallet address trades on Solana

rrqol123
Tue, 21 Jan 2025 18:27:27 +0000
GraphQL API

Hey,

I’ve seen that the correct query for tracking a specific wallet address trades across the Solana blockchain (such as trades from Solana to memcoins) is:

subscription {
Solana {
DEXTrades(
where: {Trade: {Buy: {Account: {Address: {is: “wallet-address”}}}}}
) {
Trade {
Dex {
ProgramAddress
ProtocolFamily
ProtocolName
}
Buy {
Amount
Account {
Address
}
Currency {
MetadataAddress
Key
IsMutable
EditionNonce
Decimals
CollectionAddress
Fungible
Symbol
Native
Name
}
Order {
LimitPrice
LimitAmount
OrderId
}
AmountInUSD
PriceInUSD
Price
}
Market {
MarketAddress
}
Sell {
Account {
Address
}
Currency {
MetadataAddress
Key
IsMutable
EditionNonce
Decimals
CollectionAddress
Fungible
Symbol
Native
Name
}
}
}
Instruction {
Program {
Address
AccountNames
Method
Parsed
Name
}
}
}
}
}

But for some reason it doesn’t work. Is there a mistake here somewhere ?

4 posts - 2 participants