TransactionFacade
public protocol TransactionFacade
The interface of the class that allows you to send transactions.
-
sendTransferOperation(fromNameOrId:passwordOrWif:toNameOrId:amount:asset:assetForFee:completion:noticeHandler:)
This is a function for sending funds.
Remark
Default asset is
1.3.0
Declaration
Swift
func sendTransferOperation(fromNameOrId: String, passwordOrWif: PassOrWif, toNameOrId: String, amount: UInt, asset: String, assetForFee: String?, completion: @escaping Completion<Bool>, noticeHandler: NoticeHandler?)
Parameters
fromNameOrId
Sender name or id
passwordOrWif
Sender password or wif from account
toNameOrId
Receiver name or id
amount
Amount
asset
Id of asset which is sent
assetForFee
Id of asset which is pay fee
completion
Callback in which the information will return whether the transaction was successful.