Install Rust.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shClone the source:
git clone [email protected]:samuelvanderwaal/metaplex_decoder.gitChange directory and install or build with Rust:
cd metaplex_decodercargo install --path ./or
cargo build --releaseCreate a settings file in a configuration directory in the same directory you run the code.
// settings.json
{
"network": "https://api.mainnet-beta.solana.com",
"mint_accounts": ["6RB1jyer1XKJJ6X3RdmoXLV1ixdojXLjsSCsFBPLWsam"]
}Run the program:
./metaplex_decoder
This will loop over all the specified mint accounts and create a metadata file with all the fields from the Rust Data struct.