Skip to content

Instantly share code, notes, and snippets.

import { serialize, deserializeUnchecked } from 'borsh';
import { Connection, PublicKey, Struct } from '@solana/web3.js';
const Base58 = require("base-58")
import * as beet from '@metaplex-foundation/beet';
const url = "https://green-patient-dew.solana-mainnet.quiknode.pro/babd28401fd536319c117fc2caf3a02b8f2edd67/";
const solanaConnection = new Connection(url,'confirmed');
// metaplex source: https://github.com/metaplex-foundation/metaplex-program-library/blob/master/auction-house/js/src/generated/instructions/executeSale.ts#L17
@CamYuan
CamYuan / magicEdenParser.js
Created May 28, 2022 17:15 — forked from jp4g/magicEdenParser.js
Magic Eden On-Chain Transaction Parsing
const solanaWeb3 = require('@solana/web3.js');
// replace with private paid RPC for best functionality
const rpc = "https://ssc-dao.genesysgo.net";
// magic eden v2 solana program ID
const magicEdenPID = new solanaWeb3.PublicKey("M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K");
// only return confirmed transactions
const solana = new solanaWeb3.Connection(rpc, 'confirmed');
/**

Keybase proof

I hereby claim:

  • I am camyuan on github.
  • I am professorp (https://keybase.io/professorp) on keybase.
  • I have a public key ASB2Yrnw37aPU8Tsp3qkkHvlJVIbf_kvG_M95CAbrtfs5Ao

To claim this, I am signing this object:

''' tk_calculator_tiny2.py
A updated tiny calculator using the Tkinter GUI toolkit
you can type in functions contained in module math
for instance type in tan(pi/180) then click =
tested with Python27 and Python33 by vegaseat 13nov2013
'''
# avoid integer division by Python2
from __future__ import division
from math import *
from functools import partial