Questions tagged [solana]

Use for questions about programming on the Solana Blockchain Platform or using its Anchor Framework. Use with the appropriate language tag.

Filter by
Sorted by
Tagged with
1 vote
0 answers
4 views

How to get SPL token metadata using solscan api

I am trying to get token metadata using solscan api. I have api key and used below code. const data = await fetch(`https://pro-api.solscan.io/v1.0/nft/token/info/${tokenAddress}`, { "...
  • 252
1 vote
0 answers
7 views

How do I fix Metaboss Update Error 0x6c when trying to upgrade creator?

trying to upgrade metadata for an NFT collection. However im getting this error code and cant figure what it means: Action failed with error: RPC response error -32002: Transaction simulation failed: ...
  • 11
0 votes
0 answers
17 views

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 ...
  • 53
0 votes
1 answer
14 views

Metaplex: Verifying Collection and Creator in bulk

I found out that metaplex provides a function to verify collection and creator for a single nft, but I would like to know if there is a way to flip the collection and creator's verified flag to 1 for ...
0 votes
2 answers
35 views

How to resolve E0658 error code on Anchor?

I think I acidentally installed rust usingrustup and rustc both which is causing this error! How can I fix this? error[E0658]: use of unstable library feature 'bool_to_option' --> src/stake/...
0 votes
1 answer
26 views

solnet problem in response for making Token : Blockhash not found

I use Solnet to communicate with solana, I got this error in response of transaction : Transaction simulation failed: Attempt to debit an account but found no record of a prior credit. I did it ...
-1 votes
0 answers
10 views

I have "Transaction Expired" error when sign nonce transaction on mainnet using solana/web3.js

On devnet it works fine, but only on mainnet it doesn't work. I created a transaction like below: const transaction = new web3.Transaction({ feePayer: publicKey!, blockhash: nonce, ...
-1 votes
1 answer
27 views

How to create a Solana program to constantly check wallet funds and transfer them to another wallet?

I'm new in web3 but experimented programmer. I want to try to make my first smart contract in Solana. I have a Phantom Solana wallet, and I want to create a smart contract that checks if my wallet ...
  • 3
-1 votes
0 answers
17 views

how to interact with anchor programs inside solana mobile stack

i am new to Solana ecosystem and having a problem with SMS I am trying to use anchor methods inside example-react-native-app given inside the mobile-wallet-adapter github. i am not able to find any ...
0 votes
1 answer
49 views

Rust not using correct version

I'm trying to follow a simple tutorial for getting started in Solana. When I run anchor build, I get an error that is based on my rust version. However, this is not the version that my terminal says I ...
  • 173
0 votes
0 answers
27 views

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 ...
  • 252
0 votes
0 answers
23 views

Solana TPU client, sometimes the transaction doesn't go through

I'm having some trouble utilizing TPU client (I want to send my transactions directly to TPU leaders instead of RPC url). The language is TypeScript and the package I'm using is https://www.npmjs.com/...
  • 181
0 votes
0 answers
9 views

i got this err from createlisting in auctionhouse solana devnet TypeError: Cannot read properties of undefined (reading 'toBuffer')

this is my err when im create listing in the auction house usign solana devnet i have attached my code below: const { listing, sellerTradeState } = await metaplex .auctionHouse() .list({ auctionHouse,...
0 votes
0 answers
14 views

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 ...
0 votes
0 answers
15 views

Why I am getting while uploading images while creating nft

ts-node C:/Users/aditya/Desktop/PracticeCodes/NftMinting/~/deprecated-clis/src/candy-machine-v2-cli. ts upload \ -e devnet \ -k payer.json \ -cp config.json \ ./assets Using this command but getting ...
-1 votes
1 answer
39 views

How to get collection name from a candy machine address in Solana?

Given a candy machine address how do you find the name of the collection? https://explorer.solana.com/address/6TNFBdZR3kBYDxpqFkTVxVykk4ugUxL5xm7YnzWQ32WZ?cluster=devnet Here's an example of the ...
0 votes
0 answers
19 views

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....
0 votes
0 answers
28 views

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( ...
0 votes
0 answers
13 views

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 = ...
0 votes
0 answers
44 views

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(...
  • 3
0 votes
1 answer
21 views

Error trying to create seahorse init project, anchor init failed

I'm trying to create a new project in Solana with seahorse but I have this issue seahorse init project I tried updating everything but still having the same problem. I already have anchor installed ...
0 votes
0 answers
61 views

Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 1: An account required by the instruction is missing

SolAccountInfo *store_account = &params->ka[0]; uint64_t ref_comission = *store_account->lamports * 0.2; SolPubkey pk_holder = { .x = { 0x04 ,0x34 ,0x1d ,0xfa ,0xbf ,0xb9 ,0x24 ,0x0d ,0xda ...
0 votes
0 answers
11 views

Linssl error in the kali linux in anchor build

BPF SDK: /root/.local/share/solana/install/releases/1.9.5/solana-release/bin/sdk/bpf cargo-build-bpf child: rustup toolchain list -v cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-...
0 votes
1 answer
16 views

How to update market data to existing SPL-token?

I made a mistake when uploading market data of Min. Order Size and Price Tick. This has caused me to be unable to display my trading pair on openbook. After about 10 minutes of uploading, I can't find ...
0 votes
1 answer
153 views

Type Error Cannot read properties of undefined (reading 'Web3Provider') at fetchingData

It must show console log Big Number instead its showing error. expected output error occured I am new to blockchain. I have connected the private key of hardhat with wallet but its showing Type Error. ...
0 votes
0 answers
105 views

is it possible to create a solana account using php?

I've only recently started learning solana and have yet to find any information on whether it's possible to create a new account using php. Is it possible to generate a new key pair and create a new ...
  • 2,417
0 votes
1 answer
59 views

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 ...
  • 528
1 vote
1 answer
80 views

How to pull the total balance on an SPL token for a wallet address in solana (python)

I'm looking to get the token balance for an SPL token in solana based on the: Wallet address of the token holder The token address How can I do this? I thought it would be something like: import ...
0 votes
0 answers
33 views

Unhandled RunTime Error - MetaplexError: Account Not Found

I'm trying to create an NFT collection and subsequent mint site [using the Metaplex SDK] for my project but I'm experiencing an error when I run the localhost dev site.Metaplex Error I've uploaded my ...
0 votes
0 answers
32 views

Metaplex Candy Machine UI - Mint Failed Error

Whenever I try to mint an NFT from a Candy Machine V2 using the Metaplex Candy Machine UI I receive the error "Mint Failed". From the second try the minting process works flawlessly. How I ...
1 vote
0 answers
143 views

how to sign message in solana-web3.js?

i want to sign message in solana-web3.js but i can't find signMessage function like the one in phantom extension using phantom extension will give result like this: {"signature":"...
  • 11
1 vote
1 answer
98 views

Solana web3 js failed to get recent blockhash error 403

I am trying to implement sendtransaction for phantom In my application. here's my code: sendTransaction(amount, depositWallet) { (async () => { try { const resp = await window.solana....
  • 29
0 votes
0 answers
36 views

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 '@...
0 votes
1 answer
66 views

Solana Anchor Lang: anchor init creates project with TypeError: Cannot read properties of undefined (reading 'methods')

Confused about what could have caused this to stop working, I installed solana and anchor and was able to test projects. anchor --version anchor-cli 0.26.0 nvm use 16.16.0 Now using node v16.16.0 (npm ...
  • 153
1 vote
2 answers
66 views

Unable to Sign Solana Transaction using solana-py throws not enough signers

using solana library from pip pip install solana and then trying to perform withdraw_from_vote_account txn = txlib.Transaction(fee_payer=wallet_keypair.pubkey()) # txn.recent_blockhash = blockhash ...
  • 6,682
0 votes
0 answers
22 views

How to generate a hashlist of solana nfts with a specific trait

I'm trying to figure out what the best way to generate a hashlist of nfts from a collection with a specific trait...not sure if there is an existing tool or script that can accomplish this? For ...
0 votes
1 answer
53 views

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(...
  • 5
2 votes
1 answer
40 views

How create token at solana with image , and dissabled mint new tokens now?

I was try search , but old guides say about create token and add it to token list at solana repo , but it now read-only , i try search but all what i find is not working solutions , dead services , ...
0 votes
2 answers
65 views

How do I transfer my Solana token from Mainnet to Devnet?

I created my Solana token on Ubuntu. I now want to send my newly created token and some remaining SOL to my Phantom wallet Devnet. How do I do that?
1 vote
1 answer
35 views

GitHub repository archived: How can I register my Solana Token?

I've recently created my Solana Token, and while attempting to register my token I found out the GitHub repository has been archived. So how should I go about registering my newly created Solana Token?...
1 vote
1 answer
60 views

Convert Ethereum bytes32 hexadecimal to Solana address format

how can I convert the recipient '0x1d7030efa359a07737d690157e8c4bb853772d33378f0fd3e6601b47ed0f02b5' which is in bytes32 to a string basically it should be a Solana address (Base-58). Not able to ...
-1 votes
0 answers
17 views

How to identify whether an TX is a simple incoming "SOL/Token transfer" one?

I have a list of transactions which I periodically fetch via Solana API. Out of those, I need to identify the ones that are: incoming that transfer SOL incoming that transfer a token (USDT, USDC, may ...
1 vote
0 answers
126 views

cargo build-bpf command not working for solana

I'm getting this error after I execute the command cargo build-bpf to build the program for Solana on Windows 10. info: uninstalling toolchain 'bpf' info: toolchain 'bpf' uninstalled error: no such ...
1 vote
2 answers
75 views

Not able to deploy solana smart contract over devnet

I have followed below steps to deploy my smart contract over solana devnet but i am facing Blockhashed Expired: 5 retries remaining . I have followed below steps to deploy my smart contract over ...
0 votes
1 answer
71 views

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

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 ...
3 votes
1 answer
89 views

"Error: failed to post funding tx" on metaplex

I am trying to upload solana NFT metadata to arweave.net. I tried below code. await METAPLEX .nfts() .update({ name: newName, nftOrSft: nft, ...
  • 252
-1 votes
1 answer
47 views

How get discriminator from anchor account?

I have the contract use anchor_lang::prelude::*; declare_id!("kek"); #[constant] pub const MEDIA_TAG: &[u8] = b"MEDIA_STATE"; #[account] #[derive(Default)] pub struct ...
  • 19
0 votes
0 answers
69 views

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 ...
-1 votes
1 answer
49 views

solana spl-token transfer fee "Error: Program(IncorrectProgramId)"

I want to create my own Solana token that takes %2 fee to all transactions and total supply should be 100k token. That's why i used spl-token cli for this spl-token create-token --transfer-fee 50 1000,...
  • 1
0 votes
1 answer
31 views

Is there a way to fetch wallet public keys for n number of associated token addresses on Solana?

Solana's SPL library has getAssociatedTokenAddress for fetching an associated token account given a wallet pubkey. Is there a method to go the other way? I have a list of associated token addresses ...
  • 1,170

1
2 3 4 5
24