Skip to main content
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 ...
Jon C's user avatar
  • 19.6k
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....
dev4all.sol's user avatar
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 ...
Burger Bob's user avatar
  • 1,506
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 ...
Jonas H.'s user avatar
  • 7,219
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 ...
PraneshASP's user avatar
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
Truitt's user avatar
  • 655
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 ...
DZWG's user avatar
  • 91
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 ...
Proph3t's user avatar
  • 432
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 ...
Jon C's user avatar
  • 19.6k
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 ...
Whiteseal's user avatar
  • 3,597
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
Pratik.js's user avatar
  • 1,682
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/...
Jimii's user avatar
  • 7,712
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 ...
Syed Aabis Akhtar's user avatar
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 ...
brimigs's user avatar
  • 196
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 ...
Jon C's user avatar
  • 19.6k
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";...
john's user avatar
  • 7,794
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 ...
vicyyn's user avatar
  • 4,295
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 = ...
Yilmaz's user avatar
  • 1,264
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 ...
Jon C's user avatar
  • 19.6k
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 ...
Buzzec's user avatar
  • 574
1 vote

Why does magic eden buy_now instruction #3 fail

The extra fee might relate to sellerReferral/buyerReferral. It's normal.
Kha Man's user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible