link

# Webview Method(Mobile)

BitKeep provides some public methods for Dapp to interact with the wallet. you can copy this url to the BitKeep DApp search bar, and try it.

http://106.75.67.107:8001/demo.html

# Open Bitkeep app browser and scan

Open Bitkeep app browser and scan

# isBitKeep

// check the UserAgent include "BitKeep"
var isBitKeep = navigator.userAgent.indexOf('BitKeep') > 0;
// check the var
var isBitKeep = window.isBitKeep;

# Get Wallet Identity

BitKeepInvoke.getIdentity(callback);

# Get Address

BitKeepInvoke.getAddress(callback);

# Select Coin

BitKeepInvoke.selectCoin(callback);

# Toast

BitKeepInvoke.toast("Hello World");

# Alert

BitKeepInvoke.alert("Hello", callback);

# Confirm

BitKeepInvoke.confirm("Hello?", callback);

# Close Page

BitKeepInvoke.close();

# Show/Hide Loading

BitKeepInvoke.showLoading();
BitKeepInvoke.hideLoading();

# Open URL

//In APP
BitKeepInvoke.openUrl("https://www.google.com");
//Our Of APP
BitKeepInvoke.openUrl2("https://www.google.com");

# Show Text Button in right-top Corner

BitKeepInvoke.setTextAction("Text", function(){
    //Click Callback
});

# Show Image Button in right-top Corner

BitKeepInvoke.setIconAction("http://xxx.png", function(){
    //Click Callback
});

# Share Text

BitKeepInvoke.shareText("message", callback);

# Share Image

BitKeepInvoke.shareImage("http://xxx.png", callback);

# Share Screenshot

BitKeepInvoke.shareScreenshot(callback)

# Share URL

BitKeepInvoke.shareUrl("title", "description", "url", "icon", callback);

# Close Page

BitKeepInvoke.close();

# Close Page

BitKeepInvoke.close();

# Transfer

BitKeepInvoke.pay(ChainCoin, Params,Callback);
//Chain Coin Transfer
BitKeepInvoke.pay("eth", {
    "coin": "eth",
    "to": "0x.....",
    "amount": "0.1",
    "gas": "400000"
}, function(err, reply){
});
//Token Transfer
BitKeepInvoke.pay("eth", {
    "coin": "uni",
    "contract": "token contract",
    "to": "0x.....",
    "amount": "0.1",
    "gas": "400000"
}, function(err, reply){
});
//Call Contract
BitKeepInvoke.pay("eth", {
    "coin": "uni",
    "to": "token contract",
    "data": "abi data",
    "amount": "0.1",
    "gas": "400000"
}, function(err, reply){
});