Quantcast
Channel: Transferring solana to a hardcoded publickey - Solana Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Jimii for Transferring solana to a hardcoded publickey

You need to pass in the account you want to transfer the funds to in your Accounts struct and use that in the transfer instruction.Using the transfer instruction from anchor would look like this use...

View Article



Answer by john for Transferring solana to a hardcoded publickey

The account is missing since you've only provided the address within the instruction logic. You'll need to include the fee_pubkey as one of the accounts required by the instruction instead of...

View Article

Transferring solana to a hardcoded publickey

let fee_pubkey_str = "auth8dV96CVJrsFxAdDM13eo1fFq9vE27C2EJ2yezJw"; let fee_pubkey = Pubkey::from_str(fee_pubkey_str).unwrap(); let transfer_to_fee =...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>