Skip to content

Instantly share code, notes, and snippets.

import { WalletContextState } from "@solana/wallet-adapter-react";
import {
Transaction,
Connection,
SignatureStatus,
ComputeBudgetProgram,
} from "@solana/web3.js";
// Taken from:
// https://github.com/rpcpool/solana-prioritization-fees-api/
import {
@de7215
de7215 / solana_priority_fee_estimator.py
Created April 10, 2024 18:46
Solana Account Priority Fee Estimator: A Python script to fetch priority fee estimates for Solana accounts using the Helius RPC API.
from typing import Optional, Dict
import requests
import json
from utils import get_helius_api_key
ORE_ACCOUNTS = {
"BUS0": "9ShaCzHhQNvH8PLfGyrJbB8MeKHrDnuPMLnUDLJ2yMvz",
@de7215
de7215 / fees_snap.json
Last active April 9, 2024 09:18
ORE priority fees snap 259076672
{
"BUS0": {
"jsonrpc": "2.0",
"result": {
"priorityFeeLevels": {
"min": 0.0,
"low": 5000000.0,
"medium": 8000000.0,
"high": 10000000.0,
"veryHigh": 21210665.200000007,