Skip to main content

New answers tagged

0 votes

Using anchor_client with tokio

It turns out this was a fundamental limitation in anchor_client that couldn't be worked around without having to fork anchor. Fortunately this PR was merged recently which adds support with the async ...
Ahri's user avatar
  • 4,727
0 votes

Using anchor_client with tokio

I had an issue where I was using Keypair and NullSigner to sign a transaction on a tokio::task::spawn instance. The issue was that I couldn't put @n-kuria 's struct in an array because it couldn't ...
tymur999's user avatar
  • 101
2 votes

How do you generate a base58 private key?

Jacob's answer is fine, but here's a slightly more modern example for ESM modules: npm i bs58 @types/bs58 Then: import { Keypair } from "@solana/web3.js"; import { encode } from "bs58&...
mikemaccana's user avatar
  • 2,140
0 votes

Using anchor_client with tokio

@chalda's approach (described here and here) is the best solution I've found. Step 1: Create a Sendable Keypair that can be used from Tokio use anchor_client::solana_sdk::pubkey::Pubkey; use ...
N Kuria's user avatar
3 votes

How is a Solana wallet created behind the hood?

You've got it! Unlike EVM where the pubkey still gets hashed and cropped, a Solana keypair is nothing more than a normal ed25519 keypair. Using OpenSSH or any other tool/library that correctly ...
Ahri's user avatar
  • 4,727

Top 50 recent answers are included