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

dgb
DigiByte (DGB)

Method: POST signrawtransactionwithwallet

dropdown

方法 RPC signrawtransactionwithwallet 例如 DigiByte (DGB)

POST signrawtransactionwithwallet

Method not allowed

用于原始交易的符号输入(序列化,编码)。

第二个可选参数(可能为null)是该交易取决于但尚未在块链中的先前交易输出的数组。

如果将钱包加密,则需要用钱包通话来设置钱包串联。

Parameters

hexstring - 字符串,需要

交易十六进制字符串

prevtxs - Json Array,可选

先前的因交易输出

sighashtype - 字符串,可选,默认=全部

“ all”“无”“单”“ all | anyeonecanpay”“无| anyeonecanpay”“单| anyonecanpay”

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


Response

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