6
votes
Accepted
Why do some token accounts own themselves?
The owner of a token account is any pubkey. If it's possible to provide signatures for that pubkey, then it's a perfectly valid owner for the token account.
The token program explicitly allows for ...
5
votes
Accepted
How can I get all the NFTs for a creator address?
You should be able to use the Metaplex SDK with an RPC provider like QuickNode.
Here's an example:
const connection = new Connection(clusterApiUrl("rpc_url_here"));
const keypair = Keypair....
4
votes
Accepted
What is the difference between a delegate and owner?
I posed this question on X:
https://twitter.com/burger606/status/1700916676437369159
Essentially, having a delegate allows for partial ownership. Which means you can assign another pubkey as the ...
3
votes
Accepted
Solana Account owner change to BPFLoaderUpgradeab1e11111111111111111111111
Mind sharing the transaction? Its more likely that it was transferred to a different program than BPFLoaderUpgradeab1e11111111111111111111111. There were some scam programs like this in the past. If ...
3
votes
Accepted
How to set owner role in this like we set owner to solidity?
Unlike Solidity contracts, Solana programs are stateless. Accounts hold the state of solana programs. Hence, the concept of "ownership" is valid only for accounts not for programs itself.
By ...
3
votes
Check the owner of an NFT
Easiest to use the DAS API, Helius has a solid doc for this. getAsset method contains owner information: https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api/get-asset
3
votes
How is Token Account Owner Different from Account Owner and Account Holder?
On solana everything is an 'account'.
Your question: what's the 'owner' field for? From PencilFlip:
The address of the program that owns the account. Only the owning program is capable of modifying ...
3
votes
Difference between authority and owner
owner can unfortunately mean two things, in the same way that heap can mean multiple things in computer science.
See how the Solana runtime stores accounts. You will notice that it has an owner field ...
2
votes
Accepted
How to resolve error: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA excluded from account secondary indexes; this RPC method unavailable for key'?
getTokenLargestAccounts requires an index on part of the token program, which is TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA.
This error is telling you that your node is not configured to serve any ...
2
votes
What is the difference between a delegate and owner?
Delegates are more useful for TokenAccounts, where you can approve another account to give them access to an AMOUNT of tokens, e.g. token::approve(cpi_ctx, amount) can give another account the ability ...
2
votes
how to fetch SPL by owner without NFT tokens
A better way would be to look into the decimals and supply of the Token Mint Account. If the decimals are 0 and the supply is 1 then its an NFT
2
votes
Accepted
Can Other Programs Write to PDA Accounts even if the `Account` type is used and the ownership is checked?
Can other programs write to p1? No. Only the account owner has write permissions for Solana programs and can modify the data.
If you have a write_data instruction in your program p1 without any signer/...
2
votes
Accepted
Which accounts can a program close?
A program can only close an account which it has initialized. It could be PDAs, token accounts, etc. You can't just pass any arbitrary account and close it.
If you wish to close a state/PDA account ...
1
vote
Solana CLI how to fix this? Not configured Program ID
Looks like you're missing a few steps for minting a token.
Step 1: Create a token, this will generate the tokens mint address. For your specific token, it looks like it needs to be created with the ...
1
vote
Accepted
Can an owned account be on-curve?
It's certainly possible! Just about every SPL token mint account is on-curve. Try running:
$ solana-keygen new -o mint.json
$ spl-token create-token mint.json
Authority can be weird in some of these ...
1
vote
How can I get all the NFTs for a creator address?
You can use the findAllByCreator method from @metaplex-foundation/js
import { Metaplex } from "@metaplex-foundation/js";
import { Connection, clusterApiUrl } from "@solana/web3.js";...
1
vote
Accepted
How to handle transfer with wallets of different owner than SystemProgram
I found out that a wallet which signed a smart contract (created PDA or Non-PDA data account) has transferred Its ownership to the smart contract and can't sign the transfer
Each account in Solana is ...
1
vote
Difference between authority and owner
I saw the clear difference when working with the token swap program:
Before you can create a swap pool, you'll need to create a token swap
state account.
const tokenSwapStateAccountInstruction = ...
1
vote
Implementation of AssignWithSeed?
If you want to change the owner of an account, you're supposed to use the Assign instruction on the system program, which requires a signature from the account.
There may be a misunderstanding about ...
1
vote
Who has the right to modify an account and who signs transactions?
A signature applies to the whole transaction not just individual instructions. So an account that signed for instruction 1 also signed for instruction 2, 3, ...
A list of program account limitations ...
1
vote
Why does magic eden buy_now instruction #3 fail
The extra fee might relate to sellerReferral/buyerReferral. It's normal.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
owner × 22account × 4
systemprogram × 4
anchor × 3
transactions × 3
nft × 3
authority × 3
solana-program × 2
spl-token × 2
transfer × 2
pda × 1
token × 1
program × 1
wallet × 1
spl × 1
instructions × 1
associated-token-account × 1
signature × 1
security × 1
mint × 1
error × 1
rent × 1
anchor-program-idl × 1
solana-cli × 1
balance × 1