Skip to content

makkii-dev/makkii-bridge

Repository files navigation

Makkii webview bridge

invoke functions between makkii and web dapp, inspired by react-native-webview-invoke

How to use

import makkii from 'makkii-webview-bridge'
makkii.getCurrentAccount().then(console.log) // get current account

API

Table of Contents

account

Current account request from makkii wallet

sendTx

Send tx

try send txObj

Type: function (txObj: any): Deferred<string>

setCurrentAccount

Set current webview account by makkii

this func will be call by makkii wallet

Parameters

  • account string account address

getCurrentAccount

Get current account from makkii

request current account to makkii

Returns any account address

switchAccount

Switch account

try switch account

Returns any account address

isconnect

Check is connect to makkii

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published