I run: Solana-keygen new --force solana airdrop 5 I have a solidity smart contract that looks like this: // SPDX-License-Identifier: MIT pragma solidity ^0.7.0;
For some reason, my mocha test is unable to find my IDL. I am getting the error below: name@Mabels-MacBook-Pro solana-anchor-reactjs-payment % anchor test BPF S
For some reason, my mocha test is unable to find my IDL. I am getting the error below: name@Mabels-MacBook-Pro solana-anchor-reactjs-payment % anchor test BPF S
I have minted NFTS with my own contract on Solana blockchain. I am going to sell these NFTS on Marketplace but marketplaces need candy machine addresses or hash
I am creating a dapp where multiple users can deposit SOL into an event account, and depending on whoever wins the event, they can redeem SOL back to their wall
const connection = new anchor.web3.Connection("https://api.devnet.solana.com"); const provider = new anchor.Provider(connection, wallet, { preflight
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