Query Bets for token

Returns instructions on Solana, where program address is BetUrF…bx7V and program method is bet, sorted by block slot: slot, block time, accounts address, integer, big integer, bool, arguments name and arguments type.

By Aleksey · saved 18 July 2024 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query TokenBids($token: String!){
  Solana {
    Instructions(
      orderBy: {ascending: Block_Slot}
      where: {
        Transaction: {Result: {Success: true}}, Instruction: {
          Accounts: {
            includes: {
              Address: {
                not: $token
              }
            }
          }
          
          Program: {Address: {is: "BetUrFrUpueA1Knm4pca6pKdBK6apXrAWotPJ6sibx7V"}
            Method: {is: "bet"}}}}
    ) {
      Block {
        Slot
        Time
      }
      Instruction {
        Accounts {
          Address
        }
        Program {
          Arguments {
            Value {
              ... on Solana_ABI_Integer_Value_Arg {
                integer
              }
              ... on Solana_ABI_BigInt_Value_Arg {
                bigInteger
              }
              ... on Solana_ABI_Boolean_Value_Arg {
                bool
              }
            }
            Name
            Type
          }
        }
      }
    }
  }
}

Variables

{
  "token": "FdrUo8ysPaWRnkPYRJbg6tjKs1audX1oZXei1ukMpump"
}

Similar queries