Skip to main content

Questions tagged [authority]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

How to set contract ATA's authority to my program

I know how ATA and PDA works. I know that an ATA is a PDA, and so the account which the PDA was derived from is the one that can sign transactions for this PDA. So, I assume that a contract's ATA's ...
Nathan's user avatar
  • 177
1 vote
0 answers
24 views

Is it possible to change the "update" authority of an SPL token?

I have an SPL token and I'd like to change the "update authority" of that token. I am NOT using the Token-2022 standard. This SPL token has the mint, free & metadata authorities revoked. ...
user881239's user avatar
0 votes
0 answers
19 views

Calling mint_to for second times error: ConstraintMintMintAuthority. Error Number: 2016. Error Message: A mint mint authority constraint was violated

Initialize and Mint token functions: pub fn init_token(ctx: Context<InitToken>, metadata: InitTokenParams) -> Result<()> { let authority = &ctx.accounts.payer; let ...
Lobo1897's user avatar
  • 153
1 vote
1 answer
69 views

Solana SPL-22 token fee not claimable

I made a Solana spl-2022 memecoin on Dexlab with a 4.9% fee for marketing. Some transactions are made and a withheld amount is visible on the blockchain (solscan). When I look at Dexlab's claim fee ...
VKah33's user avatar
  • 11
0 votes
2 answers
178 views

Given a list of token accounts for a wallet, how do I determine which accounts the user/wallet has mintAuthority?

I built a ui using NextJS and the Solana wallet adapter library. I'm using getParsedTokenAccountsByowner to display all token accounts when the user connects their wallet. I want to map over all these ...
Dmitry Sky's user avatar
0 votes
1 answer
124 views

How to set owner role in this like we set owner to solidity?

"In my contract, I require the implementation of an owner role, creating what is commonly known as an 'ownable' contract pattern. This entails the inclusion of three key functions within my ...
Vivek Kadavni's user avatar
1 vote
1 answer
187 views

Signer Authority and transactions

When a client sends a transaction he must specify a list of addresses. For those addresses for which are declared as writable, the user must provide a signature. According to the Solana docs, the ...
qubitz's user avatar
  • 210
2 votes
1 answer
44 views

Mint Authority Being a Signer

I am getting error: Instruction does not support native tokens when trying to initialize a new SPL metadata via: // Invoke the create_metadata_account_v3 instruction on the token metadata program ...
AceGravity's user avatar
1 vote
1 answer
2k views

How to check if a solana token creator can change the name or picture of the token that he sold at dex?

Unfortunately I bought a token at Dex which seems the dev rugged and left. Our community now has taken over the token. I want to know if that dev can change anything now? (Including name of the token, ...
Sali's user avatar
  • 13
0 votes
0 answers
49 views

How to get my pre Metaplex legacy token's update authority?

I created a token before the existence of Metaplex, and during that time, token metadata was managed through the https://github.com/solana-labs/token-list repository. I now wish to update my token's ...
Tolui Davaasuren's user avatar
0 votes
0 answers
122 views

How to add metadata to my SPL token with multisign

I have a problem with a token created in early 2022. I can't add metadata! the mint account is multisign and I can't use metaplex to upload metadata file. I thought I could to change authorize owner ...
Theca Lab's user avatar
1 vote
2 answers
88 views

How to give authority of PDA to another program

I have two programs. // program one #[derive(Accounts)] pub struct MyContext<'info> { ... #[account(mut)] pub pda_in_prog_1: PDA_ONE<'info, T>, pub system_program: Program<'...
Jimii's user avatar
  • 3,420
0 votes
1 answer
57 views

does the authority of compressed NFTs work the same as normal NFTs?

Does the traditional concept of having a freeze authority and mint authority the same for Compressed NFTs? Where there is a specific scope for each account found in the authorities array? If so, are ...
Sewy's user avatar
  • 85
0 votes
2 answers
216 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 ...
ScrapHouse of Life CCC's user avatar
0 votes
0 answers
16 views

I need help getting nfts out of a stake pool account and back into the account owners wallets

We had a dev create a stake pool and host on his domain. Domain now ded, and all nfts locked in pool I have access to the authority wallet that created the pool and bpf upgradeable loader https://...
Kronic's user avatar
  • 1
3 votes
2 answers
541 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 ...
Jacopo's user avatar
  • 33
2 votes
2 answers
405 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 ...
Hieu Tran's user avatar
0 votes
1 answer
637 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 ...
Matthew James's user avatar
0 votes
1 answer
44 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....
Iceee1000's user avatar
5 votes
2 answers
633 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 ...
Tharsalys's user avatar
  • 151
2 votes
1 answer
150 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-...
Yusuf-Uluc's user avatar
2 votes
2 answers
129 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 and whose structure is basically this: pub ...
dade's user avatar
  • 292
0 votes
1 answer
82 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 ...
bubu59's user avatar
  • 21
2 votes
1 answer
1k 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 ...
enki's user avatar
  • 23
0 votes
1 answer
199 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 ...
Milkncookiez's user avatar
2 votes
1 answer
49 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 ...
Watchman's user avatar
4 votes
1 answer
70 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 ...
OverAchiever's user avatar
1 vote
2 answers
321 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 ...
NaveeN .G's user avatar
3 votes
1 answer
152 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<()> { ...
curiosity's user avatar
  • 499
2 votes
1 answer
266 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 ...
Jrb's user avatar
  • 253