I found a way: https://docs.solana.com/developing/plugins/geyser-plugins OR https://github.com/solana-labs/solana-accountsdb-plugin-postgres But for this need t
I have properly setup a Solana wallet on the devnet, using these commands: curl https://release.solana.com/v1.8.6/solana-install-init-x86_64-pc-windows-msvc.exe
I want to send a token from one wallet to another using web3.js and spl-token. To send it I have to create an object named Token, one of the parameters of the c
I am trying to implement this staking program but I don't understand how to deploy it, do I have to deploy the program first? This the frontend: https://github.
I am trying to CPI the Token Program to send spl-tokens to a wallet. For this the derive accounts in the context struct has three accounts without any attribute
In SPL Token there is a function called Approve which gives the delegate account the ability to transfer an amount of tokens. So far I can only see this working
I am trying to build a simple coin flip game in solana. Full code here I get this error: Error: failed to send transaction: Transaction simulation failed: Error
I npm installed everything, yet only web3 is not working? Is this a bug or is there an alternative to this solution? import React,{useEffect, useState}from 're
I’m building a program intended to manage multiple payments with one call. The program needs to complete the following steps: Accept a certain amount of l
I have an account that stores some data and is owned by my Solana program. I'd like to implement a Close instruction that "closes" the account and transfers the
I'm following a YouTube video about NFT minting and when I enter this: ts-node js/packages/cli/src/candy-machine-cli.ts upload ./assets --env devnet --keypair
I want to connect a Solana wallet (phantom or any other) to a web aplication through the js web3 library. I've read docs for most wallets and it seems like it's
I am trying to find out what is the candy machine id or address for a specific nft. So far I have tried looping through wallet accounts using @solana/web3.js co
I have been able to create the tokens and the accounts associated to handle the tokens and I have more than enough solana to send the token. I am trying to send
I'm trying to use solana wallet adapter in my react app following the setup in https://github.com/solana-labs/wallet-adapter but says: Attempted import error: '
I am trying to run web3.js from HTML. Now so far I have been able to call window.solana.connect(); and window.solana.disconnect(); functions. However when I try
I ran: curl https://release.solana.com/v1.8.3/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dir
use anchor_lang::prelude::*; declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); #[program] pub mod myepicproject { use super::*; pub fn start_st
I need to use a Phantom Wallet through the Solana CLI, but I'm unable to configure it. For example, to check balance using solana balance --keypair fileexported
Is it possible to code a solana program (smart contract) where the transaction fees that you should pay, i.e., for minting / stacking / swapping tokens within t