[Java/Kotlin] AnySigner.signJSON Always return empty string #3826
-
This is my code.
responseModel.tx is
signedTransation always empty string, I have no idea. responseModel.tx is rango API reutrn TX json. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ImL1s, At this moment, WalletCore does not provide functionality to process the Rango TX format, so you need to manually convert the given JSON to a wallet-core/src/proto/Tron.proto Lines 254 to 264 in 406abe4 |
Beta Was this translation helpful? Give feedback.
Hi @ImL1s,
AnySigner.signJSON
has a completely different format. It takes a Tron.Proto.SigningInput Protobuf represented as a JSON:https://chromium.googlesource.com/external/github.com/google/protobuf/+/HEAD/src/google/protobuf/util/json_util.h#31
At this moment, WalletCore does not provide functionality to process the Rango TX format, so you need to manually convert the given JSON to a
Tron.Proto.SigningInput
:wallet-core/src/proto/Tron.proto
Lines 254 to 264 in 406abe4