Questions tagged [solana]

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

From the website:

Solana is a decentralized blockchain built to enable scalable, user-friendly apps for the world.

Developer documentation can be found here, including information about Solana's Anchor Framework.

1213 questions
-1
votes
3 answers

Can we make an HTTP call from a smart contract in Solana blockchain?

I was not able to find anyone invoking this subject, which means that it probably is not feasible, but I need to make sure. So is there any way one could call some endpoint from a smart contract?
Abdel Hana
  • 81
  • 2
  • 8
-1
votes
1 answer

What the error EditionsMustHaveExactlyOneToken really mean?

I am using web3 to mint NFT on Solana's candy machine v2, followings all the instructions I can find. using libraries: @project-serum/anchor": "^0.24.2", @solana/spl-token": "^0.2.0", @solana/web3.js": "^1.41.6", when calling…
diwatu
  • 5,641
  • 5
  • 38
  • 61
-1
votes
1 answer

Solana artwork upload command problem ( metaplex )

{ "price": 1.0, "number": 10, "gatekeeper": null, "solTreasuryAccount": "", "splTokenAccount": null, "splToken": null, "goLiveDate": "25 Dec 2021 00:00:00 GMT", "endSettings": null, "whitelistMintSettings": null, "hiddenSettings": null, "storage":…
-1
votes
1 answer

How can i get the public key of the Candy Machine of collection

Please Help i want to get NFT Mint Addresses and this function below return what i want but it requires the candy machine id : import { Connection, clusterApiUrl, PublicKey } from '@solana/web3.js'; import bs58 from 'bs58'; const connection = new…
-1
votes
1 answer

Is it possible to transfer minting authority of a Solana Token to another account?

I have created a Solana NFT token using Metaplex, and mint authority is assigned to 3EnfV4qYBjH15nN5XDmW74bqWYiQQFHQCbnVrWxZLua6 by metaplex, and i need to mint more these tokens using sdk like @solana/web3.js, @metaplex/js and …
Siddhant Shah
  • 63
  • 1
  • 5
-1
votes
1 answer

sendAndConfirmTransaction odd behaviour

Its quite possible I have a logical error somewhere but I'll ask the question anyway as I am experiencing some very weird errors.. Is it possible for web3.sendAndConfirmTransaction(.. to return a signature but moments later (for that same…
1977
  • 2,580
  • 6
  • 26
  • 37
-1
votes
3 answers

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 return new TSError(diagnosticText, diagnosticCodes); ^ TSError: ⨯ Unable to compile…
max2lax
  • 5
  • 2
-1
votes
1 answer

Solana token ownership

is there any way to check that user A owns spl token B inside solana contract? Maybe there is safe method to check it outside. I need it to give some privileges to users, which own mine nfts. Users would write data to program only when they have…
-1
votes
1 answer

Solana: How to setup github action (CI) for an Anchor Project

I've my anchor project build with serum's anchor framework. I want to set up github action, So that whenever a new pull request is raised or any commit is made on the main branch, I can be sure that no code has been broken and flag any such pull…
Arjun
  • 3,248
  • 18
  • 35
-1
votes
1 answer

Finding all obligations in spl-token-lending program

If an Obligation becomes unhealthy, it can be liquidated by calling LiquidateObligation instruction, however, I cannot liquidate it if I don't know it exists, and the process of finding them is still unclear to me. What is the expected way for me to…
RowanStone
  • 160
  • 3
  • 11
-1
votes
2 answers

What is the best way to use web3.js on the backend side?

I am trying to create a web wallet application using "@solana/web3.js" for study purposes. The backend side is using PHP (Laravel). Which of the following is the best option on how to call web3.js on the backend side? Call it from PHP using the…
fujon
  • 1
-1
votes
2 answers

Tokio macro requires rt or rt-multi-thread in Solana program

Anyone able to guide me on why I can be getting this error on my tests? The #[tokio::test] macro requires rt or rt-multi-thread. It is more a Rust question than a Solana one, but I have been following the examples (and I am learning Rust), so just…
awesomeQ
  • 11
  • 2
-1
votes
1 answer

Solang - panicked at 'type not allowed'

I am trying to get an Ethereum smart contract up and running for Solana. I'm using solang and it had a few issues that I was able to fix, like Solidity's assembly not working, but I finally ran into something I can't handle. I run solang…
-1
votes
2 answers

Program, Account, Publickey and Keypair in Anchor

I'm beginner of solana programming using anchor. Now I have no clear understanding about these items. **Program, Account, PublicKey, Keypair** Appreciate any help to understand what these are and relationship between each other.
-1
votes
1 answer

Solana Token Creation

I am trying to create a token in Solana using the command: spl-token create-token --url devnet But all I am getting is the following error. error: unrecognized signer source I am also using a Windows 10 Professional instead of MacBook.
Vimal Kurien Sam
  • 246
  • 4
  • 10