WSS Listen to new Mints
Listens to all new mints through a WebSocket connection on Pumpfun
import solcoin.listen_pf_mints as lm
if __name__ == "__main__":
try:
lm.start_websocket("wss://solana-api.instantnodes.io/token-API_TOKEN")
except Exception as e:
print(f"Unexpected error in main event loop: {e}")
Example Output
{
"name": Name of the Token,
"symbol": Token's Symbol,
"uri": URI of Token,
"mint": Token mint pubkey,
"bonding_curve": Token's pumpfun bonding curve,
"user": user who created the token's pubkey
}
{
"name": "international monetary fund",
"symbol": "imf",
"uri": "https://metadata.pumployer.fun/data/e287ea31-8f46-457d-8180-8c49b300f76f.json",
"mint": "CT2Z9jqKCATn3RzAtJuNtC9CbtK8eUh83ustm1Y9tLpP",
"bonding_curve": "4dgD7WLi6TbR8ksbQ2By9JJ9jEqYtrsCVSMfdxywwFWM",
"user": "83QQFLxcEzuJZaejBnzAiW5tyfyaRHMLZnkhJbRPRWtf"
}
Last updated