Dogecoin
gettxoutproof40 créditos
Returns a hex-encoded proof that one or more transactions were included in a block
Parâmetros
| Nome | Tipo | Descrição |
|---|---|---|
| txids | string[] | Transaction ids to prove. |
| blockhash | string | Block that contains the transactions. Without it the call only works for transactions with an unspent output (or when the node runs with -txindex). (opcional) |
Retorno
Tipo
string
Hex-encoded merkle proof (serialized MerkleBlock) that the transactions are in the block.
Exemplos de código
curl https://holy-burned-sky-doge-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "gettxoutproof",
"params": [
[
"a1075db55d416d3ca199f55b6084e2115b9345e16c5cf302fc80e9d5fbf5d48d"
],
"00000000152340ca42227603908689183edc47355204e7aca59383b0aaac1fd8"
]
}'