All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Phantom signAllTransactions "Unexpected Error"

Hey I'm trying to let user sign a lot of transactions, basically these transactions are made by user (they insert their wallet addresses/pubkeys), however when im trying to signAllTransactions, with ...
youwish's user avatar
  • 13
0 votes
0 answers
4 views

Error: solders.SignerError: not enough signers

I am trying to buy a token through solana.ру, but in the process of writing the code, I get an error from solana.rpc.api import Client, Keypair, Pubkey from spl.token.constants import TOKEN_PROGRAM_ID ...
AREW's user avatar
  • 11
0 votes
0 answers
5 views

Intermittent Transaction Failures in Python: How to Ensure Reliable SPL Token Transfers?

I'm trying to implment spl token transfer in TG bot in python, but the transfer is failing from time to time with quite delay, I suspect it might something to do with the solana network, or rpc node ...
cablespecific's user avatar
0 votes
0 answers
6 views

Error in Transaction Simulation with Custom Solana Program: Invalid Account Data

Summary of the Problem I'm working with a custom Solana program and encountering an error during the transaction simulation phase. The specific command I'm executing is intended to create extra metas ...
MetaHarm's user avatar
0 votes
1 answer
7 views

How to use lifetime on Context correctly?

I want to iterate over the accounts passed in ctx.remaining_accounts as in: pub fn do_something(ctx: Context<DoSomething>) -> Result<()> { for acc in ctx.remaining_accounts.iter() { ...
Matheus Baptistella's user avatar
0 votes
0 answers
6 views

Can't run local validator on MAC

Hello I'm getting the following error: Error: failed to start validator: Failed to create ledger at test-ledger: io error: Error checking to unpack genesis archive: Archive error: extra entry found: &...
Soldevrookie's user avatar
0 votes
0 answers
4 views

SPL-Token-2022 Fee Epoch length

Good evening, I am just wondering how long an Epochs for the Transfer Fees are. I Just playing around with that in a localtestnet and wondering when the epoches Changed. As i setted new Fees, Set the ...
pxlfussel's user avatar
0 votes
0 answers
5 views

Solana Playground airdrop for hello_world not working: "You have requested too many airdrops."

I'm trying to deploy Hello_world on solana playground. This is my first ever program on solana/devnet. devnet says I need 0.42 SOL to deploy and to execute "solana airdrop 5" to receive SOL ...
Chase Van Bibber's user avatar
0 votes
0 answers
15 views

Weird behavior with @solana/web3.js confirmTransaction

I have a function that send transaction using the code below: const signature = await connection.sendTransaction(tx, { skipPreflight: true, maxRetries: 10, }) If I send a transaction using ...
Richard Ore's user avatar
0 votes
0 answers
9 views

Unable to Retrieve Data Using get_program_account with SPL Token Program (Python)

I'm developing a script to track newly created tokens on the Solana network. However, I'm encountering an issue when attempting to retrieve data using client.get_program_account. Despite my efforts, I'...
Nerevaine's user avatar
0 votes
1 answer
12 views

seeds do not result in a valid address javascript

async function ata() { const secretKey = Uint8Array.from(JSON.parse(process.env.PRIVATE_KEY)); const keypair = Keypair.fromSecretKey(secretKey); const owner = new PublicKey(keypair.publicKey); ...
Roomka's user avatar
  • 35
1 vote
0 answers
8 views

block I GET Compute Budget: SetComputeUnitLimit DEDUCTIN FROM EVERY TRANSACTION

Compute Budget ComputeBudget111111111111111111111111111111 Instruction Data Raw 030417010000000000 Input Args {2 items discriminator:{2 items type: "u8" data: 3 } microLamports:{2 items type:...
Paola Orozco's user avatar
1 vote
0 answers
9 views

Making a token on the mainnet; A few questions before I hit enter on the mint command(CLI)

This is that command; spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCX(censored) create-token --transfer-fee 300 300000 --decimals 10 --enable-metadata --enable-group --metadata-address ...
Keola's user avatar
  • 53
0 votes
0 answers
14 views

Sending a single transaction through Jito using Python

Is it possible to send single transactions through Jito (and including a tip) using Python? If yes, any ideas on how it can be done and how should the tip be included in the instructions of the ...
TheLastSamurai's user avatar
0 votes
1 answer
14 views

Fetch Top Solana Token Account holders via API

For solana tokens I want to fetch top accounts not Token Account. How i can via api?
Abdullah Azeem's user avatar
1 vote
0 answers
6 views

Pubkey to std::vec::Vec<u8> error when running anchor build v0.30.0

Error here when running anchor build on version 0.30.0. It turns out I was simply using <generic_program>::ID.key() and i just needed to remove .key(), so <generic_program>::ID
Burger Bob's user avatar
  • 1,406
1 vote
0 answers
11 views

Error: missing field `discriminator` at line 28 column 5

Hello im trying to build simple smart contract using anchor and solang but when im trying "anchor build" command im getting this error: info: Solang version v0.3.3 help: found contract '...
dustinioxyz's user avatar
0 votes
0 answers
11 views

Issue a new token on Solana chain, help! [closed]

We are about to issue a token in Solana chain, we need support on writing tken smart contracts, any suggestions?
Abdulrhman Metwally's user avatar
0 votes
1 answer
9 views

Solana-test-validator fails

Description Getting an errorwhile running solana-test-validator Ledger location: test-ledger Log: test-ledger/validator.log Error: failed to start validator: Failed to create ledger at test-ledger: io ...
Shanith K K's user avatar
1 vote
0 answers
7 views

Compressed NFT with attributes

Is there a way to add attributes in metadata to compressed NFT?
Nutinaguti's user avatar
1 vote
1 answer
52 views

How to remove freeze plugin delegate mpl core

I am using mpl core and I am trying to remove the freeze delegate plugin, but getting this error logs: [ 'Program 5TXoYuQbVzpFAqp2HdRtsAnH42pnps156V4WH8cHWGPz invoke [1]', 'Program log: ...
Jimii's user avatar
  • 1,478
1 vote
0 answers
8 views

CpiContext with_remaining_accounts is not working because of lifetimes

I'm writing a Solana program with Anchor 0.29.0 and Solana 1.18.9. I want to invoke through CPI another program. It all worked well until I realised that, the called program needs the remaining ...
dangow3tech's user avatar
1 vote
0 answers
11 views

changed config from devnet to mainnet, how to I migrate my tokens so I see hem when checking spl-token accounts?(2 question btw)

(Question 1) before I did this; (so i could change metadata) I'd see my 80 mil tokens in the account made for the new minted token, now when I use spl-token accounts I just get spl-token accounts ...
Keola's user avatar
  • 53
0 votes
1 answer
11 views

Transaction on solscan show wrong address

I have an account on Phantom wallet, I have an asset on it (memecoin based on Solana network). I create new account, try to send my asset to new account and it show failed. When I checked the tx on ...
Victor Ng's user avatar
0 votes
1 answer
18 views

How to validate the accounts passed on remaining_accounts in Anchor?

I'm wondering what would be the correct way to deal with multiple accounts in Anchor. For example, lets say that we have a program with User PDA accounts and multiple Data PDA associated to each user. ...
Matheus Baptistella's user avatar
1 vote
1 answer
23 views

Following a Solana token guide and found out later on the info is dated. Not I'm getting an error when I try to check my spl-token accounts

I was following the https://mafyuh.com/posts/spl-token-cli/ guide, and used this command "as instructed" PS C:\Users\Keola> solana config set --url https://api.mainnet-beta.solana.com --...
Keola's user avatar
  • 53
0 votes
2 answers
18 views

will it raise higher cost when setComputeUnitLimit to higer and higher CU than actually used?

From my first impression, the setComputeUnitLimit() just set the cap of execute unit, so, said Tx actually need 300_000 CU, then I can call setComputeUnitLimit() with any value that higher than ...
breeze wang's user avatar
0 votes
1 answer
17 views

anchor build fails with 'no such command: `build-sbf`', but I can see build-sbf is installed

I've installed Rust, Solana 1.18 (currently in beta) and Anchor 0.30. On a new project: anchor init project cd project anchor build fails with: error: no such command: `build-sbf` View all ...
mikemaccana's user avatar
  • 1,845
0 votes
1 answer
17 views

Can’t recover wallet

I have recently attempted to reactivate my phantom account and I used my 12 recovery phrase words but it opened what looked like to me a different account as none of my crypto was there for me to see? ...
peteknowles79's user avatar
0 votes
1 answer
24 views

expected a sequence of length 32 (got 43) error when using solana in Python

Solana community! I'm working on a Python script to filter transactions executed through the SPL Token Program. I aim to specifically identify and list new token creation transactions. However, I'm ...
Nerevaine's user avatar
2 votes
2 answers
17 views

How to perform transaction using Solana Phantom on client-side (browser)?

As the title says, I am trying to perform a transaction through the browser. I got the connection to work, and added the script tag: <script src="https://unpkg.com/@solana/web3.js@latest/lib/...
user13895's user avatar
0 votes
0 answers
5 views

non string fields in official metadata extension

Does anyone know if its possible to have non string additional fields when using the official token metadata extension? The interface just has a : pub additional_metadata: Vec<(String, String)&...
daoplays's user avatar
  • 577
1 vote
2 answers
31 views

What is the preferred way to create Fungible Token with Metadata on Solana

I created a Fungible Solana Token using Metaplex Umi, mpl token metadata, mplCandyMachine libraries. It seems to be working fine, but I am just wondering if this is the best way to create a fungible ...
BlockLearner's user avatar
1 vote
1 answer
16 views

I am trying to write a program in Rust for Solana, but I encounter a problem when using the macro #[entrypoint]

I am trying to write a program in Rust for Solana, but I encounter a problem when using the macro #[entrypoint]. Here is my code: // src/lib.rs use solana_program::entrypoint; use solana_program::{ ...
1 vote
1 answer
9 views

metadata extension interface - invalid account data for instruction on TlvStateMut::unpack

I'm trying to test out the metadata extension, and am just copying the interface and example that can be found here https://github.com/solana-labs/solana-program-library/blob/...
daoplays's user avatar
  • 577
1 vote
1 answer
16 views

What are the implications of Solana's stake-weighted mechanisms when choosing an RPC hosting solution?

I have read that many Solana mechanisms are stake-weighted and I was wondering what would be the implications of this when using services such as Helius or Quicknode vs a self-hosted (non staked) ...
Jesuspc's user avatar
  • 111
1 vote
0 answers
13 views

How to completely move balance out of Sol Wallet

(Not token) I'm trying to move all the SOL that I receive in my SOL wallet, but I get an error: Transaction results in an account (0) with insufficient funds for rent While I know what rent is, and ...
soeth's user avatar
  • 11
1 vote
1 answer
11 views

When uploading metadata for a new token do I use Akords vault or storage?

I found out the github has been archived and I found out that the new method is to use cli with metaboss, the tutorials I read say, put the .json and logo.png into akord arweave but, when I open my ...
Keola's user avatar
  • 53
0 votes
1 answer
9 views

I got an issue when interact with anchor project using coral-xyz/anchor

I try to run this function in client, but I got an issue with it. try { const provider = getProvider(); const program = new Program(idl, provider); const accounts = { ...
RichardPhan's user avatar
1 vote
0 answers
6 views

Try to create mint and ATAaccount shows Error:Transaction simulation failed:Error processing Instruction 0:Program failed to complete

Try to create mint and ATA account, When I run anchor test, it shows Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program failed to complete here ...
papi's user avatar
  • 51
1 vote
2 answers
74 views

How to use timestamp as seed for my PDA?

I'm wondering what are the best practices when using timestamps as a seed to calculate a PDA (or if using a timestamp is recommended at all). I should generate the timestamp from within my program: ...
Matheus Baptistella's user avatar
1 vote
0 answers
31 views

Trying to run a JS script that connects to Solana RPC using solana/web3.js

The error shows, bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) Solana node version: 1.18.11 I have found some info online but nothing that has helped. This being the ...
Dalt's user avatar
  • 11
0 votes
1 answer
22 views

Default program won't build on Anchor 0.30, ahash 0.84 no longer builds

I am attempting to build a default program on Anchor 0.30. anchor init test-project cd test-project anchor build Similar to this question, this error still occurs in Anchor 0.30: error[E0658]: use of ...
mikemaccana's user avatar
  • 1,845
1 vote
1 answer
32 views

Error: target/idl/sol_404.json doesn't exist. Did you run `anchor build`?

I run anchor build , and it indeeded generate a sol404.json , but when I run the anchor test it shows /Users/brooke/Desktop/sol404/node_modules/.bin/ts-mocha -p ./tsconfig.json -t 1000000 'tests/**/*....
papi's user avatar
  • 51
0 votes
0 answers
20 views

Token swap error 0x26 InvalidSplTokenProgram on raydium rust

i'm currently following this repo https://github.com/raydium-io/raydium-contract-instructions/blob/master/client/src/main.rs to perform a raydium swap but when i tried testing, i'm getting error ...
irregular's user avatar
1 vote
0 answers
29 views

I can't buy my tokens in mainnet from another wallet

I can't buy my tokens in mainnet from another wallet. The spl-token mint command returns the following error: Error: Client(Error { request: Some(SendTransaction), kind: RpcError(RpcResponseError { ...
AREW's user avatar
  • 11
1 vote
0 answers
9 views

Error: AnchorError caused by account: token_metadata_program. Error Code: InvalidProgramExecutable. Error Number: 3009

I run anchor test and then it shows Error: AnchorError caused by account: token_metadata_program. Error Code: InvalidProgramExecutable. Error Number: 3009. Error Message: Program account is not ...
papi's user avatar
  • 51
1 vote
0 answers
22 views

Helius Webhook for get real-time information about new tokens created

I'm using Helius webhook services to track new token creations with the TOKEN_MINT transaction type on the Solana blockchain. My webhook is set to listen to transactions from the account ...
Nerevaine's user avatar
1 vote
0 answers
9 views

How to get token transaction history with sold tokens in specific time range amout in Solana blockchain?

Could someone please guide me on how to retrieve transaction history along with the bought token amounts on the Solana blockchain? Like it is in Dexscrener? .png example below I want to get that ...
Deimantas Maksele's user avatar
2 votes
1 answer
27 views

How to transfer spl token using wallet-adapter or any other wallet like phantom wallet?

Almost all of the tutorial and materials online/guide uses keypair, which is not practical
Vendetta Labs's user avatar

15 30 50 per page
1
2 3 4 5
102