Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
54 views

What I am missing after creating private rpc Solana node

I create rpc Solana on dedicate server from edgevana. I use my rpc endpoints in trade bot when I use heluis https and wss the bot run and start , when I use my https and wss the bot exit and get error ...
0 votes
1 answer
34 views

Why my Option account is required when invoke from js client?

all. I am trying to use Option account in a demo, where, token related accounts are optional, when not provided, it will transfer SOL from my contract to user, other wise transfer SPL token to user. #...
0 votes
1 answer
27 views

Can not use account after allocate the space

i'm new to solana. When i do allocate 100 byte from the docs on my account like this: let allocateTransaction = new Transaction({ feePayer: senderKeypair.publicKey, }); allocateTransaction....
2 votes
2 answers
2k views

Transaction Error: Signature Verification Failed: Missing Signature For PublicKey

I'm building a transaction on devnet that previously worked when I tested my program. I don't think it's the program itself, but how I am passing down the signatures which is slightly different from ...
3 votes
1 answer
154 views

How to create shard accounts to manage "unlimited" account size

Since there is a limitation inside Solana transactions (1kb), and Solana account (1Mb), I'm not able to create a huge account ^^ Someone suggests me to open a new question: Handle big vector ...
0 votes
0 answers
62 views

How to get LP total Supply and LP Burn, i have lp not burn

using the solana/web3.js , spl and sdk raydium libraries. in typescript I can get the remaining lp mint by getAccountInfo but I can't find what to do for the total and I don't want to use rugcheck ...
2 votes
1 answer
370 views

What dataLength to use for getMinimumBalanceForRentExemption() for a SOL account?

According to the Solana documentation the minimum balance/amount to be send to new SOL account can be calculated using getMinimumBalanceForRentExemption() getMinimumBalanceForRentExemption() takes a ...
0 votes
1 answer
124 views

Error Creating account: failed to send transaction: Transaction simulation failed: Attempt to debit an account but found no record of a prior credit

I am creating accounts for my application using custodial wallets while creating account I am getting above error. import { Connection, Keypair, LAMPORTS_PER_SOL, SystemProgram, Transaction, ...
1 vote
1 answer
597 views

obtain the contract of a token through the address of a holder

I am currently learning the basics of programming in solana using the different json functions and I have a question Is there a function that gives you the contract of a token having only the address ...
1 vote
1 answer
1k views

Error: AnchorError: AnchorError caused by account: base_account. Error Code: AccountNotInitialized

I wrote a Solana Program with two functions, one for the initialization of an account and a second to upload data to the account. While testing on localhost it was working fine, but when I uploaded it ...
2 votes
1 answer
1k views

Handling multiple accounts

I'm having a hard time trying to understand the best way (even better, trying to fully understand a way) to handle multiple accounts (both client(js / ts) and program(anchor/rust) side). If I want to ...
3 votes
1 answer
624 views

Getting transaction info on account changes using JS

Using JS, how would I go about getting transaction information on transactions that affect the balance of a specific account? I've been able to listen for account changes with the following code, but ...
4 votes
3 answers
496 views

Program cannot deserialize borsch serialized instruction from typescript client

I am trying to write a client code in typescript for a contract written in vanilla rust. I am unable to serialize an instruction such that it can be deserialized by the program #[derive(Debug, ...