Bitget 深链接
BKConnect 是基于深链接的技术实现,帮助开发者从 Dapp 中打开 Bitget 移动端钱包并跳转到指定位置(携带参数),以实现与 Bitget 移动端钱包的快速稳定交互。
Bitget 移动端应用支持深链接 URL
💡
Tip
提示:Android 仅支持https://bkcode.vip?{params}
。
bitkeep://bkconnect?{params}
https://bkcode.vip?{params}
公共参数
请求参数
version -string
BKConnect 版本dappName -string
DApp 名称dappIcon -string
DApp 图标action-string-Require
actionID-string-Require
操作 UUIDredirectUrl -string
回调 URL
响应参数
status-string
0 成功,1 失败actionID-string
操作 UUID,与请求相同
打开 DApp
action
=DApp
name | value type | Require | note |
---|---|---|---|
url | string | Require | DApp 链接 |
无响应
切换网络
在 url 中添加_needChain=xxxx
:
- ETH:
{DAppLink}?_needChain=eth
- BSC:
{DAppLink}?_needChain=bnb
- Heco:
{DAppLink}?_needChain=ht
提示:需要重新加载页面
获取账户
action
=getAccount
name | value type | Require | note |
---|---|---|---|
chain | string | Require | 链名称,从链配置中选择 |
响应:
address-string
添加代币
action
=addAsset
name | value type | Require | note |
---|---|---|---|
chain | string | Require | 链名称,从链配置中选择 |
contract | string | Require | 默认 0x |
symbol | string | Require | 代币符号 |
响应:
status-string
0 成功,1 失败
发送交易
action
=send
name | value type | Require | note |
---|---|---|---|
chain | string | Require | 链名称,从链配置中选择 |
contract | string | Require | 默认 0x |
to | string | Require | 接收者地址 |
amount | string | Require | |
memo | string | optional | 交易备注 |
响应:
hash-string
哈希值
签名
action
=sign
name | value type | Require | note |
---|---|---|---|
chain | string | Require | 链名称,从链配置中选择 |
signType | string | Require | [eth_sign/personal_sign/eth_signTypedData/eth_signTypedData_v3,/eth_signTypedData_v4] |
msg | string | Require | 签名消息 |
响应:
sign-string
Last updated on