pink-room / walletconnectkit-android

WalletConnectKit is the Swiss Army toolkit for WalletConnect!
Apache License 2.0
73 stars 12 forks source link

Sign transaction without call #7

Closed y9san9 closed 2 years ago

y9san9 commented 2 years ago

Is there a way to only sign transaction without performing?

Снимок экрана 2022-02-22 в 07 44 15

I want to get raw signed message from this params

P.s. SignedTransaction is a value class with single String parameter in constructor

bffcorreia commented 2 years ago

Hey @y9san9! I deployed a new version of the library (0.3.2) containing a personalSign method. That's probably what you need. Please let me know if that helps :)

y9san9 commented 2 years ago

To be honest I don't know how to get the message to pass into personal sign. I mean, there I need to encode EIP-1559/Legacy transactions with RLP.

I found a way, just calling custom method eth_signTransaction which takes same params as eth_sendTransaction

bffcorreia commented 2 years ago

Great! Should we close this issue then?

y9san9 commented 2 years ago

Yep