Questions tagged [sol]
The sol tag has no usage guidance.
31
questions
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 ...
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/...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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.
1
vote
1
answer
54
views
SOL Change is wrong
SOL Change in the following transaction is wrong.
https://explorer.solana.com/tx/2zSnKNdmAmR9ZJzwLg7z3CDLxJo9pv49iRc3xT1xtt5rzkTdfTbmjjGwByL96DdLhYb2isfnYzuSktgbdE15k8uD
...
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 ...
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 ...
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 ...
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'...
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?...
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 ...
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 ...
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 ...
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?
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 ...
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.
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
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.