Skip to content

Instantly share code, notes, and snippets.

View crypt0miester's full-sized avatar

Cryptomiester crypt0miester

View GitHub Profile
@crypt0miester
crypt0miester / dynamicComputes.ts
Last active November 11, 2024 08:09
Dynamic Compute Units and priority fees calculation.
import {
AddressLookupTableAccount,
Blockhash,
ComputeBudgetProgram,
Connection,
Keypair,
PublicKey,
Transaction,
TransactionError,
TransactionInstruction,
@crypt0miester
crypt0miester / confirmTransaction.ts
Last active November 11, 2024 08:13
confirms the transaction via websocket race vs getBlockheight.
import {
Commitment,
Connection,
Context,
RpcResponseAndContext,
SignatureResult,
SignatureStatus,
TransactionSignature,
} from "@solana/web3.js";
@crypt0miester
crypt0miester / sol_devnet_airdroper.sh
Created January 25, 2023 13:26
solana devnet airdropper. airdrops 199.991 sols to the receiver address.
#!/bin/bash
# Airdrop amount
amount=2
# Number of addresses to generate
num_addresses=10
# Address to transfer all tokens to
receiver_address="CHANGE ME"