Query editor
WITH chainids AS (SELECT 'Ethereum' AS chain, 30101 AS lzIdUNION ALLSELECT 'Optimism' AS chain, 30111 AS lzIdUNION ALLSELECT 'Arbitrum' AS chain, 30110 AS lzIdUNION ALLSELECT 'Base' AS chain, 30184 AS lzIdUNION ALLSELECT 'Linea' AS chain, 30183 AS lzIdUNION ALLSELECT 'Scroll' AS chain, 30214 AS lzIdUNION ALLSELECT 'Polygon PoS' AS chain, 30109 AS lzIdUNION ALLSELECT 'Avalanche C-Chain' AS chain, 30106 AS lzIdUNION ALLSELECT 'Binance' AS chain, 30102 AS lzId),stargate_v2_native_sent_temp AS (SELECTcontract_address,evt_tx_hash as tx_hash,evt_block_time as date_time,'Base' as source,'bridge' as action,dstEid as destination,amountSentLD as amount,amountReceivedLD as receiving_amount,fromAddress,guidFROM stargate_v2_base.StargatePoolNative_evt_OFTSentUNION ALLSELECTcontract_address,evt_tx_hash as tx_hash,evt_block_time as date_time,'Arbitrum' as source,'bridge' as action,dstEid as destination,amountSentLD as amount,amountReceivedLD as receiving_amount,fromAddress,guidFROM stargate_v2_arbitrum.StargatePoolNative_evt_OFTSentUNION ALLSELECTcontract_address,evt_tx_hash as tx_hash,evt_block_time as date_time,'Ethereum' as source,'bridge' as action,dstEid as destination,amountSentLD as amount,amountReceivedLD as receiving_amount,fromAddress,guidFROM stargate_v2_ethereum.StargatePoolNative_evt_OFTSentUNION ALL