⚡ We welcome businesses to test our enterprise-grade service

btc
Bitcoin (BTC)

Method: POST listsinceblock

dropdown

方法 RPC listsinceblock 例如 Bitcoin (BTC)

POST listsinceblock

方法不允许

获取自区块 [blockhash] 以来区块中的所有交易,或所有交易(如果省略)。

如果“blockhash”不再是主链的一部分,则包括从分叉点开始的交易。

此外,如果设置了 include_removed,则会在“removed”数组中返回影响被删除钱包的交易。

Parameters

blockhash - 字符串,可选

如果设置,则区块哈希列出交易,否则列出所有交易。

target_confirmations - 数字,可选,默认=1

返回主链中的第 n 个区块哈希。例如1 表示最好的块哈希。

请注意,这不是用作过滤器,而是仅影响返回值中的 [lastblock]

include_watchonly - 布尔值,可选,默认值=真用于手表钱包,否则为假

将交易包括到仅监视地址(请参阅“importaddress”)

include_removed - 布尔值,可选,默认=真

显示由于“removed”数组中的重组而被删除的事务(不保证在修剪节点上工作)

Request

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


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}