SDK Transaction object creation from proto Transaction Body #1777
Unanswered
aadityapaliwal
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi @aadityapaliwal, please check |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone
In our Android Wallet, we are using Hedera dApp to use SignTransaction method. I am getting the request but I am not able to create SDK Transaction class object (Because it's abstract class) or child class object using the proto TransactionBody. Can anyone help me? I am using Java SDK (com.hedera.hashgraph:sdk:2.27.0)
val protoTxnBody = com.hedera.hashgraph.sdk.proto.TransactionBody.parseFrom(signData.txnBytes)
com.hedera.hashgraph.sdk.Transaction(protoTxnBody) //Cannot create an instance of an abstract class
com.hedera.hashgraph.sdk.TransferTransaction(protoTxnBody) //Cannot access '': it is package-private in 'TransferTransaction'
Is there anything that I am missing?
Beta Was this translation helpful? Give feedback.
All reactions