⚡ We welcome businesses to test our enterprise-grade service

dgb
DigiByte (DGB)

Method: POST gettxoutproof

dropdown

方法 RPC gettxoutproof 例如 DigiByte (DGB)

POST gettxoutproof

返回十六进制编码的证据,证明“ TXID”已包含在一个街区中。

注意:默认情况下,此功能有时仅能工作。 这是此交易中UTXO中有未输出的时间。 为了使其始终起作用,您需要使用-txindex命令行选项维护交易索引,或指定手动包含交易的块(通过BlockHash)。

Parameters

txids - json阵列,必需

一个txids的json阵列

blockhash - 字符串,可选

如果指定,请使用此哈希在块中查找txid

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


Response

{
    "error": null,
    "id": "getblock.io",
    "result": "0200002051b754cb40549df309922692695e4c93ee87e6aaa50098e67dcd99678034d3e474fa05c06734a89e9e59d345e60d5aabd52f9e96ba2e0dfe21accdedb4023fcd2d133b616d8d001bc2703d540200000002dba2dffd236ed8ccbe1ef80703c4cdafa2f77e3512a1c29d06c6ff5aca34094f34ec51ac8c097b145028c935c58088ba5a7b93a7a83ac0daea585ddbcff753b50107"
}