Skip to content

Commit 1879dff

Browse files
committed
Merge #919: RPC Docs: add 24.0.0
50f09ca RPC Docs: add 24.0.0 (stickies-v) Pull request description: Docs generated on [v24.0](https://github.com/bitcoin/bitcoin/releases/tag/v24.0) ([dd314fe0c](bitcoin/bitcoin@dd314fe0c)) as per instructions in [contrib/doc-gen/generate.go](https://github.com/bitcoin-core/bitcoincore.org/blob/master/contrib/doc-gen/generate.go). Changes since 23.0 seem reasonable (remove `-q` parameter for details). ```sh cd _doc/en diff -I '^permalink.*' -I '^btcversion.*' -r -q 24.0.0/ 23.0.0/ ``` <details> <summary>diff summary</summary> ```diff Files 24.0.0/rpc/blockchain/getblock.html and 23.0.0/rpc/blockchain/getblock.html differ Files 24.0.0/rpc/blockchain/getblockchaininfo.html and 23.0.0/rpc/blockchain/getblockchaininfo.html differ Files 24.0.0/rpc/blockchain/getdeploymentinfo.html and 23.0.0/rpc/blockchain/getdeploymentinfo.html differ Files 24.0.0/rpc/blockchain/getmempoolancestors.html and 23.0.0/rpc/blockchain/getmempoolancestors.html differ Files 24.0.0/rpc/blockchain/getmempooldescendants.html and 23.0.0/rpc/blockchain/getmempooldescendants.html differ Files 24.0.0/rpc/blockchain/getmempoolentry.html and 23.0.0/rpc/blockchain/getmempoolentry.html differ Files 24.0.0/rpc/blockchain/getmempoolinfo.html and 23.0.0/rpc/blockchain/getmempoolinfo.html differ Files 24.0.0/rpc/blockchain/getrawmempool.html and 23.0.0/rpc/blockchain/getrawmempool.html differ Files 24.0.0/rpc/blockchain/gettxout.html and 23.0.0/rpc/blockchain/gettxout.html differ Files 24.0.0/rpc/blockchain/gettxoutsetinfo.html and 23.0.0/rpc/blockchain/gettxoutsetinfo.html differ Only in 24.0.0/rpc/blockchain: gettxspendingprevout.html Files 24.0.0/rpc/blockchain/scantxoutset.html and 23.0.0/rpc/blockchain/scantxoutset.html differ Files 24.0.0/rpc/network/getnetworkinfo.html and 23.0.0/rpc/network/getnetworkinfo.html differ Files 24.0.0/rpc/network/getpeerinfo.html and 23.0.0/rpc/network/getpeerinfo.html differ Files 24.0.0/rpc/rawtransactions/createpsbt.html and 23.0.0/rpc/rawtransactions/createpsbt.html differ Files 24.0.0/rpc/rawtransactions/createrawtransaction.html and 23.0.0/rpc/rawtransactions/createrawtransaction.html differ Files 24.0.0/rpc/rawtransactions/decodepsbt.html and 23.0.0/rpc/rawtransactions/decodepsbt.html differ Files 24.0.0/rpc/rawtransactions/decoderawtransaction.html and 23.0.0/rpc/rawtransactions/decoderawtransaction.html differ Files 24.0.0/rpc/rawtransactions/fundrawtransaction.html and 23.0.0/rpc/rawtransactions/fundrawtransaction.html differ Files 24.0.0/rpc/rawtransactions/getrawtransaction.html and 23.0.0/rpc/rawtransactions/getrawtransaction.html differ Files 24.0.0/rpc/wallet/createwallet.html and 23.0.0/rpc/wallet/createwallet.html differ Files 24.0.0/rpc/wallet/gettransaction.html and 23.0.0/rpc/wallet/gettransaction.html differ Files 24.0.0/rpc/wallet/importaddress.html and 23.0.0/rpc/wallet/importaddress.html differ Files 24.0.0/rpc/wallet/importdescriptors.html and 23.0.0/rpc/wallet/importdescriptors.html differ Files 24.0.0/rpc/wallet/importmulti.html and 23.0.0/rpc/wallet/importmulti.html differ Files 24.0.0/rpc/wallet/importprivkey.html and 23.0.0/rpc/wallet/importprivkey.html differ Files 24.0.0/rpc/wallet/importpubkey.html and 23.0.0/rpc/wallet/importpubkey.html differ Files 24.0.0/rpc/wallet/importwallet.html and 23.0.0/rpc/wallet/importwallet.html differ Files 24.0.0/rpc/wallet/listdescriptors.html and 23.0.0/rpc/wallet/listdescriptors.html differ Files 24.0.0/rpc/wallet/listsinceblock.html and 23.0.0/rpc/wallet/listsinceblock.html differ Files 24.0.0/rpc/wallet/listtransactions.html and 23.0.0/rpc/wallet/listtransactions.html differ Files 24.0.0/rpc/wallet/listunspent.html and 23.0.0/rpc/wallet/listunspent.html differ Only in 24.0.0/rpc/wallet: migratewallet.html Files 24.0.0/rpc/wallet/send.html and 23.0.0/rpc/wallet/send.html differ Only in 24.0.0/rpc/wallet: sendall.html Files 24.0.0/rpc/wallet/sendmany.html and 23.0.0/rpc/wallet/sendmany.html differ Files 24.0.0/rpc/wallet/sendtoaddress.html and 23.0.0/rpc/wallet/sendtoaddress.html differ Files 24.0.0/rpc/wallet/setwalletflag.html and 23.0.0/rpc/wallet/setwalletflag.html differ Only in 24.0.0/rpc/wallet: simulaterawtransaction.html Files 24.0.0/rpc/wallet/walletcreatefundedpsbt.html and 23.0.0/rpc/wallet/walletcreatefundedpsbt.html differ ``` </details> ACKs for top commit: glozow: ACK 50f09ca Tree-SHA512: eab1d50686ff4771140273765ac5fdb8810ebdd158b2064a888683a943c9b69d0fa98049bf5d96402996973785301362b491c095205f23fd74da783608c2c48f
2 parents f62bb52 + 50f09ca commit 1879dff

File tree

148 files changed

+6026
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+6026
-0
lines changed

_doc/en/24.0.0/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: index
3+
btcversion: 24.0.0
4+
btcgroup: index
5+
permalink: en/doc/24.0.0/
6+
---
7+
8+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: getbestblockhash
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getbestblockhash/
6+
---
7+
8+
getbestblockhash
9+
10+
Returns the hash of the best (tip) block in the most-work fully-validated chain.
11+
12+
Result:
13+
"hex" (string) the block hash, hex-encoded
14+
15+
Examples:
16+
> bitcoin-cli getbestblockhash
17+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getbestblockhash", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
18+
19+
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
name: getblock
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblock/
6+
---
7+
8+
getblock "blockhash" ( verbosity )
9+
10+
If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.
11+
If verbosity is 1, returns an Object with information about block <hash>.
12+
If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.
13+
If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).
14+
15+
Arguments:
16+
1. blockhash (string, required) The block hash
17+
2. verbosity (numeric, optional, default=1) 0 for hex-encoded data, 1 for a JSON object, 2 for JSON object with transaction data, and 3 for JSON object with transaction data including prevout information for inputs
18+
19+
Result (for verbosity = 0):
20+
"hex" (string) A string that is serialized, hex-encoded data for block 'hash'
21+
22+
Result (for verbosity = 1):
23+
{ (json object)
24+
"hash" : "hex", (string) the block hash (same as provided)
25+
"confirmations" : n, (numeric) The number of confirmations, or -1 if the block is not on the main chain
26+
"size" : n, (numeric) The block size
27+
"strippedsize" : n, (numeric) The block size excluding witness data
28+
"weight" : n, (numeric) The block weight as defined in BIP 141
29+
"height" : n, (numeric) The block height or index
30+
"version" : n, (numeric) The block version
31+
"versionHex" : "hex", (string) The block version formatted in hexadecimal
32+
"merkleroot" : "hex", (string) The merkle root
33+
"tx" : [ (json array) The transaction ids
34+
"hex", (string) The transaction id
35+
...
36+
],
37+
"time" : xxx, (numeric) The block time expressed in UNIX epoch time
38+
"mediantime" : xxx, (numeric) The median block time expressed in UNIX epoch time
39+
"nonce" : n, (numeric) The nonce
40+
"bits" : "hex", (string) The bits
41+
"difficulty" : n, (numeric) The difficulty
42+
"chainwork" : "hex", (string) Expected number of hashes required to produce the chain up to this block (in hex)
43+
"nTx" : n, (numeric) The number of transactions in the block
44+
"previousblockhash" : "hex", (string, optional) The hash of the previous block (if available)
45+
"nextblockhash" : "hex" (string, optional) The hash of the next block (if available)
46+
}
47+
48+
Result (for verbosity = 2):
49+
{ (json object)
50+
..., Same output as verbosity = 1
51+
"tx" : [ (json array)
52+
{ (json object)
53+
..., The transactions in the format of the getrawtransaction RPC. Different from verbosity = 1 "tx" result
54+
"fee" : n (numeric) The transaction fee in BTC, omitted if block undo data is not available
55+
},
56+
...
57+
]
58+
}
59+
60+
Result (for verbosity = 3):
61+
{ (json object)
62+
..., Same output as verbosity = 2
63+
"tx" : [ (json array)
64+
{ (json object)
65+
"vin" : [ (json array)
66+
{ (json object)
67+
..., The same output as verbosity = 2
68+
"prevout" : { (json object) (Only if undo information is available)
69+
"generated" : true|false, (boolean) Coinbase or not
70+
"height" : n, (numeric) The height of the prevout
71+
"value" : n, (numeric) The value in BTC
72+
"scriptPubKey" : { (json object)
73+
"asm" : "str", (string) Disassembly of the public key script
74+
"desc" : "str", (string) Inferred descriptor for the output
75+
"hex" : "hex", (string) The raw public key script bytes, hex-encoded
76+
"address" : "str", (string, optional) The Bitcoin address (only if a well-defined address exists)
77+
"type" : "str" (string) The type (one of: nonstandard, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_scripthash, witness_v0_keyhash, witness_v1_taproot, witness_unknown)
78+
}
79+
}
80+
},
81+
...
82+
]
83+
},
84+
...
85+
]
86+
}
87+
88+
Examples:
89+
> bitcoin-cli getblock "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
90+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblock", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
91+
92+
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: getblockchaininfo
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockchaininfo/
6+
---
7+
8+
getblockchaininfo
9+
10+
Returns an object containing various state info regarding blockchain processing.
11+
12+
Result:
13+
{ (json object)
14+
"chain" : "str", (string) current network name (main, test, signet, regtest)
15+
"blocks" : n, (numeric) the height of the most-work fully-validated chain. The genesis block has height 0
16+
"headers" : n, (numeric) the current number of headers we have validated
17+
"bestblockhash" : "str", (string) the hash of the currently best block
18+
"difficulty" : n, (numeric) the current difficulty
19+
"time" : xxx, (numeric) The block time expressed in UNIX epoch time
20+
"mediantime" : xxx, (numeric) The median block time expressed in UNIX epoch time
21+
"verificationprogress" : n, (numeric) estimate of verification progress [0..1]
22+
"initialblockdownload" : true|false, (boolean) (debug information) estimate of whether this node is in Initial Block Download mode
23+
"chainwork" : "hex", (string) total amount of work in active chain, in hexadecimal
24+
"size_on_disk" : n, (numeric) the estimated size of the block and undo files on disk
25+
"pruned" : true|false, (boolean) if the blocks are subject to pruning
26+
"pruneheight" : n, (numeric, optional) height of the last block pruned, plus one (only present if pruning is enabled)
27+
"automatic_pruning" : true|false, (boolean, optional) whether automatic pruning is enabled (only present if pruning is enabled)
28+
"prune_target_size" : n, (numeric, optional) the target size used by pruning (only present if automatic pruning is enabled)
29+
"warnings" : "str" (string) any network and blockchain warnings
30+
}
31+
32+
Examples:
33+
> bitcoin-cli getblockchaininfo
34+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockchaininfo", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
35+
36+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: getblockcount
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockcount/
6+
---
7+
8+
getblockcount
9+
10+
Returns the height of the most-work fully-validated chain.
11+
The genesis block has height 0.
12+
13+
Result:
14+
n (numeric) The current block count
15+
16+
Examples:
17+
> bitcoin-cli getblockcount
18+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
19+
20+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: getblockfilter
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockfilter/
6+
---
7+
8+
getblockfilter "blockhash" ( "filtertype" )
9+
10+
Retrieve a BIP 157 content filter for a particular block.
11+
12+
Arguments:
13+
1. blockhash (string, required) The hash of the block
14+
2. filtertype (string, optional, default="basic") The type name of the filter
15+
16+
Result:
17+
{ (json object)
18+
"filter" : "hex", (string) the hex-encoded filter data
19+
"header" : "hex" (string) the hex-encoded filter header
20+
}
21+
22+
Examples:
23+
> bitcoin-cli getblockfilter "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09" "basic"
24+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockfilter", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09", "basic"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
25+
26+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: getblockfrompeer
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockfrompeer/
6+
---
7+
8+
getblockfrompeer "blockhash" peer_id
9+
10+
Attempt to fetch block from a given peer.
11+
12+
We must have the header for this block, e.g. using submitheader.
13+
Subsequent calls for the same block and a new peer will cause the response from the previous peer to be ignored.
14+
15+
Returns an empty JSON object if the request was successfully scheduled.
16+
17+
Arguments:
18+
1. blockhash (string, required) The block hash to try to fetch
19+
2. peer_id (numeric, required) The peer to fetch it from (see getpeerinfo for peer IDs)
20+
21+
Result:
22+
{} (empty JSON object)
23+
24+
Examples:
25+
> bitcoin-cli getblockfrompeer "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09" 0
26+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockfrompeer", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09" 0]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
27+
28+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: getblockhash
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockhash/
6+
---
7+
8+
getblockhash height
9+
10+
Returns hash of block in best-block-chain at height provided.
11+
12+
Arguments:
13+
1. height (numeric, required) The height index
14+
15+
Result:
16+
"hex" (string) The block hash
17+
18+
Examples:
19+
> bitcoin-cli getblockhash 1000
20+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockhash", "params": [1000]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
21+
22+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: getblockheader
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockheader/
6+
---
7+
8+
getblockheader "blockhash" ( verbose )
9+
10+
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.
11+
If verbose is true, returns an Object with information about blockheader <hash>.
12+
13+
Arguments:
14+
1. blockhash (string, required) The block hash
15+
2. verbose (boolean, optional, default=true) true for a json object, false for the hex-encoded data
16+
17+
Result (for verbose = true):
18+
{ (json object)
19+
"hash" : "hex", (string) the block hash (same as provided)
20+
"confirmations" : n, (numeric) The number of confirmations, or -1 if the block is not on the main chain
21+
"height" : n, (numeric) The block height or index
22+
"version" : n, (numeric) The block version
23+
"versionHex" : "hex", (string) The block version formatted in hexadecimal
24+
"merkleroot" : "hex", (string) The merkle root
25+
"time" : xxx, (numeric) The block time expressed in UNIX epoch time
26+
"mediantime" : xxx, (numeric) The median block time expressed in UNIX epoch time
27+
"nonce" : n, (numeric) The nonce
28+
"bits" : "hex", (string) The bits
29+
"difficulty" : n, (numeric) The difficulty
30+
"chainwork" : "hex", (string) Expected number of hashes required to produce the current chain
31+
"nTx" : n, (numeric) The number of transactions in the block
32+
"previousblockhash" : "hex", (string, optional) The hash of the previous block (if available)
33+
"nextblockhash" : "hex" (string, optional) The hash of the next block (if available)
34+
}
35+
36+
Result (for verbose=false):
37+
"hex" (string) A string that is serialized, hex-encoded data for block 'hash'
38+
39+
Examples:
40+
> bitcoin-cli getblockheader "00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"
41+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockheader", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
42+
43+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
name: getblockstats
3+
btcversion: 24.0.0
4+
btcgroup: blockchain
5+
permalink: en/doc/24.0.0/rpc/blockchain/getblockstats/
6+
---
7+
8+
getblockstats hash_or_height ( stats )
9+
10+
Compute per block statistics for a given window. All amounts are in satoshis.
11+
It won't work for some heights with pruning.
12+
13+
Arguments:
14+
1. hash_or_height (string or numeric, required) The block hash or height of the target block
15+
2. stats (json array, optional, default=all values) Values to plot (see result below)
16+
[
17+
"height", (string) Selected statistic
18+
"time", (string) Selected statistic
19+
...
20+
]
21+
22+
Result:
23+
{ (json object)
24+
"avgfee" : n, (numeric, optional) Average fee in the block
25+
"avgfeerate" : n, (numeric, optional) Average feerate (in satoshis per virtual byte)
26+
"avgtxsize" : n, (numeric, optional) Average transaction size
27+
"blockhash" : "hex", (string, optional) The block hash (to check for potential reorgs)
28+
"feerate_percentiles" : [ (json array, optional) Feerates at the 10th, 25th, 50th, 75th, and 90th percentile weight unit (in satoshis per virtual byte)
29+
n, (numeric) The 10th percentile feerate
30+
n, (numeric) The 25th percentile feerate
31+
n, (numeric) The 50th percentile feerate
32+
n, (numeric) The 75th percentile feerate
33+
n (numeric) The 90th percentile feerate
34+
],
35+
"height" : n, (numeric, optional) The height of the block
36+
"ins" : n, (numeric, optional) The number of inputs (excluding coinbase)
37+
"maxfee" : n, (numeric, optional) Maximum fee in the block
38+
"maxfeerate" : n, (numeric, optional) Maximum feerate (in satoshis per virtual byte)
39+
"maxtxsize" : n, (numeric, optional) Maximum transaction size
40+
"medianfee" : n, (numeric, optional) Truncated median fee in the block
41+
"mediantime" : n, (numeric, optional) The block median time past
42+
"mediantxsize" : n, (numeric, optional) Truncated median transaction size
43+
"minfee" : n, (numeric, optional) Minimum fee in the block
44+
"minfeerate" : n, (numeric, optional) Minimum feerate (in satoshis per virtual byte)
45+
"mintxsize" : n, (numeric, optional) Minimum transaction size
46+
"outs" : n, (numeric, optional) The number of outputs
47+
"subsidy" : n, (numeric, optional) The block subsidy
48+
"swtotal_size" : n, (numeric, optional) Total size of all segwit transactions
49+
"swtotal_weight" : n, (numeric, optional) Total weight of all segwit transactions
50+
"swtxs" : n, (numeric, optional) The number of segwit transactions
51+
"time" : n, (numeric, optional) The block time
52+
"total_out" : n, (numeric, optional) Total amount in all outputs (excluding coinbase and thus reward [ie subsidy + totalfee])
53+
"total_size" : n, (numeric, optional) Total size of all non-coinbase transactions
54+
"total_weight" : n, (numeric, optional) Total weight of all non-coinbase transactions
55+
"totalfee" : n, (numeric, optional) The fee total
56+
"txs" : n, (numeric, optional) The number of transactions (including coinbase)
57+
"utxo_increase" : n, (numeric, optional) The increase/decrease in the number of unspent outputs
58+
"utxo_size_inc" : n (numeric, optional) The increase/decrease in size for the utxo index (not discounting op_return and similar)
59+
}
60+
61+
Examples:
62+
> bitcoin-cli getblockstats '"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"' '["minfeerate","avgfeerate"]'
63+
> bitcoin-cli getblockstats 1000 '["minfeerate","avgfeerate"]'
64+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockstats", "params": ["00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09", ["minfeerate","avgfeerate"]]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
65+
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockstats", "params": [1000, ["minfeerate","avgfeerate"]]}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
66+
67+

0 commit comments

Comments
 (0)