{"id":3389,"date":"2021-09-04T00:55:44","date_gmt":"2021-09-04T00:55:44","guid":{"rendered":"https:\/\/blog.mathwallet.org\/?p=3389"},"modified":"2021-09-04T01:06:38","modified_gmt":"2021-09-04T01:06:38","slug":"how-to-use-deeplink-connect-to-mathwallet-mobile-a","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.org\/?p=3389","title":{"rendered":"How to use Deeplink connect to MathWallet mobile app"},"content":{"rendered":"<h3 id=\"toc_0\">1 Open URL<\/h3>\n<p>You can use deeplink open MathWallet and then open an URL in the wallet in-app browser<\/p>\n<p>Sample URL below, change the value param as you need:<\/p>\n<pre><code>mathwallet:\/\/mathwallet.org?action=link&amp;value=http:\/\/dapp.mathwallet.xyz\/polkadot\/#\/kusama\n<\/code><\/pre>\n<h3 id=\"toc_1\">2 Open URL and get callback<\/h3>\n<p>Sample URL below, change the dappUrl param as you need and the blockchain param as well:<\/p>\n<pre><code>mathwallet:\/\/mathwallet.org?param={&quot;action&quot;:&quot;openUrl&quot;,&quot;protocol&quot;:&quot;SimpleWallet&quot;,&quot;dappUrl&quot;:&quot;https:\\\/\\\/gateway.eosdt.com\\\/&quot;,&quot;dappName&quot;:&quot;MathWalletSDK-Demos&quot;,&quot;blockchain&quot;:&quot;eosio&quot;,&quot;version&quot;:&quot;1.0&quot;,&quot;callback&quot;:&quot;mathwalletdemos:\\\/\\\/mathwalletsdk?action=openUrl&quot;,&quot;desc&quot;:&quot;&quot;,&quot;dappIcon&quot;:&quot;&quot;}\n<\/code><\/pre>\n<p>Currently this methods only supports blockchain: ethereum, tron, etc<\/p>\n<p>callback is the URL after MathWallet completed the transaction will open, such as\uff1a<br \/>\nappABC:\/\/abc.com?action=openUrl&amp;result=1<\/p>\n<p>result\uff1a0 cancel, 1 success, 2 fail<\/p>\n<p>If there is a transaction, it will add txID<br \/>\nappABC:\/\/abc.com?action=openUrl&amp;transfer=1&amp;txID=xxx<\/p>\n<p>For more details about this SimpleWallet protocal, check:<br \/>\n<a href=\"https:\/\/github.com\/mathwallet\/SimpleWallet\">https:\/\/github.com\/mathwallet\/SimpleWallet<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 Open URL You can use deeplink open MathWallet and then open an URL in the wallet in-app browser Sample URL below, change the value param as you need: mathwallet:\/\/mathwallet.org?action=link&amp;value=http:\/\/dapp.mathwallet.xyz\/polkadot\/#\/kusama 2 Open URL and get callback Sample URL below, change the dappUrl param as you need and the blockchain param as well: mathwallet:\/\/mathwallet.org?param={&quot;action&quot;:&quot;openUrl&quot;,&quot;protocol&quot;:&quot;SimpleWallet&quot;,&quot;dappUrl&quot;:&quot;https:\\\/\\\/gateway.eosdt.com\\\/&quot;,&quot;dappName&quot;:&quot;MathWalletSDK-Demos&quot;,&quot;blockchain&quot;:&quot;eosio&quot;,&quot;version&quot;:&quot;1.0&quot;,&quot;callback&quot;:&quot;mathwalletdemos:\\\/\\\/mathwalletsdk?action=openUrl&quot;,&quot;desc&quot;:&quot;&quot;,&quot;dappIcon&quot;:&quot;&quot;} Currently this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"unlock_protocol_post_locks":""},"categories":[1],"tags":[97,9],"_links":{"self":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3389"}],"collection":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3389"}],"version-history":[{"count":1,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3389\/revisions"}],"predecessor-version":[{"id":3390,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3389\/revisions\/3390"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}