How use Phantom deeplink in js?
I have a dapp that users enter with a mobile browser, the website is with js, and I didn't see any examples of how to deeplink with js, only react was an example.I used the link below, but it does not...
View ArticlegRPC python decode data to human readable
I have responce from grpcaccount { account { pubkey: "j\304\303\316\372\237\031\277T\310\334\017^M\034\356\3452}&H+)\322\261<\272\2444G!\215" lamports: 3648047 owner:...
View ArticleSolana Token Extensions to Modify Transaction
Regarding token extensions: https://cdn.builder.io/o/assets%2Fce0c7323a97a4d91bd0baa7490ec9139%2F83c26b9268f64400b8eb67442579a31a?alt=media&token=525415b0-d3ea-48d7-83d6-0fb0d9e522c6"Transfer hook:...
View ArticleTrying to Swap SOL for any token using node js
I am writing a node js code to swap SOL token to any token. I am using @solana/spl-token-swap node module for the same. First, I am creating an associated address for the token I am swapping to. I am...
View ArticleJitosol not showing me any interest
Traded sol for jitosol but interest is not showing up on phantom wallet I staked with jito network
View ArticleBest to have PDA own a System Account or be the System Account to move SOL...
What would be the considerations for choosing between the following?A) Using a PDA (that is a System Account type) to receive and send SOL tokens on behalf of User AB) Using a PDA that owns a System...
View ArticleCreated Todo: Error Message: A seeds constraint was violated
Anchor code#[derive(Accounts)]#[instruction(todo_index: u8)] // Added this to pass the index as an instruction argumentpub struct CreateTodo<'info> { #[account(mut)] pub authority:...
View ArticleCan't get into my phantom wallet
I Want to get into my phantom wallet and made a picture of the recovery prhase and printed it so iam sure i have the right phrase. when i write the 12 words recovery phrasei get into a differend...
View ArticleTransferring money from phantom wallet to Coinbase not working?
I transferred money into my phantom wallet and put it in various meme coins. Once I took my profits I sent the money to my solona address on my Coinbase account, on phantom wallet it says the...
View Articlesigner privilege escalated when initial PDA
for warrior_card_usage_ai in &ctx.remaining_accounts[0..warrior_cards_usage_len] { if warrior_card_usage_ai.data_is_empty() { msg!("creating warrior card usage account"); let rent_lamports =...
View ArticleHow To Conditionally Set ProgramID in declare_id! macro?
In every Anchor example lib.rs has a hardcoded program id, something like this:declare_id!("3gHtqUaKGu3RJCWVbgQFd5Gv4MQfQKmQjKSvdejkLoA6");But I want to have different builds for staging and prod that...
View ArticleHow to get the balance for tokens in web3js v2?
In web3js@1 we could use connection.getTokenAccountsByOwner() to get the balance details for tokens in a wallet.In web3js@2 we have getTokenAccountsByOwner function in the rpc object, but I'm failing...
View ArticleCan't install Solana CLI from Docker on a Mac
I've created a Dockerfile for Anchor development. Full code is here: https://github.com/foxreymann/SolanaAnchorDocker/blob/master/DockerfileThe line to install Solana CLI:RUN sh -c "$(curl -sSfL...
View ArticleI bought solana and it was sent from my account straight away
I bought some solana today via moonpay, the transaction went through fine and only took a couple of minutes. Upon receiving the Solana, within seconds it had been sent back out of my wallet - before I...
View Article8 byte discriminator did not match what was expected when initail PDA account
Get error (8 byte discriminator did not match what was expected)when executing test code. I have checked the Remaining account and the Deserializes account, and both of them pubkey is equal.Code: for...
View ArticleHow to accurately calculate token price using bonding curves?
How to accurately calculate token price using bonding curves?I'm fetching account info for the bonding curve:from solders.pubkey import Pubkeyfrom construct import Struct, Int64ulfrom solana.rpc.api...
View ArticleTransaction not found in getSignaturesForAddress() returned array
getSignaturesForAddress misses one particular transaction of slot 304499001, for address Fch1oixTPri8zxBnmdCEADoJW2toyFHxqDZacQkwdvSP, transaction signature is...
View ArticlePhanton wallet on Android keeps crashing/closing
I cant get my Phantom Wallet started on my Android mobile. It keeps crashing/forced closing. Sometimes, there is the message that the app gets terminated repeatedly, sometimes there is not message at...
View ArticleRevoke Mint authority
I'm trying to revoke the mint authority in my code using Anchor. I've tried many things, but I always get an error during deployment. Whenever I add set_authority to my code, I encounter the following...
View ArticleSolana verify Errors
I'm getting below error while trying to verify my program:cmd:solana-verify verify-from-repo https://github.com/$GITHUB_REPO --program-id $PROGRAMIDFound docker image for Solana version 2.1.0Unable to...
View Article