Skip to content

Latest commit

History

History
64 lines (54 loc) 路 1.83 KB

README.md

File metadata and controls

64 lines (54 loc) 路 1.83 KB

Supercharge Header Image

馃捀 Supercharge

The Map3 Supercharge SDK connects
crypto apps to Wallets, Exchanges & Bridges, enabling
cross-chain deposits and increasing volumes.


Getting Started

// index.html
<html lang="en">
    <head>
        ...
        <script src="https://api.map3.xyz/console/relay/gh/supercharge/master/dist/global/index.js"></script>
        <link
          href="https://api.map3.xyz/console/relay/gh/supercharge/master/dist/index.css"
          rel="stylesheet"
        ></link>
    </head>

    <body>
        <button onClick="openSdk()">Open SDK </button>
    </body>
    <script>
    function openSdk() {
        const supercharge = initMap3Supercharge({
          anonKey: '<ANON_KEY>',
          userId: '<USER_ID>',
          options: {
            callbacks: {
              onAddressRequested: async (coin, network) => {
                await new Promise((resolve) => setTimeout(resolve, 1000));

                return {address: '0x0000000000000000000000000000000000000000'};
              }
            },
            style: {
                theme: 'dark'
            }
          },
        })
        supercharge.open()
    }
  </script>
</html>

Examples

Edit map3-supercharge-cdn-demo-l9t2x5

Generating Anon Keys

Visit https://console.map3.xyz/ to generate your ANON_KEY.