metaplex-foundation / js

A JavaScript SDK for interacting with Metaplex's programs
356 stars 182 forks source link

fund.ts:52 Uncaught (in promise) Error: failed to post funding tx - 4u..... (keep this id!) - Fund Tx Not Found #450

Open coolb0y opened 1 year ago

coolb0y commented 1 year ago

Screenshot from 2023-01-10 16-48-30

I am facing this issue . I have created keypair and added airdrop function to add fund to it. I am working on devnet . Please help to resolve it .

const connection = new Connection(clusterApiUrl("devnet"));
const wallet = Keypair.generate();
console.log('wallet :',wallet);

const metaplex = Metaplex.make(connection)
.use(keypairIdentity(wallet))
.use(bundlrStorage({address: "https://devnet.bundlr.network",
  timeout:60000
}));
  console.log('mataplex :',metaplex);

var fromAirdropSignature = await connection.requestAirdrop(
      wallet.publicKey,
      LAMPORTS_PER_SOL*1000000000,
    );

    console.log('fromAirdropSignature :',fromAirdropSignature);

   await connection.confirmTransaction(fromAirdropSignature);

    const {uri}= await metaplex.nfts().uploadMetadata({
      name: "My NFT",
      description: "My description",

    })
    // .then((res)=>
    // console.log(res)
    // );
    console.log('uri',uri);
cryptohypedev commented 6 months ago

Hey, any news on the error? I'm having the same issue. I tried the solution shared here [https://stackoverflow.com/questions/75064290/error-failed-to-post-funding-tx-on-metaplex] , but it doesn't seem to work.

regards!