Questions tagged [solana-transaction-instruction]

66 questions
0
votes
1 answer

Send a buy transaction to magic eden market on Solana Blockchain with python

i want to buy an nft which is already listed on Magic Eden, is there a way to make it possible ? i think the transaction would be like this : instruction = buy(nft_address,receiver_adr,magic_eden_program_id, price) send_tx =…
0
votes
1 answer

unable to send API request to Solana devnet

I'm doing the following tutorial of creating tokens on Solana. https://spl.solana.com/token and it seems that all requests to Solana devnet are failing $spl-token create-token Creating token 2rxgzZ1tk692aZJXDz8NhTkVXQWB396Z3L21nTUYWCFi error sending…
0
votes
2 answers

Commitment Level

I've written a basic rpc client which polls the state of an Solana account to look for a specific condition (i.e. a unique int64 Id being written to it). When the condition arises, I call a smart contract which takes the same account as a mutable…
-1
votes
1 answer

How to create a Solana program to constantly check wallet funds and transfer them to another wallet?

I'm new in web3 but experimented programmer. I want to try to make my first smart contract in Solana. I have a Phantom Solana wallet, and I want to create a smart contract that checks if my wallet have received any transaction of any token, and send…
-1
votes
1 answer

getting a "this program may not be used for excuting instructions" error when making a simple spl transfer

i'm trying to send an spl-token transaction but it's not working, it's a transacion on the devnet with a token that i newly created, my code is from spl.token.instructions import transfer, TransferParams from spl.token.client import Client …
-1
votes
1 answer

How to add a Pubkey to an account containing a vector of Pubkeys in an anchor program

use anchor_lang::prelude::*; use rand::Rng; use solana_program::{declare_id, pubkey::Pubkey}; declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); #[program] pub mod raffle_impl { use super::*; pub fn create_raffle(ctx:…
1 2 3 4
5