Connect Wallet (Internal)
BitKeep WebView opens a internal connection method by default.
Need import bitkeep.js in your DApp page. Then you have window.BitKeepInvoke in your page.
Note: Before call BitKeepInvoke, please call BitKeepInvoke.onLoadReady(callback) to ensure that the BitKeep object is ready.

Get Address

1
BitKeepInvoke.getAddress(function(err, data){
2
console.log(data)
3
//data = {"eth": "0x....", "bnb": "0x....."}
4
});
Copied!

Transfer

1
BitKeepInvoke.pay(ChainCoin, Params,Callback);
2
3
//Chain Coin Transfer
4
BitKeepInvoke.pay("eth", {
5
"coin": "eth",
6
"to": "0x.....",
7
"amount": "0.1",
8
"gas": "400000"
9
}, function(err, reply){
10
11
});
12
13
//Token Transfer
14
BitKeepInvoke.pay("eth", {
15
"coin": "uni",
16
"contract": "token contract",
17
"to": "0x.....",
18
"amount": "0.1",
19
"gas": "400000"
20
}, function(err, reply){
21
22
});
23
24
//Call Contract
25
BitKeepInvoke.pay("eth", {
26
"coin": "uni",
27
"to": "token contract",
28
"data": "abi data",
29
"amount": "0.1",
30
"gas": "400000"
31
}, function(err, reply){
32
33
});
Copied!
Last modified 4mo ago
Copy link