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
0
votes
2 answers

Call Solana web3.js from HTML

I am trying to run web3.js from HTML. Now so far I have been able to call window.solana.connect(); and window.solana.disconnect(); functions. However when I try run below code it doesn't work. I have tested it various options, like removing "web3."…
isash
  • 61
  • 1
  • 10
0
votes
1 answer

Convert Ethereum uint256 to Solana Rust u64 in smart contract

How can I convert Ethereum uint256 variables into Solana Rust? Should I use u64 and 9 decimals in Solana Rust instead of 18 decimals in Ethereum? According to Solana's doc, a lamport has a value of 0.000000001 SOL. That is 9 decimals. So it seems 9…
Russo
  • 2,186
  • 2
  • 26
  • 42
0
votes
3 answers

I would like to get all transactions given an address

Given a Solana wallet address I would like to verify every single transaction ever confirmed to check other information, such as the receiver (or sender) and the amount sent (or received). So, as usual, I searched for some APIs. I found the…
Mr. N
  • 63
  • 1
  • 6
0
votes
1 answer

Solana, how to send a NFT (spl token) to another wallet using javascript/wallets

I'm trying to figure out how to send an NFT and display it on a website. Ideally the NFT can be dropped on the account linked to the website and therefore "belongs" to the website at least for a while, this is important for my project because I need…
Qeest
  • 13
  • 1
  • 4
0
votes
1 answer

How to create an identical transaction looking at any random one at solscan?

Let's take this token and one of the transactions of it: https://solscan.io/token/AbnTggpTujbdAiJtyhH9WtK2CqXk44W7GipyJXkopBDd Looking at one of the transactions, will one always be able to create and, possibly, execute, an identical transaction? Is…
tardushechka
  • 21
  • 1
  • 5
0
votes
1 answer

How can I freeze MasterEdition NFT token account?

I wonder how to freeze token account with update authority. (I don't have freeze authority. The MasterEdition has freeze authority, I think. I know that only freeze authority can freeze token account, but how can I use master edition account?) This…
Phoon Anan
  • 49
  • 1
  • 7
0
votes
1 answer

pyserum place order unknow instruction error

I'm trying to convert SOL to USDT using pyserum. Here's the code I'm using. import base58 from pyserum.connection import conn from pyserum.enums import OrderType, Side from pyserum.market import Market from pyserum.connection import…
Noob
  • 117
  • 1
  • 11
0
votes
1 answer

Vercel Deployment of Next.js project is failing with Unexpected token 'export'

When I try to build my updated version of my Next.js project I get a build error with the following error log even though when I run npm run dev and open the project on the local port everything is working fine. Any thoughts? Here is error stack
0
votes
1 answer

VSC - Can't Build Candy Machine/Metaplex

I am following a tutorial to have my own NFT minting site, but I keep running into an error. Tutorial link is https://youtu.be/35RO0lAEIxE?t=2876 My issue (first line is the command I typed as per the…
Loki-Khan
  • 1
  • 1
0
votes
2 answers

Exporting asyc dependent, non-async const from JS module

I am building off of a forked React app. There is a dependency module that relies on a couple of static json files to map and export a couple of consts that are consumed in the app's React components. Instead of relying on these static json files,…
dahifi
  • 77
  • 1
  • 7
0
votes
1 answer

Solana Determine Date and Time of Inflation Reward Distribution by Epoch

Is there any way to determine the exact date and time that corresponds to when inflation rewards were distributed for a given epoch? For example, the following: payload = { "jsonrpc": "2.0", "id": 1, "method": "getInflationReward", …
joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
0
votes
2 answers

solana transfer nft to any address web3js

I want to make a transfer from my wallet to another wallet with code. I use web3.js and I made a Solana transfer, but I don't know how to make an NFT transfer.
VovaProg
  • 19
  • 2
0
votes
1 answer

How to test solana token name and logo on devnet

I have made a successful pull request but cant see the name and token icon updated. Any idea how long would it take ?
0
votes
1 answer

Solana Web3.js: Getting `null` for Mint account, althought it should return an `AccountInfo` object

When I run connection.getAccountInfo(watermelonMint.key); I get a null object, although it should return an AccountInfoObject. Any idea why this is the case? When I look for the address associated with this mint on solana explorer, I get normal…
DaveTheAl
  • 1,995
  • 4
  • 35
  • 65
0
votes
1 answer

How to get a reference to a former created Token in Solana (client side, JS)

I'm able to create a token and mint it into an spl account address. But when I restart my program, how do I get a reference to that Token, so that I mint again? const web3 = require("@solana/web3.js"); const splToken =…
Boommeister
  • 1,591
  • 2
  • 15
  • 54