Getting error when using SignAndSendTransaction Deeplink method on Phantom #412
Replies: 1 comment 2 replies
|
I believe your redirect is not encoded properly. You can see an example here. For more specific information check your phantom application logs by triggering the deeplink then going to Settings > Security & Privacy and download logs. You should be able to see a more specific error there for more guidance. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Hello,
I'm building an Expo app and I'm following this guide to sign and send transaction via Deeplink: https://docs.phantom.com/phantom-deeplinks/provider-methods/signandsendtransaction
When attempting to open the SignAndSendTransaction Deeplink, it navigates me to Phantom and quickly redirects back to my app.
From the redirect url, i can see the
errorCode=-32603anderrorMessage=Unexpected+error, which in this page means it's an Internal Error - Something went wrong within Phantom.Please help to identify and resolve the issue.
Example
No response
Steps to Reproduce
I followed the logic implemented in this repository: https://github.com/phantom/deep-link-demo-app
connect()function and received theshared secret,public keyandsessiondata.This is the deeplink url that was used:
https://phantom.app/ul/v1/signAndSendTransaction?dapp_encryption_public_key=Fx2EzSrokFtuPwkHT1zRFTBx4yc5XyP6XPPCTa1DcQjz&nonce=FEenX5r1RGZiygmecFoMHDfxJc34RMPLG&redirect_link=myapp%3A%2F%2F%2Fevents%3FredirectRoute%3DonSignAndSendTransaction&payload=Evvk3k5tB6TezK5d93XmjatzBGaWifZbGDCyQqKbNjxnyQWdULxEp58QaZWRdj72EgJuKvsJhJzNQfe4aRm87JadXJi5rJGNGBUWcQqCWa93ZfrJYxw1SQQC8ZCTHBtwRGkwdYS5YTLTWS8PndFs2HKvEAnDNnPVcD8Ww6upLwf2jUL6n3gMKNBsZPYJc1gSi9ujFNJpExBzHibSeXQAP3C1eZHppBjutkUwew4vYyTvVKWafyiKARKZr9StVaYoc9zHsQjhQSBRKe9EKRfv32GxwW2q7So2D1RKoBXMQqnjoYeSBz3PZHwgQLLtmZZatFe9bcRKnCDQUmE5TmMZsVZKhVxnCArjdFE3MC2cWgtjvnZe9d7cLWAWabzdeNS784r2o3XgSEXnixeQ89S5cm46ddBdS5inCLzdQJpsN2dPpKQdXSCTTeHyignVsYKu8u4K6JjFkFWgFiAA7MmcEX9AnsGFMFd5HBeJ6qn29wqfxNgHkuhR8xgjoakhepCLEK6dgvjAfBtHsTbhfEFahm2mDfkfBLgn6ZnwpnVD7xAXUKaeN3XVwsnwViJxuAYugKSCAWCfVmAbz9kxN8RkWQR6Novb8NBABvgSMF7MZY7ZGnWr5eJayAH9oUtyWUHjGneBAe1aQ3JH3TSX9vsrugSk5Sy1fV2Xtz2Dd6vQjsMhvLgw15snhnNegRYeSvzxnhwsBjbEkYLqv9bz9oemetnx8vUi9wmjaizLEs3DvbePB6bFHpNZxMDWqgThe redirect_link is:
myapp:///events?redirectRoute=onSignAndSendTransaction&errorCode=-32603&errorMessage=Unexpected+errorPhantom Version
Phantom 25.7.0 on Android
Is there an existing discussion for this?
All reactions