kin-android

kin-android / kin.sdk / KinAccount / buildTransaction

buildTransaction

abstract fun buildTransaction(@NonNull publicAddress: String, @NonNull amount: BigDecimal, fee: Int): Request<Transaction!>!

Build a Transaction object of the given amount in kin, to the specified public address.

See ``KinAccount#buildTransactionSync(String, BigDecimal, int) for possibles errors

Parameters

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.

Return Request<Transaction!>!: Request<TransactionId>, TransactionId - the transaction identifier.

abstract fun buildTransaction(@NonNull publicAddress: String, @NonNull amount: BigDecimal, fee: Int, @Nullable memo: String?): Request<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).

See ``KinAccount#buildTransactionSync(String, BigDecimal, int, String) for possibles errors

Parameters

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.

Return Request<Transaction!>!: Request<TransactionId>, TransactionId - the transaction identifier