Transaction API

Transaction API
名称:1、交易列表API

功能描述:返回所有比特币交易列表

调用地址:/api/listtransactions

请求方式:GET

返回类型:JSON

API 调用:API 简单身份认证调用方法API 签名认证调用方法(userName paasWord)

请求参数(Headers)

无参数

请求参数(Query)

名称 类型 是否必须 描述
userName STRING 必选 用户名
paasWord STRING 必选 密码

请求参数(Body)

无参数

请求示例

Server domain : www.birdboy.cn

http://www.birdboy.cn/api/listtransactions?userName=ln&passWord=hello2018

返回结果

{

"result": [
    {
        "account": "", 
        "address": "2NCNCM3CP9YvwtH25yj5X5HW5drfDCxQQsA", 
        "category": "receive", 
        "amount": 1.34020877, 
        "label": "", 
        "vout": 1, 
        "confirmations": 3169, 
        "blockhash": "000000006240dcbbf4e56e5aacf91c06ec9aa0a885b6346ecdf29600156a45ca", 
        "blockindex": 26, 
        "blocktime": 1523465179, 
        "txid": "456fb2913f958713d233365688ec3a82d844c271da129c87c613a699b5b43374", 
        "walletconflicts": [ ],
        "time": 1523465078, 
        "timereceived": 1523465078, 
        "bip125-replaceable": "no"
    }
],
"success": true, 
"msg": "买家比特币交易汇总", 
"code": 1000

}

名称:2、闪电网络交易列表API

功能描述:返回所有闪电网络交易列表

调用地址:/api/listLNtransactions

请求方式:GET

返回类型:JSON

API 调用:API 简单身份认证调用方法API 签名认证调用方法(userName paasWord)

请求参数(Headers)

无参数

请求参数(Query)

名称 类型 是否必须 描述
userName STRING 必选 用户名
paasWord STRING 必选 密码

请求参数(Body)

无参数

请求示例

Server domain : www.birdboy.cn

http://www.birdboy.cn/api/listLNtransactions?userName=ln&passWord=hello2018

返回结果

{

"result": {
    "payments": [
        {
            "status": "complete", 
            "timestamp": 1524200378, 
            "msatoshi": 10000, 
            "payment_preimage": "555e6493b7265cb7a300b53b76842bc75f21ea9d062b1cefd3165f993931f818", 
            "id": 17, 
            "payment_hash": "e8f3b07c698f743c0978ee03fc5cf146ab03e2fc62be8dddd35127c2bae0f916", 
            "destination": "03853aae7448f14f67823a57c9f104054349d077ebe96c125ec20a715cdbe0e07c", 
            "msatoshi_sent": 10010, 
            "created_at": 1524200378
        },
        {
            "status": "complete", 
            "timestamp": 1524200551, 
            "msatoshi": 5000, 
            "payment_preimage": "63c76bf0acc47ee9b6940c496dc919792923b613dab10e03fc661f828fc199e5", 
            "id": 18, 
            "payment_hash": "7233829e8fab359e7500b94d5e76259a7399e885c6937496a0a5dbe446e603d9", 
            "destination": "03853aae7448f14f67823a57c9f104054349d077ebe96c125ec20a715cdbe0e07c", 
            "msatoshi_sent": 5004, 
            "created_at": 1524200551
        },
        {
            "status": "complete", 
            "timestamp": 1525112854, 
            "msatoshi": 5000, 
            "payment_preimage": "f4c5d6868dfcd7ad0177e5f2c6163a3629d95a4cdadfd7034cc2cd27b5da8681", 
            "id": 24, 
            "payment_hash": "f1c6ca33610185dcae8204b4682ae474daf3069e7785eebec03e8deeac07ce9c", 
            "destination": "03853aae7448f14f67823a57c9f104054349d077ebe96c125ec20a715cdbe0e07c", 
            "msatoshi_sent": 5002, 
            "created_at": 1525112854
        }
    ]
},
"success": true, 
"msg": "闪电网络买家目前交易汇总", 
"code": 1000

}

返回字段

上一篇:使用 阿里云ECS之体验


下一篇:更新Fedora 镜像yum源为阿里云yum源的正确方式