Skip to main content

New answers tagged

2 votes

sendTransaction() fails with signature must be base58 encode

This is a shot in the dark, but since your script is trying to do multiple things at once, and the third step depends on the second step having been confirmed, you might just need to change the ...
Jon C's user avatar
  • 15.3k
0 votes
Accepted

Decoding solana transaction data

Im using this repo: https://github.com/rckprtr/pumpdotfun-sdk import bs58 from "bs58"; import idl from "../../src/IDL/pump-fun.json"; import { BorshCoder, } from "@coral-xyz/...
rckprtr's user avatar
  • 16
1 vote
Accepted

What is an Address Lookup Table (ALT/LUT/Lookup Table)?

LUTs allow you to store up to 256 addresses (e.g. abcdef and ghijkl) onchain in a special account so that you don't need to pass the whole 32 byte addresses in your transaction when referring to ...
Ahri's user avatar
  • 3,920
0 votes

"Error:encoding overruns Uint8Array" when sending transactions?

The 1232 limit is fixed, the only way you can get around that is to make your transaction smaller. One way to achieve this is using Address Lookup Tables. If this isn't enough/isn't applicable to your ...
Ahri's user avatar
  • 3,920
3 votes
Accepted

What is the minimum amount of CUs a Solana transaction must process?

Depends on how deep you want to go. I won't be able to give an exact number, but hopefully a picture can be painted here. Theoretically the very minimum would be 1 CU (to my knowledge every ...
Joey Meere's user avatar
  • 1,324
3 votes

Tx sign: WalletSendTransactionError: Unexpected error

Is systemProgram: PROGRAM_ID, the system program ID - 11111111111111111111111111111111? import { SystemProgram } from "@solana/web3.js"; const instructone: TransactionInstruction = await ...
Jimii's user avatar
  • 3,120
1 vote

Sending transaction that expiry early instead of 150 blocks validity

This is a bit of a hack, but rather than using getLatestBlockhash, you can fetch the recent blockhashes sysvar account and use any one of the old values: https://explorer.solana.com/address/...
Jon C's user avatar
  • 15.3k
1 vote

Sending transaction that expiry early instead of 150 blocks validity

You could possibly try sending an older blockhash. It still has to be within the last 150, but if you, for example, send a blockhash that was 100 slots ago, then it will be valid for only 50 blocks.
kxtof's user avatar
  • 11
0 votes

L2 blockchain on solana

I would first recommend reading this excellent piece on why Solana Need L2s and Appchains You would get a lot clear idea on usecases and some technical insights. Next, go through Sovereign's Rollup ...
Syed Aabis Akhtar's user avatar
1 vote

sign an instruction on the frontend, another on the backend for the same transaction

You have to first use the @solana/web3.js library to create a transaction in backend, add appropriate instructions, sign it if needed using local keypair, then encode it in base58/base64, send it to ...
Syed Aabis Akhtar's user avatar
1 vote

Frozen Account (cant sell or access token)

The error message you encountered, "Instruction #4 Failed - Account is frozen," indicates that your Solana account is currently frozen, which prevents you from performing transactions such ...
Shahid H.'s user avatar
0 votes

Frozen Account (cant sell or access token)

Looking at the token mint of provided token, it seems that the freeze authority wasn't revoked. That means that the original minter 763uL5txLsGHxo5sidtu1zq7EUrPJjterywCd2hvWXrx has authority to freeze ...
Jimii's user avatar
  • 3,120
3 votes

how to make your dapp (frontend application) trustable for solana transactions

For phantom wallet try using this: Change your dApp to use the signAndSendTransaction method. Information about this method can be found here: https://docs.phantom.app/phantom-deeplinks/provider-...
Mr. J's user avatar
  • 146
1 vote

Not able to read the updated value in a Solana Data Account

Instead of manually deserializing the account data, try: const account = await program.account.greetingAccount.fetch( greetingAccount.publicKey ) Anchor can automatically deserialize ...
john's user avatar
  • 7,445
1 vote

Trying to buy sol but the buy page doesn't load

At the current time, Solana is very popular and sites such as Coinbase may be struggling to handle the demand. Possible solutions could be to try at quieter times of the day Change Internet providers ...
Sal Samani's user avatar
0 votes

how to make your dapp (frontend application) trustable for solana transactions

You need to reach out to Blowfish which is what Phanton and Backpack use to flag suspicious sites. This is their email to use [email protected]
Jimii's user avatar
  • 3,120
1 vote

Solana TransactionExpiredTimeoutError : Transaction was not confirmed in 30.00 seconds

From the question, I assume you're confirming transactions with connection.confirmTransaction(signature, "confirmed) Try using this instead: const block = await connection.getLatestBlockhash(&...
Joey Meere's user avatar
  • 1,324
2 votes

what is the fastest way to send transaction?

For a user, your best bet is to go through an RPC configured with stake-weighted quality of service: https://solana.com/developers/guides/advanced/stake-weighted-qos There are other mechanisms for ...
Jon C's user avatar
  • 15.3k
1 vote

What determines the fee payer on a token swap?

If you are sending the transaction through Phantom's ui, it likely automatically sets your address as the transaction fee payer since you are the one sending the transaction. By default, the first ...
john's user avatar
  • 7,445
3 votes
Accepted

Decoding instructions

This is not an easy task in general in Solana. The instruction data is just a bag of bytes and you need to know how to interpret them. The best case is when you have the IDL that you can use for ...
chalda's user avatar
  • 1,082
2 votes

Making an UncheckedAccount a signer in some conditions

There could be but I'm not aware of such functionality within Anchor. I would probably use two separate instruction input accounts. One is the required non-signer UncheckedAccount<'info> and the ...
chalda's user avatar
  • 1,082
1 vote
Accepted

How can I track all buy and sell transactions that relate to a specific Token address?

What you can do is use the logsSubscribe RPC method to subscribe to log notifications. After that, you can use the getTransaction method to filter the notifications. I did this for tracking a wallet, ...
Nerevaine's user avatar
  • 159
1 vote
Accepted

Is it possible to use the latest blockhash to get transaction data for the block its for?

The getBlock RPC method takes in a slot number, so you can't use the blockhash as an input. You'll need to get the current confirmed slot using getSlot https://solana.com/docs/rpc/http/getslot, ie: $ ...
Jon C's user avatar
  • 15.3k

Top 50 recent answers are included