Skip to content

Instantly share code, notes, and snippets.

@mertimus
mertimus / sales-bot.js
Last active July 4, 2022 12:45
Solana NFT bot
const solanaWeb3 = require('@solana/web3.js');
const { Connection, programs } = require('@metaplex/js')
const axios = require('axios');
// Check if the env variables have been set
if(!process.env.PROJECT_ADDRESS || !process.env.DISCORD_URL) {
console.log("Please set your environment variables!")
return;
}
@t0brig01
t0brig01 / EESales.py
Last active December 18, 2021 02:04
import threading
from types import MethodWrapperType
from discord.embeds import Embed
import requests
import discord
import json
import sys
import time
import urllib.parse
from datetime import date, datetime, timedelta
@aheckmann
aheckmann / burn.md
Last active February 22, 2025 10:59
How to get rid of Solana spam NFTs
  1. Open a private tab
  2. Create a completely new wallet by visiting https://www.sollet.io
  3. You will see a screen displaying "Create new wallet" and a list of seed words
  4. Copy the seed words
  5. Check the box next to "I have saved these words in a safe place."
  6. Click "DOWNLOAD BACKUP MNEMONIC FILE (REQUIRED)". This downloads your seed phrase. Delete this file.
  7. Click "continue"
  8. Paste the seed words when it asks you to, then click continue
  9. Click "Main Account" at the top of the screen to copy the new wallet address. This address is where you'll send your spam NFTs.
  10. Open your Phantom wallet (assuming you are using Phantom)
@jamland
jamland / Trick Candy Machine Upload command from Jordan.md
Last active April 17, 2022 22:34
Trick from j about using devnet uploaded stuff on mainnet (got from office hours)

Using this trick you can test your collection on devnet, verfiy everything on devnet, and don't run arweave uploads twice

  1. Upload all files to devnet, verify files and metadata
  2. Rename devnet-cache to mainnet-beta-temp
  3. Remove program & candyMachineAddress field,
  4. Rename env -> "env": "mainnet-beta"
  5. Set all "onChain": true -> "onChain": false
  6. Run upload command. It will verify and register uploaded data to mainnet-beta
// 1. prvi deo koda kopiras u konzolu na https://solanart.io/collections/solanaslugs
// - ako zelis vise slugova, moras da skrolujes dole da ih sve ucita
// zatim kopiraj ovaj code ga u konzolu:
const slugArray = Array.from(document.querySelectorAll('.card-title'))
const copy = slugArray.map(e => Number(e.outerText.split(" - ")[1]))
copy
// to sto ti izbaci kao rezultat, ides desni klik i "copy object"
@davoclavo
davoclavo / metaplex.md
Created October 11, 2021 16:13
Deploy Metaplex suite to local cluster

Deploy Metaplex

git clone [email protected]:metaplex-foundation/metaplex.git

cd metaplex/rust

cargo build-bpf

solana config set --url localhost

solana-test-validator

@davoclavo
davoclavo / account_codec_program.md
Created October 1, 2021 23:42
Proposal: Account Codec Program

Given that it is kind of tricky to know how to read data from accounts, it would be really useful to have an "Account Codec Program" as a central repository of Program Accounts type schemas.

I'm thinking with this program you could register Program Account schemas to know what format to use to Decode them. As an analogy, its like storing the Anchor's IDL on chain, or also akin to how the Metaplex Metadata Token program is the standard where you define metadata for an NFT Mint

E.g.

Some program's account:

declare_id!("SomeProgramPubkey987654321")
struct Person {
@mattstauffer
mattstauffer / articles-and-projects.md
Last active October 26, 2021 07:29
SOL articles and projects

Tutorials

Tools to clone and use

@BTC_doctor @solcialofficial No, but the founder is a friend. Curious to know what makes you think that? Sep 29, 2021
@rafafslv Learning through his own mistakes is the best way in my opinion Maybe dont be too focus on the short term, look at trend, make scenarios, have a plan I said maybe bc there are a dozens way to trade. Find yours. GL Sep 28, 2021
@DiGomorra I reply bc you said "excuse me" but read my feed it's not like I made 10k tweets I take everything into account: TA, onchain data, but today mostly market sentiment and trend Look at this thread https://t.co/unUZP8RDYy Sep 28, 2021
@rafafslv I dont make "fast" trade anymore and I think it's a waste of time In a bull market: long the fear, tp in euphoria, repeat If the trend is uncertain: stay on the side or "gamble" on the break In a bear market: short any up or even better take vacations Sep 28, 2021
@BTC_doctor No Sep 28, 2021
@ConcretCapital Cheers man Sep 28, 2021
@cryptoaladeen Ahahahah I still have only one that I bought from you :) Sep 2