Questions tagged [solana-program-library]
90 questions
1
vote
1 answer
Solana rent exempttion clarification
I want to understand Solana rent and it's relation to the CLI usage. I understand the basics, that you need 2 years worth of rent in order to be rent-exempt but I have several questions in order to reach a better understanding:
I have wallet keypair…

Börkur Jónsson
- 13
- 3
1
vote
0 answers
Signature verification failed When transferring spl-token to user connected phantom wallet
bs58.decode(
"2YQDdnfxiHPKu9GypLX1yXaQTQojvDSPgFkDxrU********************************************"
)
const mintPubkey =
"A8SJfwzKJAaMrY6Lb*************************";
const getProvider = async () => {
// opens…

Amir Alam
- 155
- 1
- 12
1
vote
1 answer
How to transfer NFT spl-token using phantom wallet and solana web3js
I can transfer the Solana from one account to another account using phantom wallet using this code
const transferTransaction = new Transaction()
.add(SystemProgram.transfer({
fromPubkey: alice.publicKey,
toPubkey: feePayer.publicKey,
…

Amir Alam
- 155
- 1
- 12
1
vote
0 answers
getTokenAccountsByOwner - odd result?
I have created a token using SPL. And I have minted some supply into a wallet address on testnet
Token address: 668JcT5AiLYNi8XVaDNntTaLWzuQ8EnbBzA9zSmKbipW…

1977
- 2,580
- 6
- 26
- 37
1
vote
1 answer
How to verify with Python (PyNaCl) a message signed by Solana wallet adapter (javascript)
I have signed a message using Solana's wallet adapter example:
import { useWallet } from '@solana/wallet-adapter-react';
import bs58 from 'bs58';
import React, { FC, useCallback } from 'react';
import { sign } from 'tweetnacl';
export const…

Ander
- 5,093
- 7
- 41
- 70
0
votes
0 answers
Got error "Cross-program invocation with unauthorized signer or writable account"
I'm new in Solana and tries to reassign account's owner.
I do next:
Deploy program
Create account with owner = program deployed id
Call program, which change owner
But on step 3 I got error:
SendTransactionError: failed to send transaction:…

Nikita Duginets
- 163
- 1
- 6
0
votes
0 answers
Solana auctionHouse sell instruction showing error Types of property 'asset' are incompatible
The following code to sell a nft working perfectly with nodejs .But when I try to run it in reactjs it is showing error. Code is
` const auctionHousee = await metaplex
.auctionHouse()
.findByAddress({ address: new…
0
votes
1 answer
Spl token not getting minted using spl js library
Here's my code i'm trying to mint spl token using spl js library:
(async () => {
const connection = new web3.Connection(web3.clusterApiUrl("devnet"));
let secretKey = Uint8Array.from([
186, 104, 237, 47, 123, 227, 2, 226, 150, 7, 169, 40,…

S M
- 5
- 2
0
votes
0 answers
its trait bounds were not satisfied label: method `serialize` not found for this struct
I'm trying to save AccountInfo in a struct that #[derive(BorshSerialize, BorshDeserialize, Clone, Debug)] to send SOL to this account. AccountInfo is a struct in library that don't impl serialize method. This account is randomly chosen from a map in…

marethyu
- 95
- 6
0
votes
1 answer
Transfer a solana token from my wallet to another in python
So I am working on a script that transfers tokens (custom-made tokens not owned by me) from my wallet to another in python using solana.py. How do I go about doing that?
(By tokens I mean, tokens like Dust, Luv, or any other solana token)
where do I…
0
votes
1 answer
Solana PDA passing from javascript client
I'm writing a Solana program which uses PDAs to store auction positions and I have a question about passing the accounts from client when calling instructions. My positions use a numeric counter as a seed (because all other properties are not…

zdev
- 75
- 1
- 2
- 9
0
votes
0 answers
How can add solana token 2022 metadata
How can I add solana token 2022 metadata?
And how can I add solana token 2022 to phantom wallet?
https://token-creator-lac.vercel.app/
above dapp cant update token2022 metadata.

john
- 1
- 1
0
votes
0 answers
Solana Token Swap Program
I am trying to create a swap pool and interact with existing pools to perform a swap by interacting with solana swap program but getting this error.
"Program log: panicked at 'index out of bounds: the len is 0 but the index is 0',…

Sumi
- 1
- 1
0
votes
1 answer
How can we Wrap and Unwrap SOL using the Solana Web3 TS/JS library?
Using Solana Web3 TS library how can we wrap and unwrap SOL?
Here on this link it is possible to see what the SPL Token CLI program does for wrapping and unwrapping SOL, but the conversion of those methods to TypesScript is not straightforward.
How…

GarouDan
- 3,743
- 9
- 49
- 75
0
votes
1 answer
ATA ownership changed to token program
I have been spending hours trying to understand why my ATA address owner suddenly changed to the token program instead of my account address. I am using PDA to transfer the token from the PDA ATA account but unable to do so since the PDA is no…

Syahmi Shaarani
- 3
- 2