#set($whale = $webevent.getValue("data")) #set($type = $whale.get("type")) #if(!$type) #set($type = "btc") #end ## Pick an explorer base #set($chain = $whale.get("chain")) #if(!$chain) #set($chain = "bsc") #end ## EVM explorers #if($chain.equalsIgnoreCase("bsc")) #set($scanBase = "https://bscscan.com") #elseif($chain.equalsIgnoreCase("eth")) #set($scanBase = "https://etherscan.io") #elseif($chain.equalsIgnoreCase("polygon")) #set($scanBase = "https://polygonscan.com") #else ## default to BSC if unknown #set($scanBase = "https://bscscan.com") #end ## BTC explorer #set($btcBase = "https://www.blockchain.com/btc") 🐋 Whale Transaction Detected! #if($type == "evm") BNB #set($from = $whale.get("from")) #set($to = $whale.get("to")) #set($txh = $whale.get("txhash")) - Total Moved: $!whale.get("amount") - From Address: #if($from && $from != "") $from #else (contract creation / unknown) #end - To Address: #if($to && $to != "") $to #else (null / burn / contract) #end - Transaction: #if($txh && $txh != "") $txh #else (pending / unavailable) #end #else #set($tx = $whale.getTransaction()) #set($btctx = $tx.get("transactionhash")) - Total Bitcoin Moved: $!whale.get("btc") - Equivalent USD: $!whale.get("usd") - Transaction: #if($btctx && $btctx != "") $btctx #else (unavailable) #end #end