bsv

Bitcoin-SV (BSV)

Method: POST getblock

dropdown

POST getblock

如果详细程度为0,则返回序列化的字符串,块散列的十六进制编码数据。

如果冗长为1,则返回一个对象,其中包含块散列的信息。

如果冗长为2,则返回一个对象,其中包含有关块散列的信息和关于每个事务的信息。

Parameters

blockhash - 要求串

块哈希

verbosity - 数字,可选,默认值= 1

0对于十六进制编码的数据,对于JSON对象,以及带有事务数据的JSON对象的2

Request

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


Response

{
    "bits": "170cdf6f",
    "chainwork": "00000000000000000000000000000000000000001b633a711a2334c78a29bb40",
    "confirmations": 1197,
    "difficulty": 21865558044610.55,
    "hash": "000000000000000000046b9302e08c16ea186950f42a5498320ddd1bd7ab3428",
    "height": 677119,
    "mediantime": 1617176373,
    "merkleroot": "d14c9f467c4bdd5135837696150ab5f52f3f5043de324ca4e5766b195b9f8f37",
    "nTx": 2815,
    "nextblockhash": "000000000000000000006d8e1eb870bd281b30ed621acf6b8d6af2a3c7ab61f1",
    "nonce": 3669423616,
    "previousblockhash": "0000000000000000000aec32aa6edda6c888e8d6a0183d9c976064f98430c2da",
    "size": 1350854,
    "strippedsize": 882816,
    "time": 1617180599,
    "tx": [
        "2cd23815f632a3fc8a5c191c9d4fb4d758d85af4599ecd0f7f55427ad682f142",
        "780791bb2d5a8ccda4b5a707967a8e15b412814852c58c77299e85579bb65587",
        "635d50c5be6d6aea70527237dce8b0d646b88970ba34384f2ef85eba37f9e604",
        "fa8b28b42f11aa86ff1bbe6acf67b8e2e497573bef07a8e2fd5de8d79f2df80c"
    ],
    "version": 1073733632,
    "versionHex": "3fffe000",
    "weight": 3999302
}
GetBlock.io

立即访问 40 多个区块链节点! GetBlock 为最流行的加密货币节点提供快速可靠的连接。

订阅

電子郵件無效

2019 - 2021 GetBlock