Skip to content

how can we mint on frontend using solana wallet adapter #1

@umaid56

Description

@umaid56

Hi Thanks for this, I am facing an issue while minting the SPLToken2022 using a React app. Encounters an issue when using the Solana wallet adapter as the signer.

const signerTokenAccount = await createAccount(
    connection,
    payer,   //Here
    mint,
    payer.publicKey,
    undefined,
    undefined,
    TOKEN_2022_PROGRAM_ID
  );
  console.log('signerTokenAccount :>> ', signerTokenAccount);
  await mintTo(
    connection,
    payer, // Here
    mint,
    signerTokenAccount,
    mintAuthority,
    mintAmount,
    [],
    undefined,
    TOKEN_2022_PROGRAM_ID
  );


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions