区块链教程之基础开发通过接口查询币种提币情况bch,今天小编就来说说关于区块链发币结构如何生成?下面更多详细答案一起来看看吧!

区块链发币结构如何生成(区块链教程之基础开发通过接口查询币种提币情况bch)

区块链发币结构如何生成

区块链教程之基础开发通过接口查询币种提币情况bch

代码如下

package main

import (

"encoding/json"

"fmt"

"github.com/buger/jsonparser"

"github.com/levigross/grequests"

)

// HTTPGet .

func HTTPGet(url string, requestOptions *grequests.RequestOptions) (response []byte, err error) {

httpResponse, err := grequests.Get(url, requestOptions)

if err == nil {

if httpResponse.StatusCode == 200 {

response = httpResponse.Bytes()

}

}

return

}

// BchBlocksChainCheck 根据提币的数量,提币方地址以及目标方地址来检查提币是否已经confirmed.

// 返回值有两个:提币状态以及已收到的提币数量(扣除手续费)

,