This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| Account, | |
| clusterApiUrl, | |
| Connection, | |
| PublicKey, | |
| sendAndConfirmTransaction, | |
| SystemProgram, | |
| Transaction, | |
| } from '@solana/web3.js'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import random | |
| import smtplib | |
| import ssl | |
| from email.mime.text import MIMEText | |
| from email.mime.multipart import MIMEMultipart | |
| host = "" | |
| port = 465 | |
| sender = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/portto/solana-go-sdk/client" | |
| "github.com/portto/solana-go-sdk/client/rpc" | |
| "github.com/portto/solana-go-sdk/common" | |
| "github.com/portto/solana-go-sdk/program/sysprog" | |
| "github.com/portto/solana-go-sdk/types" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import requests | |
| from bs4 import BeautifulSoup | |
| def fetch_coingecko_html(): | |
| # make a request to the target website | |
| r = requests.get("https://www.coingecko.com") | |
| if r.status_code == 200: | |
| # if the request is successful return the HTML content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import requests | |
| from bs4 import BeautifulSoup | |
| bot_token = "" | |
| chat_id = "" | |
| def get_coin_stats(coin): | |
| r = requests.get(f"https://www.coingecko.com/en/coins/{coin.lower()}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/json" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |