Questions tagged [solana-web3js]

322 questions
0
votes
0 answers

how to Mint a NFT on solana using Phantom wallet?

I have developed an NFT minting API using Node.js and integrated it with React.js. Now, I am trying to mint NFTs through a Phantom wallet. I am unsure which function to call - Metaplex or Solana Web3 - and I am having difficulty managing the…
Umaid
  • 1
  • 2
0
votes
0 answers

Nft is not minted using metaplex and arweave metadata

That's my first time creating an nft minting dapp and it's not working. I am using web3.js, connected to phantom wallet on devnet, got some sols, and trying to mint nft. For now minting arweave metadata from some tutorial. I would like to keep the…
Nitsa
  • 53
  • 8
0
votes
0 answers

How to get MATIC balance in phantom wallet?

I have read this about depositing MATIC to phantom wallet. I would like to get balance of it from React. When getting SOL balance in phantom wallet, I used getBalance method. Is there any similar method in solana web3 to get MATIC balance of phantom…
Alchemist
  • 325
  • 1
  • 17
0
votes
0 answers

Solana vanity wallet key didn't generate a seed phrase for me?

I was creating a token on solana and was wondering why didn't I get a wallet seed phrase when I created the wallets needed for air dropping SOL and for the token it self. This is the command used for creating the wallets solana-keygen grind…
0
votes
0 answers

ReferenceError: Event is not defined for @wallet-standard/wallet

`yarn run v1.22.15 $ next dev warn - Port 3000 is in use, trying 3001 instead. ready - started server on 0.0.0.0:3001, url: http://localhost:3001 event - compiled client and server successfully in 42.6s (1214 modules) wait - compiling / (client…
0
votes
0 answers

why am I getting an invalid token standard error?

I want to update the metadata of an NFT using metaplex js library, I followed the docs but I keep gettin an invalid token standard error. const new_uri = await metaplex.nfts().uploadMetadata( uri_obj, ) await metaplex.nfts().update({ …
0
votes
0 answers

Can't invoke method with phantom provider

I'm trying to create a transaction then use phantom provider to let the user sign and send the transaction. this is how my transaction is constructed: if (method === 'sol'){ const amount = sol_dict[req.body.rank]; const lamports…
0
votes
0 answers

How do I convert Solana Wallet keypair to KeyObject in NodeJs?

const keypair = 'wallet_keypair'; const keypairBuffer = new Uint8Array(base58.decode(keypair)); const user1PrivateKey = base58.encode(keypairBuffer.slice(0, 32)); const user1PublicKey = base58.encode(keypairBuffer.slice(32)); I'm currently doing…
ZeuS
  • 13
  • 1
  • 5
0
votes
2 answers

Solana, verify a signature with python

I'm trying to authenticate users via the phantom wallet but I cannot verify the signature on the backend. Here's my frontend code: const response = await solana.connect(); console.log("wallet account ",…
Nika110
  • 29
  • 7
0
votes
1 answer

npm install @solana/web3.js from github

const web3 = require("@solana/web3.js"); I'm trying to run @solana/web3.js from a fork so I need to install it using npm i https://github.com/redazul/solana-web3.js.git the fork is being done to add console.logs for educational purposes I also…
azuldev
  • 570
  • 6
  • 10
0
votes
0 answers

How to decode CandyMachine instruction type?

How to decode CandyMachine instruction type? I can decode Spl instructions: import * as spl from '@solana/spl-token'; import { TransactionInstruction } from '@solana/web3.js'; import { u8 } from '@solana/buffer-layout'; import { SplToken,…
Narnik Gamarnik
  • 1,049
  • 1
  • 16
  • 35
0
votes
0 answers

Solana auctionHouse sell instruction showing error Types of property 'asset' are incompatible

The following code to sell a nft working perfectly with nodejs .But when I try to run it in reactjs it is showing error. Code is ` const auctionHousee = await metaplex .auctionHouse() .findByAddress({ address: new…
0
votes
1 answer

Spl token not getting minted using spl js library

Here's my code i'm trying to mint spl token using spl js library: (async () => { const connection = new web3.Connection(web3.clusterApiUrl("devnet")); let secretKey = Uint8Array.from([ 186, 104, 237, 47, 123, 227, 2, 226, 150, 7, 169, 40,…
S M
  • 5
  • 2
0
votes
1 answer

Transaction simulation failed: Error processing Instruction 0: custom program error: 0xc at Connection.sendEncodedTransaction

I'm working on solana anchor program with solana web3. When I call the function in my custom program, I'm getting Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0xc at…
0
votes
0 answers

Solana Web3 | Transaction success and returns no signature in some cases

I'm working on a web3-powered application with Solana blockchain integrated inside. I successfully connected with Solana and do the blockchain operations using their web3 APIs. The connection status is set to a "confirmed" flag for transaction…
insaneray
  • 75
  • 1
  • 11