if (unipassInstance.isLogin()) {
var transactionInput = SendTransactionInput(unipassInstance.getAddress(),
"0x7b5Bd7c9E3A0D0Ef50A9b3aCF5d1AcD58C3590d1",
"0x" + toWei("0.001", Convert.Unit.ETHER).toBigIntegerExact().toString(16)
)
unipassInstance.sendTransaction(transactionInput, object : UnipassCallBack<SendTransactionOutput> {
override fun success(output: SendTransactionOutput?) {
Log.d("Unipass SendTransaction", "success")
}
override fun failure(error: Exception) {
Log.d("Unipass SendTransaction", error.message ?: "Something went wrong")
}
})
}