Methods

Public methods of the Shipl-Wallet SDK

If the user is not logged in and try to make an action, a modal will automatically open to ask the user to login with their mobile phone number.

static async create (appId)

Is use to instantiate the wallet.

Parameter

  • appId *require*

Return

Promise => ShiplWallet object

Example:

const shiplwallet = await Shiplwallet.create(appId);

Never instantiate with new keyword! Always use create method.

async login ()

You can use this method to force the user to log in your dApp.

Return

Promise => Auth object

getWeb3Provider()

Get a web3 provider from Shipl-Wallet. Usefull to link Shipl-Wallet to web3.

Return

ProviderEngine object