Questions tagged [solana-web3js]
322 questions
1
vote
0 answers
AnchorError: Error Number: 101. Error Message: Fallback functions are not supported
I created a React app using @project-serum/anchor, @solana/web3.js and vite.
I am trying to send some tokens from one account to another.
My code works fine in dev mode but it throws an error when run in production mode (after building the app).…

Zious Carlos
- 11
- 2
1
vote
1 answer
How to transfer Solana Metaplex NFT to another wallet
I minted an NFT from a Candy Machine, and I want to transfer it to another wallet, but I'm not sure how to generate the Token object in order to do a transfer.
import { Keypair, Connection, clusterApiUrl, PublicKey } from '@solana/web3.js';
import…

Berry Blue
- 15,330
- 18
- 62
- 113
1
vote
1 answer
TransactionExpiredBlockheightExceededError - how should we handle this on the front-end
I am getting an error message when creating a signature
Error:
TransactionExpiredBlockheightExceededError: Signature 2XqzFuyv5YWpDPTT87CVu48QJPemGSu5rbCazrNBgY6D3mS8rugKugtzXDGpN6XZF8FPyWwXQvzfm4ZyMx6gTf6j has expired: block height…

Digital Dom
- 412
- 5
- 12
1
vote
1 answer
How do you mint multiple tokens in a single transaction in Metaplex Candy Machine v2?
Is it possible to mint multiple tokens in a single transaction?
I've found this code in the candy machine repo to mint one NFT in a transaction.
https://github.com/metaplex-foundation/candy-machine-ui/blob/main/src/candy-machine.ts#L371

Berry Blue
- 15,330
- 18
- 62
- 113
1
vote
1 answer
Transaction Signature Verification failed
I am trying to send a solana transaction with the web3js library.
I tried both functions
web3.sendConfirmTransaction(connection,transaction,[signers])
and by sending raw transaction after I sign the transaction with :
transaction.sign()…

Ray
- 47
- 3
1
vote
0 answers
Solana , Signature verification error magic eden
I am trying to purchase NFT on MagicEden. this is my code
Prepare signers
let Array_key = [123:..:98];
let signers = Keypair.fromSecretKey(Uint8Array.from(Array_key))
Connection
const connection = new…

Ray
- 47
- 3
1
vote
1 answer
connect to localhost using solana web3.js
I'm building a miniature next react app (for test purpose) to test a js script that i made, that is supposed to mint NFT on my account. I'm following this to makes everything works.
But, when i try any of these two:
const connection = new…

Nathan
- 493
- 1
- 3
- 13
1
vote
1 answer
How to connect to custom cluster with web3.js solana
i've made custom cluster of solana.
I'm trying to connect to it with web3.js like this:
const url = solanaWeb3.clusterApiUrl('http://x.x.x.x:8899/', false);
const solanaConnection = new solanaWeb3.Connection(url, 'confirmed');
but i'm getting this…

Singh
- 783
- 1
- 6
- 24
1
vote
1 answer
Sign the payer of the transaction through an API
What I would like to achieve is to make the user use the solana program for "free" and make the company pay for the transaction, what I have in mind is:
Extrapolate the transaction in the frontend
Send it to my backend server through an api
Use the…

alessandro buffoli
- 658
- 2
- 10
- 29
1
vote
1 answer
Solana transaction never gets picked up by the cluster
For the last few weeks or so, we are having the following issue:
Some of our transactions, when sent via sendRawTransaction() never get picked up by the network (if we look up the txid in the explorer, it's never there), and yet web3js doesn't error…
1
vote
1 answer
How to use zero_copy with anchor in Solana PDAs
I'm building on Solana and need some PDAs to store my program state.
The default with anchor is constantly serialize/deserialize the accounts, even when just passing the address into instructions, which crushes BPM's 4k stack limit REALLY soon for…

AllBlooming
- 190
- 7
1
vote
2 answers
Subscribe to events/logs in solana from Typescript code
I have used the emit macro in Anchor to emit events from the smart contract as follows,
use anchor_lang::prelude::*;
// handler function inside #[program]
pub fn initialize(_ctx: Context) -> Result<()> {
emit!(MyEvent {
…

Senuda Jayalath
- 101
- 8
1
vote
1 answer
Solana transaction using python
I am trying to make a transaction using python in the Solana network, I am using solana.py python library and anchor.py, but I am unable to identify how to open the wallet for signing the transaction

Kashif Manzoor
- 13
- 4
1
vote
2 answers
Solana transaction not confirmed
Hello guys i'm receiving this pretty often, not every time but often enough:
Transaction was not confirmed in 30.00 seconds. It is unknown if it succeeded or failed. Check signature…

Andon Mitev
- 1,354
- 1
- 11
- 30
1
vote
0 answers
SOLANA Rent and Rent Exemption | Which accounts they are taking rent from
Hi I'm new to SOLANA Blockchain , While gazing through the charges inside Solana, I found there is a fee associated with transaction like , minting tokens , transferring them , creating token accounts etc.. But there is another charge called Rent…

insaneray
- 75
- 1
- 11