Search Results
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 |
1
vote
TokenMetadata not an export? ...just following the code in docs
You cannot use Typescript types in JS and that's why you are getting this error.
To make this work
Remove the TokenMetadata import in your JS file
In you package.json add the "type": "module", to su …
1
vote
Metaplex Transfer pNFT failing
As Serban pointed out in the comments, it is because the destination token account is the same as the origin token account
Changing it to a new address fixed this.
Though I am not satisfied with this …
0
votes
SPL22 to SPL token migration
You can check out wrappers built by the community,
https://github.com/solendprotocol/token2022-wrapper
1
vote
SPL token deploy from scratch
I am going to assume that you are coming from an EVM-compatible chain.
To create a token, you interact with the SPL token program which is already deployed. No need to deploys a smart contract for tha …
1
vote
How to update the Metadata for Tokenkeg, the original Solana token standard
This is possible if it was marked as mutable when creating the Metadata accounts with Metaplex and if your address is set as the updateAuthority.
import {
createGenericFile,
keypairIdentity,
…
1
vote
Accepted
Can you derive the program owner of a SPL token?
This is not possible.
You need to request to determine whether an account is actually on the Solana state.
For example, with an ATA it's possible to derive the address using the wallet and token mint, …
4
votes
Accepted
Why is token_program needed when initiating an associated token account?
TL;DR, solana needs to know all accounts that an instruction will interact with beforehand. That is why your program will panic if an account required by the #[derive(Accounts)] struct isn't provided
…
1
vote
Why can solana explorer find my token, but solscan can't?
Solscan takes a while before indexing devnet transactions.
If developing, it's best to use the Solana Explorer and SolanaFM for immediate results on transactions.
3
votes
getting error when try to send the two transactions combined for swap to jupiter sdk
The two transaction are going over the accepted limit of 1232 bytes.
To overcome this limitation,
Try using Jito bundles -> https://docs.jito.wtf/lowlatencytxnsend/
send the two instructions in sepa …
3
votes
Accepted
Transfer specific token to and from a known account
This looks okay, What I would add is checking whether the holding account to_ata is initialized, If it's not you could use anchor associated_token constraints
#[derive(Accounts)]
pub struct TransferSp …
1
vote
Adding Set Authority Feature To SPL Token Creator
You can use the set authority instruction from the spl-token program to do this.
I've highlighted the various ways using different clients you can do this on this post https://solana.stackexchange.com …
1
vote
When I try to add metadata to my spl token on my Mainnet coin
Initialized a token 22 mint with the metadata extension like this.
Try removing the quotes if you're using them and see if there is a change.
spl-token initialize-metadata teseCZW7zZkyFJvHpDp7gB6rgvzY …
3
votes
How do I to update the name and logo of my SPL token?
The first step is to make sure that you minted the tokens with the isMutable flag set to true else the process below will not work.
To update the image you will need to update the entire off-chain met …
1
vote
Solana program failing "An account required by the instruction is missing"
The error means that an account required by the transfer instruction is missing.
From your contract code, it's the spl_token program. Adding it should fix it.
Not required but, you'd benefit greatly f …
0
votes
error while executing create token account instruction
According to the transaction ID you provided, the mint account isn't initialized and that's why it's failing.
> Program logged: "Instruction: CreateNewSleeper"
> Program logged: "AnchorError caused by …