Quantcast
Channel: Send SPL per lamport for msg.sender solana alternative - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 2

Send SPL per lamport for msg.sender solana alternative

$
0
0

I just switched to solana from solidity.currently im using solang for ease of use.I know in solana there is no msg.sender but solana can detect payer of tx.I want to write a program that will send 1token per lamport to payer of tx.it means a i need a contract or program address. when a user sent 1 lamport to that he recive 1 spl-token of an already minted token.it require 4 features

  • solana program be able to recive lamport
  • solana program be able to detect who payed the lamport transaction
  • solana program be able to detect how much lamport recived
  • solana program be able to recive and send spl token

is it possible to do this in solana ?

✏️ Edit :The problem here is not finding msg.sender. i want send spl to person who paid the fee. Problem is detecting amount of lampons and sending slp


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images