📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

dgb
DigiByte (DGB)

Method: POST listtransactions

dropdown

方法 RPC listtransactions 例如 DigiByte (DGB)

POST listtransactions

Method not allowed

如果提供了标签名称,则将仅返回使用指定标签的地址支付的传入交易。

返回“计数”最近的交易,跳过了第一笔交易。

Parameters

label - 字符串,可选

如果设置,则应是一个有效的标签名称,仅返回使用指定标签的传入交易,或“*”以禁用过滤并返回所有交易。

count - 数字,可选,默认值= 10

返回的交易数量

skip - 数字,可选,默认值= 0

跳过的交易数量

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

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

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": "listtransactions",
"params": [null, null, null, null],
"id": "getblock.io"}'


Response

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