⚡ We welcome businesses to test our enterprise-grade service

dgb
DigiByte (DGB)

Method: POST listsinceblock

dropdown

方法 RPC listsinceblock 例如 DigiByte (DGB)

POST listsinceblock

Method not allowed

从块[Blockhash]或所有交易(如果省略)中获取所有交易。

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

另外,如果设置了Incr体,请在“删除”阵列中返回影响被删除的钱包的交易。

Parameters

blockhash - 字符串,可选

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

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

从主链中返回第n个块哈希。 例如 1意味着最好的块哈希。

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

include_watchonly - 布尔值,可选,默认值=仅手表钱包,否则为false

包括用于观看地址的交易(请参阅“ ImportAddress”)

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

显示由于“已删除”阵列中的reorg而删除的交易(不能保证在修剪的节点上工作)

Request

curl --location --request POST 'https://dgb.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"
}