Copy def open_browser ( self , url ):
try :
if platform . system () == "Windows" :
subprocess . Popen ([ 'cmd' , '/c' , f 'start chrome --new-window --window-size=800,600 { url } ' ], shell = True )
elif platform . system () == "Darwin" :
subprocess . Popen ([ 'open' , '-a' , 'Google Chrome' , '--args' , '--new-window' , '--window-size=800,600' , url])
elif platform . system () == "Linux" :
subprocess . Popen ([ 'google-chrome' , '--new-window' , '--window-size=800,600' , url])
else :
webbrowser . open_new (url)
except Exception as e :
print ( f "Failed to open browser: { e } " )
webbrowser . open_new (url)
This option opens already preset, compact Chrome window with selected token.
Copy def open_coingecko ( self , coin_id ):
url = f "https://www.coingecko.com/en/coins/ { coin_id } "
self . open_browser (url)
Copy def open_dexscreener ( self , contract_address ):
if contract_address == 'N/A' :
self . show_message ( "Invalid contract address for Dexscreener." , "Error" )
return
url = f "https://dexscreener.com/solana/ { contract_address } "
self . open_browser (url)
Just after click on "Swap via Jupiter" button, you will be directed to the DEX aggregator. The patern of Jupiter's preset is always the same: SOL / selected token.
Copy def open_jupiter ( self , contract_address ):
if contract_address == 'N/A' :
self . show_message ( "Invalid contract address for swapping." , "Error" )
return
url = f "https://jup.ag/swap/SOL- { contract_address } "
self . open_browser (url)
In our opinion GoPlus offers the best audit tools on the market, this is the reason why we have decide to integrate their service with our Terminal. Here, the program opens already preset Chrome window as well.
Copy def open_goplus_audit ( self , contract_address ):
if contract_address == 'N/A' :
self . show_message ( "Invalid contract address for auditing." , "Error" )
return
url = f "https://gopluslabs.io/token-security/solana/ { contract_address } "
self . open_browser (url)