Optimism GraphQL queries
61 public GraphQL queries on Optimism, saved by 21 authors and ready to run in the Bitquery IDE: transfers (10), DEX trades by token (10), DEX trades (9), transactions (8) and balance updates (8).
Transfers on Optimism
- optimism network transfer count of an address TO – Returns transfers on Optimism, where transfer sender is 0xcB1C…9905: count.
- optimism network transfer count of an address FROM – Returns transfers on Optimism, where transfer receiver is 0xcB1C…9905: count.
- Real time Optimism token transfers – Streams transfers on Optimism as they happen: transfer amount, sender, transfer ID, receiver, currency symbol, smart contract, currency name and 3 more fields.
- Real time NFT token transfers on Optimism – Streams transfers on Optimism as they happen: transfer amount, sender, transfer ID, receiver, currency symbol, smart contract, currency name and 3 more fields.
- NFT Token Transfers API – Streams transfers on Optimism as they happen: transfer amount, amount in USD, currency name, smart contract, currency symbol, fungible, has URI and 5 more fields.
DEX trades by token on Optimism
- top tokens on optimism – Returns 100 DEX trades by token on Optimism, where block time since 2024-11-12, sorted by count, highest first: currency symbol, smart contract, fungible, currency name, trade amount, amount in USD, unique of trade side currency smart contract and 6 more fields.
- trending pairs on optimism – Returns 100 DEX trades by token on Optimism, sorted by USD, highest first: currency symbol, currency name, smart contract, protocol name, side currency symbol, side currency name, side smart contract and 8 more fields.
- UniversalSearch EVM – Returns one DEX trade by token on Ethereum, BNB Chain, Base, Arbitrum, Polygon, Optimism, Robinhood Chain, Solana and Tron, where currency smart contract is TBhCa8…dk6t, transaction from is TBhCa8…dk6t and currency mint address is TBhCa8…dk6t: currency symbol, currency name, smart contract, protocol
- AfricaCryptoChainx – Configure query attributes for AfricaCryptoChainx index with searchable fields including name, symbol, description, and category. Enable faceting on category, network, status, and type. Set access control with API key restrictions, secured user tokens, separate read/write permissions, expiration tim
- Optimism pair list – Returns 100 DEX trades by token on Optimism, where block time after 2024-09-30, sorted by USD, highest first: currency symbol, currency name, smart contract, protocol name, side currency symbol, side currency name, side smart contract and 8 more fields.
DEX trades on Optimism
- optimism liq pools – Returns DEX trades on Optimism, where buy currency smart contract is 0x9560…88db, sorted by count, highest first: count, owner address, smart contract, buy currency name, buy currency symbol, buy protocol name, buy smart contract and 4 more fields.
- Optimism stream dex trades – Streams DEX trades on Optimism as they happen: block number, block time, buy currency symbol, buy amount, sell currency symbol and sell amount.
- List of DEX supported – Returns DEX trades on Optimism: owner address, protocol name, protocol family and protocol version.
- Latest trades on optimism webhook – Streams DEX trades on Optimism as they happen: block time, protocol name, protocol family, smart contract, buy amount, buy buyer, buy seller and 10 more fields.
- Velodrome v2 Pool Swaps on Optimism – Latest swaps of the VELO/WETH Velodrome v2 pool on Optimism from the DEXTrades cube
Transactions on Optimism
- EVM wallet hashes – All transactions from a BSC address. Limit applied.
- optimism avg, sum & sum in usd fees – Returns transactions on Optimism, where block date since 2024-12-01 and block date till 2024-12-05: average of fee sender fee, sum of fee sender fee, sum of fee sender fee in USD and block date.
- transactions – Returns transactions on Ethereum, BNB Chain, Base, Arbitrum, Optimism and Polygon, where block date is 2026-05-05: count.
- not work transaction count in Optimism – Returns transactions on Optimism, sorted by block month, highest first: block date, chain ID and count.
- Opt Gas paid by an address in USD – Returns transactions on Optimism: sum of fee sender fee in USD.
Balance updates on Optimism
- multi-chain NFT updates – Returns 10 balance updates on BNB Chain, Ethereum, Arbitrum and Optimism, where balance update address is 0xaba7…4d03, sorted by balance update amount, highest first: fungible, currency symbol, smart contract, currency name, has URI, delegated, decimals and 4 more fields.
- Balance updates of addresses on Optimism – Streams balance updates on Optimism as they happen: balance update address, balance update amount, balance update ID, URI, balance update type, block number, block time and transaction hash.
- missing balance updates – Returns balance updates on Optimism, where transaction hash is 0x3460…c743 and block number is 21041001: balance update address and balance update amount.
- MyQuery EVM – Returns 10 balance updates on BNB Chain, Ethereum, Arbitrum and Optimism, where balance update address is 0x13d6…6478, sorted by balance update amount, highest first: currency symbol, smart contract, currency name, decimals, balance update amount and balance update address.
- FrogWifHat – Returns 10 blocks and balance updates on Optimism and Tron, where balance update type is uncle_reward, balance update type is not uncle_reward and balance update amount is 100, sorted by price average mean: balance update address, balance update amount, amount in USD, balance update ID, balance upda