Show / Swap / Audit
Under details of each token you will have 3 options:
Show on: Coingecko (for TOP 250 list) Dexscreener (for CA searched)
Swap via Jupiter
Audit via GoPlus
Function, which opens browser for all external windows:
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)
Show on CoinGecko/Dexscreener
This option opens already preset, compact Chrome window with selected token.
def open_coingecko(self, coin_id):
url = f"https://www.coingecko.com/en/coins/{coin_id}"
self.open_browser(url)
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)
Swap via Jupiter
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.
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)
Audit via GoPlus
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.
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)
Last updated