Quantcast
Channel: Recent Questions - Solana Stack Exchange
Browsing all 7950 articles
Browse latest View live
↧

transaction.serialize is not a function

I use:**await metaplex.connection.sendTransaction(signedTxs)**but have this error:**transaction.serialize is not a function at StandardWalletAdapter.sendTransaction**do you know how to fix it?

View Article


Withdrawal sol to the wrong address, please help to recover lost fund [closed]

I send some sol to a wrong address that is missing one letter. I still can see the sol stay this address(GDTXXE91yZ5k8k2FsbLNDuijZymRQy2psJHgqm1CBor) and it is owned System Program in solscan.io which...

View Article


Faster method to retrieve pool keys [Raydium]

Currently I am downloading the whole json file from here https://api.raydium.io/v2/sdk/liquidity/mainnet.json and save it into json file, then get the pool info. Code given below for further...

View Article

How to fetch Raydium pool keys in real time?

I'm trying to fetch the pool keys that are necessary to make swap a transaction using the Raydium SDK. These keys are available in the https://api.raydium.io/v2/sdk/liquidity/mainnet.json file, but...

View Article

Why does this PDA account creating program fail?

Check out the code I use to understand PDA accounts.Program,entrypoint!(game);pub fn game( program_id: &Pubkey, accounts: &[AccountInfo], _instruction_data: &[u8],) -> ProgramResult {...

View Article


TransferV1 + token-2022

I've been struggling for a while with a transferV1 transaction from the mpl-token-metadata library using the Umi interface. Many examples here and there show how to do it with the classic spl-token...

View Article

solana-program-test fails with termcolor lifetime issues

I'm trying to start a program using solana-program-test, but I'm having trouble getting the examples in SPL to run.If I use the examples/rust/transfer-lamports program, extract it into its own project,...

View Article

Is there any faster way to getPoolKeys from Solana Raydium?

Currently, I am fetching all liquidity-related data from Raydium API. (https://api.raydium.io/v2/sdk/liquidity/mainnet.json)And then matching with my desired token address to filter the right PoolKeys....

View Article


Run solana rpc node got error "connection timed out"

I am trying to run a solana rpc node of mainnet. I followed the aiticle how-to-run-a-solana-rpc-node due to I did not find the way of how to run a rpc node on mainnet on the solana's official website....

View Article


Listening for account and extracting output from transaction, how to get...

I just got started with Solana so please be gentle :)I'm trying to extract information from a transaction in order to perform subsequent processing. I'm using @solana/web3.js with connection.getBlock...

View Article

What's the purpose of this check "!(Account.info.owner == SystemProgram &&...

Account checks that Account.info.owner == T::owner(). This means that the data type that Accounts wraps around (=T) needs to implement the Owner trait. The #[account] attribute implements the Owner...

View Article

Hello, I have solana dedicated rpc url and I want to call this rpc and fetch...

I have solana dedicated rpc url and I want to call this rpc and fetch on chain price of token. so please guide me how can I do this?

View Article

Metaplex mint with metadata error

this my package.json{"name": "sol-final","version": "0.1.0","private": true,"dependencies": {"@babel/plugin-proposal-private-property-in-object": "^7.21.11","@metaplex-foundation/js":...

View Article


Image may be NSFW.
Clik here to view.

avm install 0.30.1 is failing - could not compile `ahash` (lib)

I am trying to installavm install 0.30.1My current installation is:avm list - 0.29.0 (installed, current) - 0.30.0* - 0.30.1 (latest) - rustc 1.82.0-nightly ( from the comments I read we use Solana's...

View Article

Image may be NSFW.
Clik here to view.

I am getting solana-test-validator error while creating test-ledger

When I try to run that command, it gives me that error and I haven't fix yet. Is there anyone who gets that error before and solve

View Article


How to Declare RpcBaseOptions?

I have two calls to fetchAllDigitalAssetWithTokenByOwnerAndMintCall 1 (this works):const a_asset = await fetchAllDigitalAssetWithTokenByOwnerAndMint(umi, aWallet.publicKey, mint.publicKey, {commitment:...

View Article

error initializing umi with secret key

I am trying to initialize an UMI instance using my secret key, but it;'s failing with/home/jimii/Documents/crew/seatrees-minting-api/src/services/mintService.ts:40 const keypair =...

View Article


how to decode privatekey into bs58 acceptable by wallets?

I'm trying to encode a privatekey into bs58 and login into wallets but it says its not in the correct format. However i'm encoding into bs58 and even decoding to make sure i'm getting the same original...

View Article

Check if an account is a program

So in anchor we can enforce that a provided account is the system program, the token program, or the associated token program using the following constraint.my_program: Program<'info, System>As...

View Article

Error with Canopy size creating Merkle tree with bubblegum program

I am trying to create a merkle tree wth MPL Bubbegum but I am running into this error# ------ snip program: { name: 'mplBubblegum', publicKey: 'BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY',...

View Article
Browsing all 7950 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>