dcrd/dcrjson
Josh Rickmar ed7c45a3e1 Use same notification for mined transactions and blocks. (#434)
Change the block connected and disconnected notifications to include
the entire block header.

Do not notify the previous block's regular tree transactions if the
newly attached block voted to approve them.  Instead, notify the
regular transactions from the newly attached block.  It is up to the
client to check the vote bits in the header to decide how to handle
the previous block's regular transactions.

Every websocket client now has an associated transaction filter that
is used to determine whether or not a processed transaction is (or
might be) relevant to the client.  A new RPC, loadtxfilter, has been
added to load, reload, or add to this filter.

Redo the entire rescan RPC to scan over previously-processed blocks
using the same transaction filter (rather than specifying which
addresses and outpoints to watch for in the rescan request).

Fixes #433.
2016-11-08 16:18:32 -05:00
..
btcdextcmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
btcdextcmds.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
btcwalletextcmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
btcwalletextcmds.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
chainsvrcmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
chainsvrcmds.go Add getheaders JSON-RPC extension command. (#426) 2016-10-18 16:57:38 -04:00
chainsvrresults_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
chainsvrresults.go Add StakeVersion bits to various subsystems. (#441) 2016-11-07 13:06:17 -06:00
chainsvrwscmds_test.go Use same notification for mined transactions and blocks. (#434) 2016-11-08 16:18:32 -05:00
chainsvrwscmds.go Use same notification for mined transactions and blocks. (#434) 2016-11-08 16:18:32 -05:00
chainsvrwsntfns_test.go Use same notification for mined transactions and blocks. (#434) 2016-11-08 16:18:32 -05:00
chainsvrwsntfns.go Use same notification for mined transactions and blocks. (#434) 2016-11-08 16:18:32 -05:00
chainsvrwsresults.go Use same notification for mined transactions and blocks. (#434) 2016-11-08 16:18:32 -05:00
cmdinfo_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
cmdinfo.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
cmdparse_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
cmdparse.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
CONTRIBUTORS Initial Decred Commit. 2016-02-07 14:00:12 -05:00
dcrdextcmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
dcrdextcmds.go Add existsexpiredtickets to rpcserver (#418) 2016-10-24 10:31:48 -05:00
dcrdextresults.go Version the JSON-RPC API with semantic versioning. (#387) 2016-10-05 18:46:06 -04:00
dcrwalletextcmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
dcrwalletextcmds.go Add new setticketsvotebits command 2016-10-14 13:06:30 -04:00
dcrwalletextresults.go Add existsexpiredtickets to rpcserver (#418) 2016-10-24 10:31:48 -05:00
dcrwalletextwsntfns_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
dcrwalletextwsntfns.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
doc.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
error_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
error.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
example_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
export_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
help_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
help.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
helpers_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
helpers.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
jsonerr.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
jsonrpc_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
jsonrpc.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
jsonrpcerr.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
parse_test.go Add EncodeConcatenatedHashes with test. (#432) 2016-11-01 18:04:54 -04:00
parse.go Add EncodeConcatenatedHashes with test. (#432) 2016-11-01 18:04:54 -04:00
README.md docs: Make various README.md files consistent. 2016-05-20 16:00:12 -05:00
register_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
register.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
walletsvrcmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
walletsvrcmds.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
walletsvrresults.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
walletsvrwscmds_test.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
walletsvrwscmds.go blockchain: Rework to use new db interface. 2016-08-18 15:42:18 -04:00
walletsvrwsntfns_test.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00
walletsvrwsntfns.go Initial Decred Commit. 2016-02-07 14:00:12 -05:00

dcrjson

[Build Status] (https://travis-ci.org/decred/dcrd) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [GoDoc] (http://godoc.org/github.com/decred/dcrd/dcrjson)

Package dcrjson implements concrete types for marshalling to and from the bitcoin JSON-RPC API. A comprehensive suite of tests is provided to ensure proper functionality.

Although this package was primarily written for the decred, it has intentionally been designed so it can be used as a standalone package for any projects needing to marshal to and from bitcoin JSON-RPC requests and responses.

Note that although it's possible to use this package directly to implement an RPC client, it is not recommended since it is only intended as an infrastructure package. Instead, RPC clients should use the dcrrpcclient package which provides a full blown RPC client with many features such as automatic connection management, websocket support, automatic notification re-registration on reconnect, and conversion from the raw underlying RPC types (strings, floats, ints, etc) to higher-level types with many nice and useful properties.

Installation and Updating

$ go get -u github.com/decred/dcrd/dcrjson

Examples

GPG Verification Key

All official release tags are signed by Conformal so users can ensure the code has not been tampered with and is coming from the decred developers. To verify the signature perform the following:

  • Download the public key from the Conformal website at https://opensource.conformal.com/GIT-GPG-KEY-conformal.txt

  • Import the public key into your GPG keyring:

    gpg --import GIT-GPG-KEY-conformal.txt
    
  • Verify the release tag with the following command where TAG_NAME is a placeholder for the specific tag:

    git tag -v TAG_NAME
    

License

Package dcrjson is licensed under the copyfree ISC License.