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 ArticleAnswer 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 ArticleTransferring 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
More Pages to Explore .....