kin-android / kin.sdk / KinAccount / buildTransactionSync
abstract fun buildTransactionSync(@NonNull publicAddress: String, @NonNull amount: BigDecimal, fee: Int): Transaction!
Build a Transaction object of the given amount in kin, to the specified public address.
Note: This method accesses the network, and should not be called on the android main thread.
publicAddress - String: the account address to send the specified kin amount.
amount - BigDecimal: the amount of kin to transfer.
fee - Int: the amount of fee(in stroops) for this transfer.
AccountNotFoundException - if the sender or destination account was not created.
OperationFailedException - other error occurred.
Return Transaction!: a Transaction object which also includes the transaction id.
abstract fun buildTransactionSync(@NonNull publicAddress: String, @NonNull amount: BigDecimal, fee: Int, @Nullable memo: String?): Transaction!
Build a Transaction object of the given amount in kin, to the specified public address and with a memo(that can be empty or null).
Note: This method accesses the network, and should not be called on the android main thread.
publicAddress - String: the account address to send the specified kin amount.
amount - BigDecimal: the amount of kin to transfer.
fee - Int: the amount of fee(in stroops) for this transfer.
memo - String?: An optional string, can contain a utf-8 string up to 21 bytes in length, included on the transaction record.
AccountNotFoundException - if the sender or destination account was not created.
OperationFailedException - other error occurred.
Return Transaction!: a Transaction object which also includes the transaction id.