Skip to content

prepareSendingNativeSOL(from_to_amount_feePayer_)

bigearsenal edited this page May 17, 2022 · 1 revision

prepareSendingNativeSOL(from:to:amount:feePayer:)

Create prepared transaction for sending SOL

public func prepareSendingNativeSOL(from account: Account,
                                        to destination: String,
                                        amount: UInt64,
                                        feePayer: PublicKey? = nil
    )
  • account

  • recentBlockhash optional

Parameters

  • to: destination wallet address
  • amount: amount in lamports
  • feePayer: customm fee payer, can be omited if the authorized user is the payer

Returns

PreparedTransaction, can be send either directly or via custom fee relayer

Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally