> For the complete documentation index, see [llms.txt](https://bitlong.gitbook.io/api-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bitlong.gitbook.io/api-doc/tapd-api/receive.md).

# Receive

### 1.上传资产接收记录

该接口将本地资产接收记录进行上传

```go
func UploadAddrReceives(token string) string
```

#### 参数

`token` <mark style="color:orange;">string</mark> 登录token

#### 响应

```json
{"success":true,"error":"","code":200,"data":null}
```

### 2.查询本地资产接收记录

```go
func AddrReceives(assetId string) string
```

#### 参数

`assetId` <mark style="color:orange;">string</mark> 资产ID

#### 响应

```json
{"success":true,"error":"","code":200,"data":[{"creation_time_unix_seconds":1716964269,"addr":{"encoded":"taprt1qqqsqqspqqzzqgrg25gkuuprc9up7yr0673k9zaxupg72tzyudqufe4krxczrl0kqcssy93pe32fcdtwwncxw34jrmr0yvuw5yzxprpqczdegeuvrhxt4ghspqss8qu70y9q3te0c0qkxa23fmglsvktfwetu2nh0wx863slznv278jepgqkxrp0dpshx6rdv95kcw309akkz6tvvfhhstn5v4ex66twv9kzumrfva58gmnfdenjuar0v3shjw35xsesj62vk2","asset_id":"206855116e7023c1781f106fd7a3628ba6e051e52c44e341c4e6b619b021fdf6","asset_type":0,"amount":99,"group_key":"","script_key":"021621cc549c356e74f06746b21ec6f2338ea104608c20c09b94678c1dccbaa2f0","internal_key":"03839e790a08af2fc3c16375514ed1f832cb4bb2be2a777b8c7d461f14d8af1e59","tapscript_sibling":"","taproot_output_key":"f0401265936dec8760568ac80f36c144ab09dc3dc47c9e77a6c0307a74965b7f","proof_courier_addr":"hashmail://mailbox.terminal.lightning.today:443","asset_version":0,"receive_num":0},"status":"ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED","outpoint":"a13664c263c55c0f4c4ba1aef69ce47e8528389ce0219d6e537ebc9d34294500:1","txid":"a13664c263c55c0f4c4ba1aef69ce47e8528389ce0219d6e537ebc9d34294500","utxo_amt_sat":1000,"taproot_sibling":"","confirmation_height":5163,"has_proof":false}]}
```

使用相应中的`txid`查询交易详情

{% embed url="<https://bitlong.gitbook.io/api-doc/mempool-api/transaction#id-1.-gen-ju-jiao-yi-id-cha-xun-jiao-yi-xiang-qing-mempool-di-san-fang-api>" %}
