Questions tagged [sol]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

How to interact with router for swap transaction?

hope all doing good in your life, How can I perform a transaction using a Solana router(like orca, Raydium) to swap Solana's native token with another token? I've come across various crates such as ...
PandaKungFuu's user avatar
0 votes
1 answer
33 views

Help send usdt wrong network

I send from phantom usdt, to binance usdt with solana network but binance still not recaived my transfer.. how this solve? This tx : https://solscan.io/tx/...
Ddaup's user avatar
  • 1
3 votes
2 answers
54 views

HashMap in Solana Rust Contract

My HashMap is not functioning properly on Solana when using a Rust program. Is there an alternative approach to achieving a similar functionality to a HashMap? Essentially, I want to retrieve data ...
Umaid Khalid's user avatar
0 votes
2 answers
73 views

Sol staking question

When viewing my staking account it appears that my authority address has changed and my main address is no longer it How do I change the authority back to my main address and is my main address still ...
ScrapHouse of Life CCC's user avatar
2 votes
2 answers
102 views

How can I transfer SOL using programs and PDA's with native rust?

Hey I try to create a basic program which takes and manages sol for users. Something like the weth contract on ethereum. The program just needs to store the SOL and under some conditions users will be ...
Yali Haviv's user avatar
1 vote
1 answer
46 views

How to configure DNS Records for .sol domain so Brave recognizes it?

Brave browser now supports resolving .sol domains https://brave.com/solana-name-service/ But what I'm curious about is how can I configure the DNS records for my .sol domain? I see in the Bonfida UX ...
decartes's user avatar
0 votes
0 answers
56 views

How do I transfer SOL from a PDA account to a user's wallet?

I'm now developing on solana blockchain. I want to users can deposit and refund their sol on my pool. create_pool works well it means users can deposit their sol to my pool. but cancel_pool error. ...
Watcher's user avatar
0 votes
0 answers
84 views

My solana transaction completed on chain but cant be finalized in my wallet

My friends I have issue with my SOL transaction. I sent SOL to my blockchain wallet app. the transaction shows success on SOL blockchain however,I only have the amount that I transferred shows in my ...
ewan li's user avatar
3 votes
2 answers
180 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 ...
alo's user avatar
  • 31
1 vote
1 answer
146 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 ...
Dav's user avatar
  • 11
2 votes
2 answers
104 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 ...
edoedo123's user avatar
3 votes
1 answer
196 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.
rust_everywhere's user avatar
1 vote
1 answer
54 views

SOL Change is wrong

SOL Change in the following transaction is wrong. https://explorer.solana.com/tx/2zSnKNdmAmR9ZJzwLg7z3CDLxJo9pv49iRc3xT1xtt5rzkTdfTbmjjGwByL96DdLhYb2isfnYzuSktgbdE15k8uD ...
user2028's user avatar
3 votes
1 answer
141 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 ...
pochi udon's user avatar
2 votes
1 answer
74 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 ...
jakub.bogacz's user avatar
1 vote
0 answers
94 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 ...
Cyrial Kamda's user avatar
1 vote
2 answers
154 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'...
sunnydev's user avatar
1 vote
1 answer
73 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?...
Web3Love's user avatar
2 votes
1 answer
45 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 ...
Andrew Melbourne's user avatar
4 votes
3 answers
879 views

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

I am trying to build an 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 ...
Joy Mukherjee's user avatar
3 votes
1 answer
639 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 ...
Sasha Shpota's user avatar
2 votes
2 answers
82 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?
VakuTheDaku's user avatar
3 votes
1 answer
33 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 ...
Sing's user avatar
  • 111
2 votes
1 answer
30 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.
liamvovk's user avatar
  • 149
5 votes
1 answer
43 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 ...
Nobu's user avatar
  • 51
1 vote
3 answers
161 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 ...
Sing's user avatar
  • 111
5 votes
1 answer
130 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: ...
Burger Bob's user avatar
  • 1,124
0 votes
3 answers
141 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 ...
Sing's user avatar
  • 111
0 votes
1 answer
48 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 ...
coco's user avatar
  • 43
0 votes
3 answers
59 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 ...
Sing's user avatar
  • 111
1 vote
2 answers
99 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.
korimusk's user avatar