Questions tagged [authority]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
26 views

Is there a typescript schema/idl for the token program instructions?

Good morning, trying to decode data from the last instruction of this transaction which is a setAuthority instruction. My main problem is that i can't get the newAuthority address from the data, since ...
  • 23
1 vote
2 answers
29 views

How can i verify authority account of a program in anchor

I implemented a program and I checked the authority's publickey address. how can i get this wallet address (for example i want a fn number in the code that can only be called with authority). Or is ...
0 votes
1 answer
42 views

Token-2022 extension enforcing immutable owner

I have a use case to assign a new owner to an associated token address (ATA) after it has been created. Having tried this against a local node I was met with an error saying that I could not change ...
0 votes
1 answer
16 views

Any way to migrate a legacy "tokenlist" token to use Metaplex Fungible Token Metadata if the token's mint authority is disabled?

Title says it all. We have a token with "Current mint authority: disabled". We would love to add Metadata and update the logo but it appears this may be impossible now that the old tokenlist....
3 votes
2 answers
133 views

Difference between authority and owner

From the Solana Cookbook, I can tell from the diagram that an Authority can sign transactions on behalf of the account whereas only an Owner can modify it. I can also tell that ownership can be ...
  • 131
2 votes
1 answer
100 views

Walllet is "locked". Can't pay transaction fees to close/update program

I am currently facing this issue that doesnt let me close my program (I don't really want to loose all the rent right now) https://forums.solana.com/t/help-me-my-wallet-was-locked-unable-to-pay-a-...
1 vote
2 answers
51 views

How is Token Account Owner Different from Account Owner and Account Holder?

I am learning about Solana's account model. So far so good, these are the things I have found: Solana account is represented by the AccountInfo struct, which can be seen here and whose structure is ...
  • 272
0 votes
1 answer
51 views

What is the recommended way of transferring Sol via a PDA after using SetAuthority?

I'm currently working on a fundraising program which involves just transacting Sol. In the first image, I have set fundraiser_config as the authority over the token_vault In the second image, I'm ...
  • 11
2 votes
1 answer
283 views

How to update authority on a rugged project?

The project I'm working on has been hijacked and rugged by the ex-developer who had the authority account. Long story-short, he minted new tokens, then he emptied the liquidity pool. We still have the ...
  • 23
0 votes
1 answer
32 views

Do I need to set authority on newly minted token after I transfer it?

I have a program to mint tokens on behalf of users (with user-provided metadata for the tokens) and after the minting is done, I transfer the token to the user address. Now, my question is - do I need ...
2 votes
1 answer
38 views

How do I restrict the rights to the created PDA?

I want anyone to be able to create a PDA, but only I can edit it. I was able to do this with "constraint", but when I send the transaction I also need to send signers. Is it ok? Or it can be ...
4 votes
1 answer
39 views

Authority Delegated SPL token transactions without a program

i want to use authority delegation so a user can delegate his tokens and later a transaction can be created to transfer those tokens. can this be done without a smart contract and can the authority be ...
1 vote
2 answers
174 views

How to create a PDA and enable data storage?

I'm using PDA to hold the funds and the smart contract will sign it to transfer funds from the PDA to anyone. What's the best way to create a PDA to store multiple NFTs/tokens and also custom data ...
3 votes
1 answer
85 views

How to allow only a specific account to interact with a Solana Program?

use anchor_lang::prelude::*; declare_id!(“example program id); #[program] pub mod example_program { use super::*; pub fn initialize(ctx: Context<Initialize>) -> Result<()> { ...
  • 419
2 votes
1 answer
107 views

How can I efficiently update the metadata authority for an entire NFT collection?

I need to update the authority of an NFT collection (authority on the metadata account). So when I use metaplex.nfts().update(), I need to sign a transaction for every NFT. How can I make all updates ...
  • 243