Calvin Kim
0aa80ea8f7
main: Add invalidateblock and reconsiderblock rpc commands
...
The rpc calls and the rpchelp is added for the invalidateblock
and reconsiderblock methods on BlockChain.
2024-06-19 19:58:37 -04:00
mattn
3cb9f602e8
fix typos ( #2100 )
2024-03-25 09:44:25 -04:00
yyforyongyu
72bbdd55a6
rpcserver+mempool: implement gettxspendingprevout
for btcd
...
This commit adds the RPC method `gettxspendingprevout` for btcd.
2024-02-27 22:58:33 +08:00
yyforyongyu
6c9f7fe7b9
btcd: add new RPC method testmempoolaccept
2024-01-15 17:22:41 +08:00
Olaoluwa Osuntokun
f7e9fba086
Merge pull request #1918 from kcalvinalvin/2022-11-06-implement-getchaintips
...
blockchain, btcjson: Implement getchaintips rpc call
2023-11-14 17:16:15 -08:00
Calvin Kim
892ae679b3
btcjson, main: Implement the getchaintips call
...
getchaintips call is implemented and the behavior mimics that of Bitcoin
Core. Resolves https://github.com/btcsuite/btcd/issues/1912 .
2023-07-16 16:03:48 +09:00
Mikael Lindlof
e4c88c3a3e
rpc: Add ScriptPubKeyResult address field
2023-06-06 21:57:01 +01:00
Matthew Bajorek
ec9ca7d782
rpcclient+rpcserver: Change getnetworkhashps return type to be a float to be in line with bitcoin core
2021-12-14 10:05:52 -05:00
Calvin Kim
b3e6bd6161
rpcserverhelp: Remove extra period for gettxout--synopsis
2021-07-27 10:27:50 -04:00
Steven Kreuzer
7bbd9b0284
btcjson: Update fields in GetBlockChainInfoResult
...
Update the fields of GetBlockChainInfoResult to reflect the current state of
the RPC returned by other full-node implementations.
* InitialBlockDownload - Node is in Initial Block Download mode if True.
* SizeOnDisk - The estimated size of the block and undo files on disk.
2021-01-26 09:52:38 -05:00
Oliver Gugger
9e8bb3eddb
btcjson+rpcserverhelp: restore bitcoind compatibility
...
The PR #1594 introduced a change that made the order of parameters
relevant, if one of them is nil. This makes it harder to be backward
compatible with the same JSON message if an existing parameter in
bitcoind was re-purposed to have a different meaning.
2020-11-12 15:47:51 +01:00
Elliott Minns
6daaf73544
GetBlockTemplate RPC client implementation ( #1629 )
...
* GetBlockTemplate RPC client implementation
* Txid added to the getblocktemplate result
* Omitempty for TxID and improved comment for GetBlockTemplate 'rules' field
2020-09-21 09:42:35 -04:00
Mikael Lindlof
fff96610aa
rpc: Add getnodeaddresses JSON-RPC support
...
Add NodeAddresses function to rpcserverConnManager
interface for fetching known node addresses.
2020-09-14 09:36:05 -04:00
Mikael Lindlof
d2c0123bef
Implement signmessagewithprivkey JSON-RPC command
...
Reuse the Bitcoin message signature header const
also in verifymessage.
2020-08-31 10:12:54 -04:00
Anirudha Bose
7145eef75b
rpcserver: add parity with bitcoind for validateaddress
...
Updated the rpcserver handler for validateaddress JSON-RPC command to
have parity with the bitcoind 0.20.0 interface.
The new fields included are - isscript, iswitness, witness_version, and
witness_program. The scriptPubKey field has been left out since it
requires wallet access.
This update has no impact on the rpcclient.ValidateAddress method,
which uses the btcjson.ValidateAddressWalletResult type for modelling
the response from bitcoind.
2020-08-31 09:58:27 -04:00
Olaoluwa Osuntokun
9a88e1dd33
Merge pull request #1575 from dajohi/clean
...
build: multiple cleanups
2020-05-15 15:47:01 -07:00
Henry
d38279ee74
btcjson: change getblock default verbosity to 1
...
This change makes btcd's getblock command match bitcoind's. Previously
the default verbosity was 0, which caused errors when using the
rpcclient library to connect to a bitcoind node - getblock would
unmarshall incorrectly since it didn't expect a verbosity=1 result when
it did not specify verbosity.
2020-05-14 17:27:59 -07:00
David Hill
f7399e6157
build: clean linter warnings
2020-05-13 08:58:39 -04:00
jalavosus
a310aa6e74
All tests pass
2020-03-05 06:48:26 -05:00
Wilmer Paulino
e2e5cc694d
btcjson+rpcclient: support new bitcoind sendrawtransaction request
2019-11-08 17:53:46 -08:00
Wilmer Paulino
266851e329
btcjson+rpcclient: support new unified softfork bitcoind format
2019-11-05 16:28:33 -08:00
preminem
e3d3088b80
btcjson+rpc: expose a transaction's weight via RPC
2019-09-25 17:19:03 -07:00
Olaoluwa Osuntokun
942116c5ae
rpc: remove extended fitler from help
2018-07-06 16:15:23 -07:00
Olaoluwa Osuntokun
4cb1c950e0
rpc: add help for new gcs commands
2018-05-23 16:46:15 -07:00
Olaoluwa Osuntokun
5596b63846
multi: fix linter warnings
2018-05-23 16:46:15 -07:00
Daniel Krawisz
4fd446028f
Enable estimatefee rpc command.
2018-05-23 16:46:15 -07:00
pedro martelletto
6e5f650be9
CBFilter -> CFilter, discussed with davec@
2018-05-23 16:46:15 -07:00
pedro martelletto
cd7857b883
GetCBFilter RPC returns a string, not a []byte
2018-05-23 16:46:15 -07:00
pedro martelletto
76378e7167
Add a GetCBFilter RPC command
2018-05-23 16:46:15 -07:00
Nicola 'tekNico' Larosa
11fcd83963
btcd/multi: fix a number of typos in comments.
2018-01-25 23:23:59 -06:00
Olaoluwa Osuntokun
8b130ec4ea
btcjson: update RPC calls to return segwit related data
2017-08-13 23:17:40 -05:00
Ricardo Velhote
948d80b198
New RPC command to display the uptime of the server
...
Version 0.15.0 of Bitcoin Core will include a new RPC command that will
allow us to obtain the amount of time (in seconds) that the server has
been running.
2017-07-03 00:07:27 +01:00
Alex
47b5478cfc
rpcserver: implement rescanblocks
command backported from dcrd
2017-01-27 15:32:15 -07:00
Alex
4943ed11b3
rpcserver: implement loadtxfilter
backported from dcrd
2017-01-27 15:32:15 -07:00
David Hill
ab0f30c00d
mining: drop getwork support.
...
Since the Midstate is no longer needed, switch to using
crypto/sha256.
2017-01-11 13:51:57 -05:00
Alex
7c44b6472f
Port getheaders
JSON-RPC command from dcrd
2017-01-10 19:11:18 -07:00
Alex
9f962b60d6
Add version
command to JSON-RPC API for API versioning
2016-12-22 14:48:53 -05:00
Olaoluwa Osuntokun
7b0380cdd3
rpcserver: implement the getblockchaininfo RPC call
2016-12-06 16:24:51 -08:00
David Hill
2e93ea6ca6
btcjson: Add versionHex to getblock[header] results
...
rpcserver: Set versionHex in responses.
2016-12-02 12:49:02 -05:00
David Hill
2510baac35
btcd: support feefilter requests.
...
This only adds support for handling remote peer requests.
2016-11-03 14:47:30 -04:00
David Hill
07e1e308f1
rpc: Add localaddr and relaytxes to getpeerinfo
2016-10-19 19:58:50 -04:00
David Hill
403aaf5cf3
rpcserver: avoid nested decodescript p2sh addrs
2016-10-19 13:59:50 -05:00
Dave Collins
f389742b39
multi: Update with result of gofmt -s.
...
This commit updates the code to make use of the most recent simplified
output from gofmt.
2016-02-25 13:02:54 -06:00
danda
c7eaee6020
adds filteraddrs param to searchrawtransactions API
2015-11-15 15:30:13 -08:00
David Hill
4b7206b54f
btcjson: Add optional locktime to createrawtransaction
...
rpcserver:
If the locktime is given, the transaction inputs will be set to a
non-max value, activating the locktime. The locktime for the
new transaction will be set to the given value.
This mimics Bitcoin Core commit 212bcca92089f406d9313dbe6d0e1d25143d61ff
2015-10-30 17:16:50 -04:00
Dario Nieuwenhuis
0190c349aa
Add reverse order option to searchrawtransactions rpc
2015-10-08 16:31:39 +02:00
Josh Rickmar
3c9d18d641
Add a websocket session RPC.
2015-09-17 12:18:15 -04:00
danda
43774fe6bb
adds optional prevOut section to vin for searchrawtransactions api. See https://github.com/btcsuite/btcd/issues/485
2015-08-23 09:58:03 -07:00
David Hill
a6c79c7a91
Implement getblockheader RPC.
...
This mimics Bitcoin Core commit 076badb60f33f0c32b035de220ca14c52a423a2a
2015-07-23 15:22:17 -04:00
David Hill
7cfa843832
Support getmempoolinfo.
2015-06-24 20:34:56 -04:00