⚡ We welcome businesses to test our enterprise-grade service

btg
Bitcoin Gold (BTG)

Method: POST getblocktemplate

dropdown

方法 RPC getblocktemplate 例如 Bitcoin Gold (BTG)

POST getblocktemplate

如果请求参数包括一个“模式”密钥,则用于在默认的“模板”请求或“建议”请求之间进行明确选择。

它返回构造一个块需要的数据。

Parameters

template_request - JSON对象,可选,默认值= {}

模板格式

Request

curl --location --request POST 'https://btg.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getblocktemplate",
"params": [null],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": {
        "bits": "1d0287ff",
        "capabilities": [
            "proposal"
        ],
        "coinbaseaux": {
            "flags": ""
        },
        "coinbasevalue": 625000000,
        "curtime": 1631009575,
        "equihashk": 5,
        "equihashn": 144,
        "height": 702635,
        "longpollid": "000000007cc1fc836d0992202730ca71f77a8cf2a35974ca300dadbf8bc1e0902",
        "mintime": 1631008652,
        "mutable": [
            "time",
            "transactions",
            "prevblock"
        ],
        "noncerange": "00000000ffffffff",
        "previousblockhash": "000000007cc1fc836d0992202730ca71f77a8cf2a35974ca300dadbf8bc1e090",
        "rules": [
            "csv",
            "segwit"
        ],
        "sigoplimit": 80000,
        "sizelimit": 4000000,
        "target": "0000000287ff0000000000000000000000000000000000000000000000000000",
        "transactions": [],
        "vbavailable": {},
        "vbrequired": 0,
        "version": 536870912,
        "weightlimit": 4000000
    }
}