1.1.1 • Published 2 years ago

@platonnetwork/wallet-plugin-sdk v1.1.1

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

Wallet SDK

Integrate our SDK to your dApp/Wallet/swap UI.

Installation

# Using npm
$ npm install '@platonnetwork/wallet-plugin-sdk'

# Using yarn

$ yarn add '@platonnetwork/wallet-plugin-sdk'

# Using pnpm

$ pnpm add '@platonnetwork/wallet-plugin-sdk'

Example usage

CSR

import PlatONWallet from '@platonnetwork/wallet-plugin-sdk'

// Definition PlatONWallet SDK
const walletSDK = new PlatONWallet({
  env: 'TEST' // 'TEST' or 'PROD'
})

// Initialization PlatONWallet SDK
walletSDK.init()

// other methods
walletSDK.hide()
walletSDK.show()
walletSDK.destroy()

next.js

let walletSDK = null

import('@platonnetwork/wallet-plugin-sdk').then(module => {
  walletSDK = new module.default({ env: 'TEST' })
})
1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago