接口名称:获取比特币账户列表
接口地址:域名/index.php?m=api&c=transaction&a=getBitcoinAccount
请求方式:POST
数据类型:JSON
响应类型:JSON
请求参数:
| 参数名称 | 是否必须 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| uid | 是 | int | | 转账人uid |
响应数据:
| 参数名称 | 是否必须 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| message | 是 | string | | 返回信息 |
| code | 是 | int | | 状态码 |
| data | 是 | array / string | | json / false |
成功响应示列:
~~~
{
"code": 1001,
"message": "响应成功",
"data": [
{
"id": "1",
"uid": "81",
"name": "btb",
"bitcoin_address": "3CUMRa7YxAuGT3bsVntRqd2g5ShWJ67W9Y"
},
{
"id": "9",
"uid": "81",
"name": "btb",
"bitcoin_address": "3CUMRa7YxAuGT3bsVntRqd2g5ShWJ67W9Y"
},
{
"id": "10",
"uid": "81",
"name": "btb",
"bitcoin_address": "3CUMRa7YxAuGT3bsVntRqd2g5ShWJ67W9Y"
}
]
}
~~~
失败响应示列:
~~~
{
"code": 2001,
"message": "响应失败",
"data": false
}
~~~