solanaj icon indicating copy to clipboard operation
solanaj copied to clipboard

Solana RPC client written in Java

Results 17 solanaj issues
Sort by recently updated
recently updated
newest added

// deserialize the transaction const swapTransactionBuf = Buffer.from(swapTransaction, 'base64'); var transaction = VersionedTransaction.deserialize(swapTransactionBuf); console.log(transaction); // sign the transaction transaction.sign([wallet.payer]); // Execute the transaction const rawTransaction = transaction.serialize() const txid =...

org.p2p.solanaj.rpc.RpcException: Transaction version (0) is not supported by the requesting client. Please try the request again with the following configuration parameter: "maxSupportedTransactionVersion": 0 at org.p2p.solanaj.rpc.RpcClient.call(RpcClient.java:88) at org.p2p.solanaj.rpc.RpcApi.getBlock(RpcApi.java:522)

var transaction = VersionedTransaction.deserialize(swapTransactionBuf); How to implement it in Java?

Requirements: Architecture: - Replace Exception-based code with Optionals, remove try-catch from normal code flow. - Evaluate different Websocket libraries - Support for importing/signing/sending raw transactions (Base64/bytes) - Support for durable...

question

how do use proxy in RpcClient?

I want to build the instruction for swapping on DEX Orca. I don't understand how to build `data` for `SystemProgram.createTransactionInstruction`. If someone can help me with this, or has any...

We currently use a poorly-coded library called Java-Websocket, instead of the highly battle tested OkHttp. OkHttp supports websockets. Use OkHttp, and remove the original dependency.

enhancement

https://docs.solana.com/developing/clients/jsonrpc-api#isblockhashvalid

help wanted
good first issue

So what was the root cause of transactions ? My Code I have 0.001 sol on account `@GetMapping("/send_transaction") public ResponseEntity sendTransaction() { PublicKey fromPublicKey = new PublicKey("PUBLIC-EXAMPLE-SECURED"); PublicKey toPublickKey =...