Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 50
7 votes

How do I transfer sol from a PDA account to a user account

Only the program that owns the account can debit its lamports. Since this is a program-owned account you're transferring from, the System Program wont be able to do the transfer, because it doesn't ow …
C.OG's user avatar
  • 2,907
6 votes
Accepted

Can you modify a non-PDA account's data when you know its private key

I wonder if there is a way to modify the account's data without the program if you know its private key? No. There are two concepts that are at play. Ownership and signing authority. Only the owner …
C.OG's user avatar
  • 2,907
4 votes

getSignaturesForAddress limited to 1000 TXNs

The getSignatureForAddresses method returns a maximum of 1000 signatures. To retrieve signatures older than your initial query, you can pass in an optional before signature. https://solana-labs.github …
C.OG's user avatar
  • 2,907
4 votes

Solana Package Breaking React App UX

Seems like a missing transient dependency. Consider installing it manually: with npm: npm i @ledgerhq/devices with yarn: yarn add @ledgerhq/devices If this is a new react app, will advice you using …
C.OG's user avatar
  • 2,907
3 votes
Accepted

Is there any way to implement only owner access control in solana anchor

All executable programs (smart contracts) are owned by the BPF loader. What you refer to as the "owner" in this case, will be the upgrade authority. You can implement access control checks by passing …
C.OG's user avatar
  • 2,907
3 votes

What are the best practices I can do to secure my Solana smart contracts if I can't afford a...

While these won't comprehensively secure your program, there are a few security checks you can keep in mind; Ownership checks: An ownership check verifies that an account is owned by the expected publ …
C.OG's user avatar
  • 2,907
2 votes

Where can I get programId after deploying the program through solana playground on devnet?

The program id is 8Xnz4ta9XGsq7A7mHTeMd9eg4JQoT7z1TxoiKdp3StVY You can also find the program id on the build tab in solana playground:
C.OG's user avatar
  • 2,907
1 vote

init anchor project cause problem with rust-analyzer

Seems like the required crate isn't installed yet. Try running cargo run or cargo build
C.OG's user avatar
  • 2,907
1 vote

Solana: Delayed transfer

Yes, this is known to as Authority Delegation "Account owners may delegate authority over some or all of their token balance using the Approve instruction. Delegated authorities may transfer or burn u …
C.OG's user avatar
  • 2,907