# 唤起Nabox App打开DApp/转账

唤起Nabox App并在浏览器中打开你的DApp，唤起Nabox App调用转账。

### URI Scheme 基本格式

```
nabox://com.wallet.nabox?参数1=xxx&参数2=xxx...
```

* **协议头**：`nabox://com.wallet.nabox`
* **参数**：根据不同的操作类型提供不同的参数
* **注意**：链接参数需要进行 **URI 编码（转义）**，防止特殊字符造成解析错误

***

### &#x20;1. 打开 DApp 页面

#### 示例

```
nabox://com.wallet.nabox?type=1&nativeId=1&url=https%3A%2F%2Fwww.n.com
```

#### 参数说明

| 参数名      | 类型     | 是否必填 | 示例值                           | 说明                      |
| -------- | ------ | ---- | ----------------------------- | ----------------------- |
| type     | string | 是    | `1`                           | 操作类型，`1` 表示打开 DApp      |
| nativeId | string | 是    | `1`                           | 链 ID，表示当前转账的网络          |
| url      | string | 是    | `https%3A%2F%2Fwww.baidu.com` | DApp 的网页地址，**需 URI 编码** |

***

### &#x20;2. 发起转账请求

#### 示例

```
nabox://com.wallet.nabox?type=2&nativeId=1&assertName=USDT&contractAddress=0x12312311&amount=1.123&toAddress=0x1234564789794&memo='helllo nabox'
```

#### 参数说明

| 参数名             | 类型     | 是否必填 | 示例值            | 说明            |
| --------------- | ------ | ---- | -------------- | ------------- |
| type            | string | 是    | `2`            | 操作类型，`2` 表示转账 |
| nativeId        | string | 是    | `1`            | 链 ID          |
| assertName      | string | 是    | `USDT`         | 资产名称（如 USDT）  |
| contractAddress | string | 是    | `0x1da...3f76` | 合约地址          |
| amount          | string | 是    | `1`            | 转账数量          |
| toAddress       | string | 是    | `0x3b....9794` | 接收地址          |
| memo            | string | 否    | `hello nabox`  | 转账备注          |
