Spaces:
Sleeping
Sleeping
Download inspect_lore.py from LAEGEND/solana-runner-bot: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/spaces/LAEGEND/solana-runner-bot/resolve/main/inspect_lore.py
- Command line
-
hf download hf://spaces/LAEGEND/solana-runner-bot/inspect_lore.py
-
curl -L -o inspect_lore.py https://huggingface.co/spaces/LAEGEND/solana-runner-bot/resolve/main/inspect_lore.py
1.33 kB
| import sys | |
| sys.stdout.reconfigure(encoding='utf-8') | |
| from metadata import get_token_details, fetch_dexscreener_info, fetch_rpc_account_info, fetch_uri_json | |
| tokens = [ | |
| ('Dacity', 'nxPqZ4F7ux8Vph5NFu25rEP6Kx9Gr1U6Fmj36Rjpump'), | |
| ('ALON', 'ALoNmPYp9HxW5Gi4QHGRomXoBuwepwZWcygtvdEXzfBH'), | |
| ('DOPE', '33jENUQnjoitkMFpvNJcSHyLAHFWJuHwT6E3E8CNpump'), | |
| ('SI', '2A9LCz6XkZwHPfoUFBV98mNKw4ETYbGcT3Xsp7inpump'), | |
| ('SPCX', 'SPCXxcqXj6e5dJDVNovHN8744zkbhM2bYudU45BimGb'), | |
| ('Incognito', 'BBZ3sgY66QVsxcXXBVpuQfDzH2b5Ub8qmfKNQJjBpump'), | |
| ('YAJUCoin', 'BRrc4qh3t1wpE97FETgea1DEefu8A95Cu3g9vcN5pump') | |
| ] | |
| for name, mint in tokens: | |
| d = get_token_details(mint) | |
| print(f"\n=======================================================") | |
| print(f"[{name}] ${d['symbol']} ({d['name']})") | |
| print(f"=======================================================") | |
| print("Lore:", repr(d['lore'])) | |
| print("Twitter:", d['twitter']) | |
| print("Website:", d['website']) | |
| # Check raw URI JSON | |
| rpc_m = fetch_rpc_account_info(mint) | |
| if rpc_m and rpc_m.get('uri'): | |
| raw_j = fetch_uri_json(rpc_m.get('uri')) | |
| print("Raw URI:", rpc_m.get('uri')) | |
| print("Raw URI Keys:", list(raw_j.keys())) | |
| if 'description' in raw_j: | |
| print("Raw description in JSON:", repr(raw_j.get('description'))) | |