make ab

Latest Created tokens on Solana

Returns 5 instructions and DEX trades on Solana, where program address is Tokenk…Q5DA, program method is initializeMint, initializeMint2 or 1 more and buy currency mint address is REPLACE_WITH_DYNAMIC_MINT_ADDRESSES, sorted by trade buy amount, highest first: block date, token mint, token owner, accounts address, account names, transaction signature, signer and 10 more fields.

By Angel · saved 20 January 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Solana(dataset: realtime, network: solana) {
    Instructions(
      where: {
        Transaction: {Result: {Success: true}}
        Block: {Time: {since: "2025-01-17T00:00:00Z"}} # Last 2 days
        Instruction: {
          Program: {
            Address: {is: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"}
            Method: {in: ["initializeMint", "initializeMint2", "initializeMint3"]}
          }
        }
      }
      orderBy: {ascending: Block_Time}
      limit: {count: 10} # Increasing to 10 for more data
    ) {
      Block {
        Date
      }
      Instruction {
        Accounts {
          Token {
            Mint
            Owner
          }
          Address
        }
        Program {
          AccountNames
        }
      }
      Transaction {
        Signature
        Signer
      }
    }
    DEXTrades(
      where: {
        Trade: {
          Buy: {
            Currency: {MintAddress: {in: [
              "REPLACE_WITH_DYNAMIC_MINT_ADDRESSES" # We need to replace this dynamically
            ]}}
          }
        }
        Block: {Time: {since: "2025-01-17T00:00:00Z"}} # Matching last 2 days
      }
      orderBy: {descending: Trade_Buy_Amount}
      limit: {count: 5} # Top 5 traded tokens
    ) {
      Trade {
        Buy {
          Currency {
            Name
            Symbol
            MintAddress
          }
          Amount
          Price
        }
        Sell {
          Currency {
            Name
            Symbol
            MintAddress
          }
          Amount
          Price
        }
      }
    }
  }
}

Similar queries