This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // EDIT: It's now much easier to get metadata from metaplex using the js package. | |
| // Check the new gist here: https://gist.github.com/dvcrn/a1b0ff0a0b4b3ab02aff44bc84ac4522 | |
| // I didn't want to edit this gist because a lot of people found it helpful to see how to manually decode a account | |
| import * as web3 from "@solana/web3.js"; | |
| import * as metadata from "./metadata"; // see metadata.ts | |
| const tokenAddress = new web3.PublicKey( | |
| "CxkKDaBvtHqg8aHBVY8E4YYBsCfJkJVsTAEdTo5k4SEw" | |
| ); |