Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 8195

Token with metaplex metadata not showing properly on Solana.fm

$
0
0

I've created a test token with metadata via metaplex on the devnet, and it appears properly on the solana explorer, but when looking at the same token on Solana.fm it does not display the name, logo, or symbol. Does anybody have a clue if it's something related to Solana.fm not displaying certain tokens correctly, or is it possible I may have done something wrong?

Here is the code I used to create the token:

import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';import {  createFungible,  mplTokenMetadata,} from '@metaplex-foundation/mpl-token-metadata';import { clusterApiUrl } from '@solana/web3.js';import {  generateSigner,  keypairIdentity,  percentAmount,  some,} from '@metaplex-foundation/umi';import { writeFileSync, readFileSync } from 'fs';import { stringify } from "./helper.js";const umi = createUmi(clusterApiUrl('devnet')).use(mplTokenMetadata());function loadWallet(filename) {  const secretKey = JSON.parse(readFileSync(filename, 'utf-8'));  const keypair = umi.eddsa.createKeypairFromSecretKey(    new Uint8Array(secretKey)  );  return keypair;}const mainKeypair = loadWallet('.\\wallets\\id.json');umi.use(keypairIdentity(mainKeypair));const mint = generateSigner(umi);let result = await createFungible(umi, {  mint,  name: 'POTATO',  uri: 'https://bafybeiblxkv766rkkdyt2l7fjqn3rkv4tmshqpdbo57ratmsn5kcbzibum.ipfs.w3s.link/ipfs/bafybeiblxkv766rkkdyt2l7fjqn3rkv4tmshqpdbo57ratmsn5kcbzibum/potato.json',  decimals: some(7),  sellerFeeBasisPoints: percentAmount(0),  authority: mainKeypair.publicKey,  updateAuthority: mainKeypair.publicKey,}).sendAndConfirm(umi);console.log(result);

I'm just using the helper function as provided on Metaplex's website: https://developers.metaplex.com/token-metadata/mint#create-helpers


Viewing all articles
Browse latest Browse all 8195

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>