Skip to main content

Questions tagged [client]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 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
  • 33
0 votes
0 answers
16 views

Error: Program is not executable after I launch client to interact with helloworld.sol

This is in reference to the following repo: https://github.com/solana-labs/example-helloworld/ So after a few hiccups I managed to compile helloworld.so I then deployed that beast using: solana ...
Mark's user avatar
  • 43
0 votes
0 answers
27 views

Client Error: program with keypair (../program/target/deploy/helloworld-keypair.json) is not executable

I'm trying to run the client program after deploying https://github.com/dmakarov/simple-solana-program.git on localhost testnet. Deployment works fine cargo build-sbf --manifest-path=program/Cargo....
A. K.'s user avatar
  • 175
1 vote
0 answers
22 views

bench-tps not working on v1.18.5

I have been locally testing some changes using cluster bootstrap command ./multinode-demo/bootstrap-validator.sh --gossip-host <public_ip>. On the client side on another machine I usually use ...
Huzaifa Rahman's user avatar
1 vote
1 answer
40 views

How to fetch constants from a program?

So to fetch the current state of given account I'd do: let acc = await program.account.<ACCOUNT_TYPE>.fetch(<ADDRESS>); Programs can have hardcoded constants (which can be changed upon ...
mega_creamery's user avatar
0 votes
1 answer
426 views

Provided seeds do not result in a valid address

Here is my initialize instruction: pub fn initialize( ctx: Context<Initialize>, token_name: String, token_symbol: String, token_uri: String, ) -> Result<()> { // PDA ...
Yarik Bratashchuk's user avatar
0 votes
1 answer
532 views

Getting more predictable timing when sending txs to RPC servers

I noticed that there is a big variety in how long it takes between when I send my tx until it gets processed by the blockchain. Sometimes it's 1 second, othertimes it can easily be 7-8 seconds for an ...
totAtot's user avatar
1 vote
1 answer
191 views

How to get "feeCalculator` since "getRecentBlockhash()" deprecated?

This is how feeCalculator is received before: const { feeCalculator } = await connection.getRecentBlockhash(); getRecentBlockhash() is deprecated. Instead we use connection.getLatestBlockhash() I ...
Yilmaz's user avatar
  • 1,164
1 vote
2 answers
78 views

ERROR WITH PDA'S

Hi So I am trying to work with PDA and I have stumbled across an error, Initially the code did work. Later it started throwing an error , and I don't understand it . const Home: NextPage = () => { ...
Killerthief's user avatar
1 vote
2 answers
57 views

RPC CALL WITHOUT HAVING LAMPORTS

So, I want to know if I make an RPC call from my client-side and my account has 0 balance. Does the RPC call go till the validator and get rejected or does the RPC call itself reject the program?
Killerthief's user avatar
4 votes
1 answer
128 views

When TransactionStatusMeta can be None?

After calling get_transaction from solana_client you get an EncodedTransactionWithStatusMeta which contains meta: Option<UiTransactionStatusMeta> field. However, docs do not say when meta can be ...
RowanStone's user avatar
6 votes
1 answer
550 views

How to serialize instruction buffer for an Anchor program

Given the following Anchor instruction : pub fn create_joke(ctx: Context<CreateJokeCtx>, joke_content: String) -> ProgramResult { ... } How to find the borsch schema and serialize the ...
mwrites's user avatar
  • 427
4 votes
2 answers
292 views

How do I solve this: `Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0`

I have this in my lib.rs file: #[derive(Accounts)] pub struct Initialize<'info> { #[account( init, payer = authority, space = 8 + Config::SIZE, seeds = ["config"....
Ademola's user avatar
  • 3,833
0 votes
4 answers
783 views

Checking to see if a token account exists using anchor-ts

I have a workflow such that an ATA needs to be passed into an instruction in a contract but I would like to check to see whether or not i need to initialize it first on the client (there may be ...
Rohan Kapur's user avatar