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

btg
Bitcoin Gold (BTG)

Method: POST gettransaction

dropdown

方法 RPC gettransaction 例如 Bitcoin Gold (BTG)

POST gettransaction

Method not allowed

获取有关内收入交易TXID的详细信息

Parameters

txid - 字符串,需要

交易ID

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

是否将纯手表的地址包括在余额计算和详细信息中[]

verbose - 布尔值,可选,默认值= false

是否包括包含解码交易的解码字段(相当于RPC解码器)

Request

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


Response

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