|Loki Verloren 5dc89b0b7f moved out log and median||6 months ago|
|CONTRIBUTORS||5 years ago|
|README.md||7 months ago|
|btcdextcmds.go||3 years ago|
|btcdextcmds_test.go||6 months ago|
|btcdextresults.go||3 years ago|
|btcdextresults_test.go||6 months ago|
|btcwalletextcmds.go||1 year ago|
|btcwalletextcmds_test.go||6 months ago|
|chainsvrcmds.go||6 months ago|
|chainsvrcmds_test.go||6 months ago|
|chainsvrresults.go||6 months ago|
|chainsvrresults_test.go||6 months ago|
|chainsvrwscmds.go||3 years ago|
|chainsvrwscmds_test.go||6 months ago|
|chainsvrwsntfns.go||3 years ago|
|chainsvrwsntfns_test.go||6 months ago|
|chainsvrwsresults.go||3 years ago|
|chainsvrwsresults_test.go||6 months ago|
|cmdinfo.go||3 years ago|
|cmdinfo_test.go||6 months ago|
|cmdparse.go||2 years ago|
|cmdparse_test.go||6 months ago|
|doc.go||4 years ago|
|error.go||4 years ago|
|error_test.go||6 months ago|
|example_test.go||6 months ago|
|export_test.go||4 years ago|
|help.go||2 years ago|
|help_test.go||6 months ago|
|helpers.go||4 years ago|
|helpers_test.go||6 months ago|
|jsonrpc.go||4 years ago|
|jsonrpc_test.go||6 months ago|
|jsonrpcerr.go||8 months ago|
|register.go||4 years ago|
|register_test.go||6 months ago|
|walletsvrcmds.go||2 years ago|
|walletsvrcmds_test.go||6 months ago|
|walletsvrresults.go||3 years ago|
|walletsvrwscmds.go||4 years ago|
|walletsvrwscmds_test.go||6 months ago|
|walletsvrwsntfns.go||2 years ago|
|walletsvrwsntfns_test.go||6 months ago|
Package btcjson 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 btcsuite, 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 btcrpcclient 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.
$ go get -u git.parallelcoin.io/dev/btcd/btcjson
Demonstrates how to create and marshal a command into a JSON-RPC request.
Demonstrates how to unmarshal a JSON-RPC request and then unmarshal the concrete request into a concrete command.
Demonstrates how to marshal a JSON-RPC response.
Demonstrates how to unmarshal a JSON-RPC response and then unmarshal the result field in the response to a concrete type.
All official release tags are signed by Conformal so users can ensure the code has not been tampered with and is coming from the btcsuite 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
Package btcjson is licensed under the copyfree ISC License.