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 ArticleWithdrawal 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 ArticleFaster 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 ArticleHow 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 ArticleWhy 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 ArticleTransferV1 + 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 Articlesolana-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 ArticleIs 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 ArticleRun 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 ArticleListening 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 ArticleWhat'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 ArticleHello, 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 ArticleMetaplex 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 Articleavm 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 ArticleI 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 ArticleHow to Declare RpcBaseOptions?
I have two calls to fetchAllDigitalAssetWithTokenByOwnerAndMintCall 1 (this works):const a_asset = await fetchAllDigitalAssetWithTokenByOwnerAndMint(umi, aWallet.publicKey, mint.publicKey, {commitment:...
View Articleerror 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 Articlehow 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 ArticleCheck 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 ArticleError 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