I’m making a dApp and I want to add a button where a user (the one with their wallet connected) can send exactly 0.01 SOL to another user. I already wrote the function in my Rust program and after testing it with anchor test it seems to be working when I use my own personal wallet’s Keypair to sign the
Tag: solana
Trying to test Wallet instantiation in Solana JS
I’m trying to follow some code to test out instantiating a wallet in code. I’m hardcoding private key (will not do this in prod obviously) just to see how everything works. I’m getting this error: My code is as below: Answer So the issue here was the encoding. For ease of use, it’s best to use the phantom wallet. I
How to pass public key in javascript struct to anchor rpc method
I am trying to pass a public key to a anchor rpc method but think I am not generating it correctly in Javascript, I tried padding it with and without quotes but to no avail. anchor test gives me a TypeError: key.toBuffer is not a function IF I pad it. IF I do not pad it then I get the
My Javascript file won’t run because of bigint error
I am trying to use @metaplex/js to do some NFT minting. Usually my .js files work properly but when I run the file this error comes up. bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) I don’t really get what that means. So, I tried to run npm run rebuild but rebuild is said
How to get transfer signatures of 0 decimal spl tokens?
I want to get spl token’s, which 0 decimal, previous owner from the last owner. When I check solscan’s transfers tab I can see which wallets it has been transferred between. But on transactions tab I can only see the transaction which we are creating token account for other addresses. Transfer tab Transaction tab Hence how can I get transfer