Category "solana"

Solana - How to get token balance for a foreign account?

In Solana you can get your own balance with the CLI $ spl-token accounts But how do I get the token balance of a foreign account if I have the account ID or hi

`Invalid blockhash` error while deploying smart contract

I am trying to deploy the demo smart contract on solana for chainlink price feed but getting an error. I followed all the steps from https://docs.chain.link/doc

How to Pull HIstorical Price Data from Solana Devnet Contracts?

I am looking to grab historical data from our Solana Devnet feeds. Can you let me know if get_submissions is the function that should be called for historical d

Solana rpc subscribe to account transactions

I am trying to listen for transactions for an account, I need to know when a transaction is received and get the hash of that transaction. I am using Solana's j

I can not deploy the program to dev net with anchor

I get this error where I run anchor deploy: Deploying workspace: http://127.0.0.1:8899 Upgrade authority: /home/<user>/.config/solana/id.json Deploying pr

I cannot modify token information in solana

I have deployed my token to solana network. Because of some change in metaplex metadata so I have to revamp my token. I have to keep token name and symbo, then

Anchor build error versions of anchor-spl and anchor-lang

I'm using the following repository of rust: https://github.com/SmartCodeBlockchainDev/Nelson-NFT-stacking when I try to do an anchor build I get the following e

How to change solana initial supply in own custom cluster?

The problem I'm working on is my team wants me to setup my own cluster with an initial supply of 400M sol. I have gone through the genesis module and found some

Capturing requests from web3 wallet connect from iFrame in parent window

Am looking to create an onboard process for Solana NFTs. Want to embed dapps in the site to create a hands on user experience as they go through content. So for

Properly Convert Lamports to SOL

Testing out devnet and airdrops. Below is my code for a basic wallet with a 2 sol airdrop. I am trying to convert Lamports back into SOL by dividing LAMPARTS_PE

Candy Machine v2 - error: required option '-k, --keypair <path>' not specified

I have done numerous tutorials, and followed everything step by step but I keep getting stuck at this one step, running the following command: npx ts-node ~/sol

My Javascript file won't run because of bigint error

I am trying to use @metaplex/js to do some NFT minting. Usually my .js files work properly but when I run the file this error comes up. bigint: Failed to load b

unable to upload nfts using metaplex

while am uploading Nft asset to Solana network and have this error : Beginning the upload for 22 (img+json) pairs started at: 1646166389888 initializing candy

Solana Anchor deploy error. bump targets should not be provided with init. please use bump without a target

When I run anchor deploy, I am getting this error. bump targets should not be provided with init. please use bump without a target How can I fix it?

How to connect solana wallet in android?

I want to make nft marketplace with solana in android. There are many examples connecting solana wallet(ex. solflare, phantom ...) in web client. But i don't kn

Solana Test Program Anchor Test failing tsconfig.json" > needs an import assertion of type "json"

I ran anchor test --skip-deploy and all it should do is initialise my program, but all I get is this error, that I cannot resolve. I checked the tsconfig.json s

Uncaught (in promise) Error: Transaction fee payer required

I get this error when I try to execute this using phantom wallet and react app const transferTransaction = new Transaction() .add(SystemProgram.transfer({

trying to run an generate art configuration in metaplex and it keeps returning this. I have tried changing up just about everything

desktop % ts-node ./metaplex/js/packages/cli/src/candy-machine-v2-cli.ts generate_art_configuration traits /usr/local/lib/node_modules/ts-node/src/index.ts:820

How to transfer custom SPL token by '@solana/web3.js' and '@solana/sol-wallet-adapter'

Hello I am trying to transfer a custom SPL token with the solana-wallet adapter. However i am having trouble getting the wallet's secret key/signing the transac

Phantom wallet: Solana transactions debug

I need to know which instuctions list is used for a transaction in order to use it in my application. For example: There is an unknown NFT marketplace, I can bu