Questions tagged [sol]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
70 views

How to build airdrop script for sending equalamount of SOL to multiple addresses?

As a newbie dev, I tried to write an airdrop script using AI but I'm failing to get it to work. My goal is to be able to send an equal amount of Solana to multiple wallet addresses listed in a .txt ...
  • 31
1 vote
1 answer
43 views

How do I transfer the SOL on my token account?

I have a token account (example: https://solscan.io/account/3HJdseEK7G8cDEcDQPNmt5z1TuVb5AjCPxvqJCpkskbQ?cluster=devnet) and accidentally sent some SOL to it. I want to transfer this out to my SOL ...
  • 11
2 votes
2 answers
77 views

Trouble with conducting a simple transaction via Vanilla JS

My code used to work in early-mid November. It used to be a simple SOL transaction from wallet to another through a click of a button and then it just stopped working as I was dealing with something ...
2 votes
1 answer
60 views

Delete PDAs and return all lamport

I was looking at the previous posts in this same forum and I think there are some caveats to be made on this topic.
1 vote
1 answer
33 views

SOL Change is wrong

SOL Change in the following transaction is wrong. https://explorer.solana.com/tx/2zSnKNdmAmR9ZJzwLg7z3CDLxJo9pv49iRc3xT1xtt5rzkTdfTbmjjGwByL96DdLhYb2isfnYzuSktgbdE15k8uD ...
3 votes
1 answer
43 views

What's .sol address?

I'm trying to sign up for the weekly NFT mailing list with my .sol address. I type my Phantom address but this error shows up. Please provide a valid .sol address. Is the Phantom address different ...
2 votes
1 answer
53 views

How to lock lamports to the game and allow winner to withdraw the winning reward

I'm learning Solana with Anchor and decided to implement Roshambo (rock, paper and scissors) game as part of my journey. I'd like to allow players to place some bid on game where winner collects all ...
1 vote
0 answers
47 views

Signing a Ledger Transaction with python

I keep getting the Error: Invalid Status 6a80, and I have a hard time figuring out why. I am able to collect the publicKeys, but I unfortunately can't get signatures through it. any help will be much ...
1 vote
2 answers
106 views

Do I need PDA to send SOL to another account?

I'm struggling to send SOL to another address(fixed one when initialize) on Rust level along logging the sender's account address on the program. Do I need PDA for this? Also I have to log the sender'...
1 vote
1 answer
36 views

Error when I build the solana wallet adapter repo "ERR_PNPM_NO_SCRIPT Missing script: tsc"

I'm trying to run locally the starter app of the solana wallet adapter. Unfortunately when I run pnpm run tsc I get the error ERR_PNPM_NO_SCRIPT  Missing script: tsc Does anybody know the solution?...
2 votes
1 answer
26 views

Does @solana/spl-token-registry include SOL token information?

I'm making a wallet application and using @solana/spl-token-registry to get the icon and name for each SPL token. My question is does this list include the information for SOL token? Does the SOL ...
2 votes
1 answer
386 views

How to transfer SOL from a PDA owned by a program to a wallet

i am trying to build a nft marketplace where the nft will be transferred to an escrow wallet a PDA with seeds and the SOL will be transferred from the buyer to a PDA with seeds = "bid" and ...
3 votes
1 answer
97 views

Do Solana blockchains have Chain IDs?

Does Solana use Chain IDs the way they are used in EVM blockchains? I cannot find this in the Solana documentation and in the internet. If Solana uses Chain IDs, where can I find them? If not, is ...
2 votes
2 answers
60 views

How to get all nfts belonging to a collection on Solana?

Is there any easy way like a fetch request or something to get all nfts of a collection?
3 votes
1 answer
27 views

Transaction does not show amount

I am writing a program to transfer SOL owned by the system program to another system program PDA, in the tests everything works fine and also on the frontend UI but the problem is that, when the user ...
  • 111
2 votes
1 answer
24 views

Is there a standard mint account for SOL? [closed]

Is there a convention to use as mint account for SOL? Similar to how ETH uses 0xeeeee.
  • 149
5 votes
1 answer
27 views

web3 get sol transfer signatures only for an account?

When attempting to get spl transfers for a specific token you can get the spls token account for an account then from there get recent signatures for transfers of that spl. Is there a similar ...
  • 51
0 votes
0 answers
41 views

How to transfer sol to contract and sol from. Contract? Can i use sytem_instruction::transfer? [duplicate]

I want to host auction in marketplace contract, I have 2 accounts auction and order. I want to transfer auction bid amount to the contract and send it back to the owner once the auction is completed. ...
  • 151
1 vote
3 answers
117 views

Unauthorized signer on CPI transfer call

so I am trying to write an app where we can deposit native SOL to a wallet, that wallet would be a PDA, and based on some event I would like to transfer SOL to a particular wallet via a CPI call but I ...
  • 111
5 votes
1 answer
75 views

How to efficiently transfer NATIVE SOL to a program accepting WRAPPED SOL?

I am writing a program in which the accepted payment MUST be from a token account. Anchor context snippet here: pub struct Payment<'info> { #[account(mut)] pub buyer_token_account: ...
  • 455
0 votes
3 answers
106 views

Issue, transfer SOL via CPI call

I am trying to make a SOL transfer via a CPI call, I managed to create an account to which I have to transfer, this account's authority is owned by a (master) PDA, transfer/deposit works fine but when ...
  • 111
0 votes
1 answer
42 views

Can I give my program an account containing the pubkey of a wallet I want to transfer to, rather than the wallet pubkey itself?

My PDA account contains some SOL, and the pubkey of an account I want to transfer the SOL to. Via the client side, is it possible to pass in only the pubkey of the PDA, and then retrieve the receiving ...
  • 173
0 votes
3 answers
57 views

deposit sol from 2 accounts [closed]

I was wondering if I want 2 accounts to deposit SOL to a PDA, would that imply to use a multisig or that can be done without multisig? Suppose 2 wallets have to deposit sol to that account, and based ...
  • 111
1 vote
2 answers
73 views

Subscribing Solana Transfers

Is it possible to subscribe program by passing SOL program ID to track SOL transfers? I'd like to track the SOL transfers by subscribing blocks any help appreciated, thank you.