0.0.24 • Published 2 years ago

@map3xyz/client-deposit-sdk v0.0.24

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Map3 Client Deposit SDK

Jest coverage

Getting Started

npm install @map3xyz/client-deposit-sdk

or

yarn add @map3xyz/client-deposit-sdk
import { initMap3Sdk } from '@map3xyz/client-deposit-sdk';
import '@map3xyz/client-deposit-sdk/dist/index.css';

const map3 = initMap3Sdk({
  theme: 'dark',
  anonKey: '<ANON_KEY>',
  generateDepositAddress: async (coin, network) => {
    await new Promise((resolve) => setTimeout(resolve, 1000));

    return '0x0000000000000000000000000000000000000000';
  },
});
map3.open();

Install via CDN

You can also include a normal script and link tag if your app doesn't support module imports.

// index.html
<html lang="en">
    <head>
        ...
        <script src="https://cdn.jsdelivr.net/npm/@map3xyz/client-deposit-sdk/dist/index.js"></script>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@map3xyz/client-deposit-sdk/dist/index.css"></link>
    </head>

    <body>
        <button onClick="openSdk()">Open SDK</button>
    </body>
    <script>
    function openSdk() {
        const map3 = initMap3Sdk({
          theme: 'dark',
          anonKey: '<ANON_KEY>',
          generateDepositAddress: async (coin, network) => {
            await new Promise((resolve) => setTimeout(resolve, 1000));

            return '0x0000000000000000000000000000000000000000';
          }
        })
        map3.open()
    }
  </script>
</html>

Examples

React App

Install Via CDN

Generating Anon Keys

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

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago