{"id":3372,"date":"2021-09-01T10:38:23","date_gmt":"2021-09-01T10:38:23","guid":{"rendered":"https:\/\/blog.mathwallet.org\/?p=3372"},"modified":"2021-11-10T10:01:59","modified_gmt":"2021-11-10T10:01:59","slug":"gamefi-app-to-mathwallet-app-connection-use-simple","status":"publish","type":"post","link":"https:\/\/blog.mathwallet.org\/?p=3372","title":{"rendered":"How to use SimpleWallet API on MathWallet mobile app"},"content":{"rendered":"<p>If your are building a native mobile blockchain app, you could open MathWallet to sign your transaction through SimpleWallet protocol.<\/p>\n<p>MathWallet SimpleWallet Protocol supports:<br \/>1. Login account through the decentralize wallet<br \/>2. Open MathWallet to sign a payment or smartcontract transaction<br \/>3. Open MathWallet to sign a message (widely used in list a NFT for sell, etc)<br \/>4. Open URL inside the wallet in-app browser (ex: open Uniswap trading pair of the GameFi token)<\/p>\n<p>Here is a quick demo to show you how it works<\/p>\n<p>1 Install MathWallet5 Android version from <a href=\"https:\/\/mathwallet.org\">https:\/\/mathwallet.org<\/a><\/p>\n<p>2 Install SimpleWallet Demo Android app from this <a href=\"https:\/\/github.com\/mathwallet\/MathWallet5SDK-Android\">link<\/a><\/p>\n<p>3 Open Demo Android app<\/p>\n<p><img style=\"width: 350px;\" src=\"http:\/\/qiniu.eth.fm\/2021-09-03-1.jpeg\" alt=\"\" \/><\/p>\n<p>Select &#8216;ETH&#8217; as example<\/p>\n<p><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/qiniu.eth.fm\/2021-10-27-Artboard.jpg\" width=\"349\" height=\"756\" \/><\/p>\n<p>Click &#8216;LOGIN&#8217;<\/p>\n<p><img style=\"width: 350px;\" src=\"http:\/\/qiniu.eth.fm\/2021-09-03-3.jpg\" alt=\"\" \/><\/p>\n<p>The Demo App will launch MathWallet and allow user to select one Ethereum wallet<\/p>\n<p><img style=\"width: 350px;\" src=\"http:\/\/qiniu.eth.fm\/2021-09-03-4.jpeg\" alt=\"\" \/><\/p>\n<p>After the wallet selection, there will be a confirm window for user to complete the login operation (or sign transaction\/message, etc)<\/p>\n<p><img loading=\"lazy\" class=\"alignnone \" src=\"http:\/\/qiniu.eth.fm\/2021-11-10-WechatIMG162.jpeg\" width=\"350\" height=\"759\" \/><\/p>\n<p>Then MathWallet will launch the Demo App again which will get the returned data from MathWallet and move on the process.<\/p>\n<p>Math SimpleWallet API supports all EVM based blockchain (Ethereum, BSC, etc) and Substrate, Solana as well.<\/p>\n<p>To use this API, please read the document below first:<br \/><a href=\"https:\/\/github.com\/mathwallet\/SimpleWallet\">https:\/\/github.com\/mathwallet\/SimpleWallet<\/a><\/p>\n<p>SimpleWallet SDK and API Demo Projects can be found below for both iOS and Android<br \/>iOS \u2013 <a href=\"https:\/\/github.com\/mathwallet\/MathWallet5SDK-iOS\">https:\/\/github.com\/mathwallet\/MathWallet5SDK-iOS<\/a><br \/>Android \u2013 <a href=\"https:\/\/github.com\/mathwallet\/MathWallet5SDK-Android\">https:\/\/github.com\/mathwallet\/MathWallet5SDK-Android<\/a><\/p>\n<p>This Protocol is more focus on app to app connection which is very useful to mobile gamefi apps. If you are developing a web based dapp, we&#8217;d suggest using web3js or walletconnect protocal, details can be found at <a href=\"https:\/\/blog.mathwallet.org\/?p=3361\">https:\/\/blog.mathwallet.org\/?p=3361<\/a><\/p>\n<p>Any questions, feel free to contact <a href=\"mailto:labs@mathwallet.org\">labs@mathwallet.org<\/a><\/p>\n<p>Technical discussion: <a href=\"https:\/\/discord.gg\/gXSfnk5eP5\">https:\/\/discord.gg\/gXSfnk5eP5<\/a><\/p>\n<p>BD contact:\u00a0<a href=\"https:\/\/t.me\/hellovivi\">https:\/\/t.me\/hellovivi<\/a><\/p>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your are building a native mobile blockchain app, you could open MathWallet to sign your transaction through SimpleWallet protocol. MathWallet SimpleWallet Protocol supports:1. Login account through the decentralize wallet2. Open MathWallet to sign a payment or smartcontract transaction3. Open MathWallet to sign a message (widely used in list a NFT for sell, etc)4. Open [&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\/3372"}],"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=3372"}],"version-history":[{"count":9,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3372\/revisions"}],"predecessor-version":[{"id":3609,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=\/wp\/v2\/posts\/3372\/revisions\/3609"}],"wp:attachment":[{"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mathwallet.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}