GetOutAmount
Returns one DEX trade on Solana, where buy currency mint address is So1111…1112 and sell currency mint address is 3vgopg…DzVt: buy amount, buy currency mint address, buy decimals, sell amount, sell currency mint address and sell decimals.
What it returns
- buy amount
- buy currency mint address
- buy decimals
- sell amount
- sell currency mint address
- sell decimals
Filters
- buy currency mint address is So1111…1112
- sell currency mint address is 3vgopg…DzVt
The query
query GetOutAmount($inTokenAddress: String!, $outTokenAddress: String!) {
Solana {
DEXTrades(
where: {Trade: {Buy: {Currency: {MintAddress: {is: $inTokenAddress}}}, Sell: {Currency: {MintAddress: {is: $outTokenAddress}}}}}
limit: {count: 1}
) {
Trade {
Buy {
Amount
Currency {
MintAddress
Decimals
}
}
Sell {
Amount
Currency {
MintAddress
Decimals
}
}
}
}
}
}
Variables
{
"inTokenAddress": "So11111111111111111111111111111111111111112",
"outTokenAddress": "3vgopg7xm3EWkXfxmWPUpcf7g939hecfqg18sLuXDzVt"
}
Similar queries
- PumpSwap boost buy-and-burn trades · Solana · DEXTrades
- PumpSwap trades count by instruction method · Solana · DEXTrades
- FOMO App: One Wallet's Trades (Solana) · Solana · DEXTrades
- FOMO App: Latest Trades (Solana) · Solana · DEXTrades
- Solana dextrades for a token · Solana · DEXTrades