kotlin-walletconnect-lib icon indicating copy to clipboard operation
kotlin-walletconnect-lib copied to clipboard

how to implement sign transaction functionality?

Open ghost opened this issue 3 years ago • 5 comments
trafficstars

ghost avatar Dec 14 '21 16:12 ghost

figure it out? callback doesn't fire

Crysis21 avatar Jan 25 '22 10:01 Crysis21

Any updates?

Serpivskyi avatar Feb 01 '22 14:02 Serpivskyi

Check out signMessage in android

Abhi9454 avatar Feb 01 '22 14:02 Abhi9454

ExampleApplication.session.performMethodCall(Session.MethodCall.Custom(System.currentTimeMillis(),"personal_sign", arrayListOf("test sign",session.approvedAccounts()!!.first())), ::handleResponse) val i = Intent(Intent.ACTION_VIEW) i.data = Uri.parse("wc:") startActivity(i)

xiejingwen avatar Jun 15 '22 09:06 xiejingwen

ExampleApplication.session.performMethodCall(Session.MethodCall.Custom(System.currentTimeMillis(),"personal_sign", arrayListOf("test sign",session.approvedAccounts()!!.first())), ::handleResponse) val i = Intent(Intent.ACTION_VIEW) i.data = Uri.parse("wc:") startActivity(i)

I get no response with this method,This is the code I wrote

val from = ExampleApplication.session.approvedAccounts()?.first() ?: return Log.i(TAG, "---click-->$from") ExampleApplication.session.performMethodCall( Session.MethodCall.Custom( System.currentTimeMillis(), "personal_sign", arrayListOf( "0xdeadbeaf", from ) ) ) { response -> Log.d(TAG, "------>${response.result}--->${response.error}")

    }

No response at all

jiaweio avatar Jun 22 '22 03:06 jiaweio