Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.6% on proxy.golang.org
Top 0.8% dependent packages on proxy.golang.org
Top 0.9% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org
Top 2.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/decred/dcrd/dcrjson/v4

Package dcrjson provides infrastructure for working with Decred JSON-RPC APIs. When communicating via the JSON-RPC protocol, all requests and responses must be marshalled to and from the wire in the appropriate format. This package provides infrastructure and primitives to ease this process. This information is not necessary in order to use this package, but it does provide some intuition into what the marshalling and unmarshalling that is discussed below is doing under the hood. As defined by the JSON-RPC spec, there are effectively two forms of messages on the wire: Request Objects {"jsonrpc":"1.0","id":"SOMEID","method":"SOMEMETHOD","params":[SOMEPARAMS]} NOTE: Notifications are the same format except the id field is null. Response Objects {"result":SOMETHING,"error":null,"id":"SOMEID"} {"result":null,"error":{"code":SOMEINT,"message":SOMESTRING},"id":"SOMEID"} For requests, the params field can vary in what it contains depending on the method (a.k.a. command) being sent. Each parameter can be as simple as an int or a complex structure containing many nested fields. The id field is used to identify a request and will be included in the associated response. When working with streamed RPC transports, such as websockets, spontaneous notifications are also possible. As indicated, they are the same as a request object, except they have the id field set to null. Therefore, servers will ignore requests with the id field set to null, while clients can choose to consume or ignore them. Unfortunately, the original Bitcoin JSON-RPC API (and hence anything compatible with it) doesn't always follow the spec and will sometimes return an error string in the result field with a null error for certain commands. However, for the most part, the error field will be set as described on failure. To simplify the marshalling of the requests and responses, the MarshalCmd and MarshalResponse functions are provided. They return the raw bytes ready to be sent across the wire. Unmarshalling a received Request object is a two step process: This approach is used since it provides the caller with access to the additional fields in the request that are not part of the command such as the ID. Unmarshalling a received Response object is also a two step process: As above, this approach is used since it provides the caller with access to the fields in the response such as the ID and Error. This package provides the NewCmd function which takes a method (command) name and variable arguments. The function includes full checking to ensure the parameters are accurate according to provided method, however these checks are, obviously, run-time which means any mistakes won't be found until the code is actually executed. However, it is quite useful for user-supplied commands that are intentionally dynamic. External packages can and should implement types implementing Command for use with MarshalCmd/ParseParams. The command handling of this package is built around the concept of registered commands. This is true for the wide variety of commands already provided by the package, but it also means caller can easily provide custom commands with all of the same functionality as the built-in commands. Use the RegisterCmd function for this purpose. A list of all registered methods can be obtained with the RegisteredCmdMethods function. All registered commands are registered with flags that identify information such as whether the command applies to a chain server, wallet server, or is a notification along with the method name to use. These flags can be obtained with the MethodUsageFlags flags, and the method can be obtained with the CmdMethod function. To facilitate providing consistent help to users of the RPC server, this package exposes the GenerateHelp and function which uses reflection on registered commands or notifications to generate the final help text. In addition, the MethodUsageText function is provided to generate consistent one-line usage for registered commands and notifications using reflection. There are 2 distinct type of errors supported by this package: The first category of errors (type Error) typically indicates a programmer error and can be avoided by properly using the API. Errors of this type will be returned from the various functions available in this package. They identify issues such as unsupported field types, attempts to register malformed commands, and attempting to create a new command with an improper number of parameters. The specific reason for the error can be detected by type asserting it to a *dcrjson.Error and accessing the ErrorKind field. The second category of errors (type RPCError), on the other hand, are useful for returning errors to RPC clients. Consequently, they are used in the previously described Response type. This example demonstrates how to unmarshal a JSON-RPC response and then unmarshal the result field in the response to a concrete type.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/decred/dcrd/dcrjson/v4
Keywords: blockchain, cryptocurrency, dcrd, decred, decred-daemon, decred-nodes, go, golang, p2p, peer-to-peer
License: ISC
Latest release: about 1 year ago
First release: over 2 years ago
Namespace: github.com/decred/dcrd/dcrjson
Dependent packages: 44
Dependent repositories: 40
Stars: 687 on GitHub
Forks: 281 on GitHub
Docker dependents: 2
Docker downloads: 217
See more repository details: repos.ecosyste.ms
Last synced: about 21 hours ago

Top 1.8% on proxy.golang.org
github.com/decred/dcrd v1.9.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...
42 versions - Latest release: 22 days ago - 10 dependent packages - 47 dependent repositories - 687 stars on GitHub
Top 7.4% on proxy.golang.org
github.com/JoeGruffins/libwallet v1.0.1
1 version - Latest release: 25 days ago - 0 stars on GitHub
Top 7.4% on proxy.golang.org
github.com/joegruffins/libwallet v1.0.1
1 version - Latest release: 25 days ago - 0 stars on GitHub
Top 7.3% on proxy.golang.org
github.com/companyzero/bisonrelay v0.2.0
16 versions - Latest release: 29 days ago - 1 dependent repositories - 23 stars on GitHub
github.com/crypto-power/cryptopower v1.1.2
A cross-platform SPV (DCR, BTC & LTC) privacy wallet built with go.
4 versions - Latest release: 3 months ago - 1 stars on GitHub
github.com/pwrlabs/pwrgo v0.0.6
pwrgo is a lightweight, simple, easy to use Golang library for integrating with the PWR Chain and...
5 versions - Latest release: 3 months ago - 1 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/decred/lnd v0.6.0
23 versions - Latest release: 4 months ago
Top 5.1% on proxy.golang.org
decred.org/dcrdex/dex/testing/loadbot v0.0.0-20240117171138-3cd3679e8177
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
86 versions - Latest release: 5 months ago - 144 stars on GitHub
Top 6.8% on proxy.golang.org
decred.org/dcrdex/client/cmd/dexc-desktop v0.0.0-20240117171138-3cd3679e8177
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
16 versions - Latest release: 5 months ago - 151 stars on GitHub
Top 8.0% on proxy.golang.org
github.com/decred/dcrlnlpd v0.0.0-20240104150435-171abf5019e3
5 versions - Latest release: 5 months ago - 1 dependent package - 2 dependent repositories - 5 stars on GitHub
Top 4.1% on proxy.golang.org
github.com/decred/dcrlnd v0.5.0
Decred Lightning Network Daemon ⚡️
21 versions - Latest release: 6 months ago - 3 dependent packages - 5 dependent repositories - 33 stars on GitHub
github.com/valli0x/signature-escrow v0.0.0-20231202113135-2665837102ef
3 versions - Latest release: 6 months ago - 0 stars on GitHub
Top 9.6% on proxy.golang.org
github.com/itswisdomagain/libwallet v0.0.0-20231120103839-a0f938d38cd0
41 versions - Latest release: 7 months ago
Top 8.2% on proxy.golang.org
github.com/decred/dcrdata/pubsub/democlient v0.0.0-20231119150039-0b6dbacbc787
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
16 versions - Latest release: 7 months ago - 124 stars on GitHub
Top 5.1% on proxy.golang.org
github.com/decred/dcrdata/exchanges/rateserver v0.0.0-20231119150039-0b6dbacbc787
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
17 versions - Latest release: 7 months ago - 124 stars on GitHub
Top 5.1% on proxy.golang.org
github.com/decred/dcrdata/cmd/dcrdata v0.0.0-20231119150039-0b6dbacbc787
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
8 versions - Latest release: 7 months ago - 124 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/decred/vspd v0.0.0-20230929082053-9ee95f98ab2d
A Voting Service Provider (VSP) for the Decred network.
34 versions - Latest release: 8 months ago - 17 stars on GitHub
Top 6.3% on proxy.golang.org
github.com/decred/dcrwallet/v3 v3.1.0
A secure Decred wallet daemon written in Go (golang).
3 versions - Latest release: 8 months ago - 201 stars on GitHub
Top 2.6% on proxy.golang.org
decred.org/dcrwallet/v3 v3.1.0
A secure Decred wallet daemon written in Go (golang).
3 versions - Latest release: 8 months ago - 17 dependent packages - 2 dependent repositories - 201 stars on GitHub
Top 2.2% on proxy.golang.org
decred.org/dcrdex v0.6.3
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
43 versions - Latest release: 9 months ago - 22 dependent packages - 18 dependent repositories - 144 stars on GitHub
Top 5.2% on proxy.golang.org
github.com/decred/dcrdex v0.6.3
The Decred Decentralized Exchange (DEX), powered by atomic-swaps.
43 versions - Latest release: 9 months ago - 1 dependent package - 144 stars on GitHub
Top 2.0% on proxy.golang.org
github.com/decred/dcrd/rpc/jsonrpc/types/v4 v4.1.1
Package types implements concrete types for marshalling to and from the dcrd JSON-RPC commands, r...
5 versions - Latest release: 10 months ago - 28 dependent packages - 4 dependent repositories - 687 stars on GitHub
Top 9.7% on proxy.golang.org
github.com/decred/testnetfaucet v0.0.0-20230621163211-e125edd6656e
Decred testnet faucet.
1 version - Latest release: 12 months ago - 3 stars on GitHub
Top 1.7% on proxy.golang.org
github.com/decred/dcrd/rpcclient/v7 v7.0.1
Package rpcclient implements a websocket-enabled Decred JSON-RPC client. This client provides a ...
2 versions - Latest release: 12 months ago - 16 dependent packages - 35 dependent repositories - 687 stars on GitHub
Top 8.2% on proxy.golang.org
decred.org/dcrd/rpcclient/v7 v7.0.1
2 versions - Latest release: 12 months ago
Top 1.6% on proxy.golang.org
github.com/decred/dcrd/rpc/jsonrpc/types/v3 v3.0.1
Package types implements concrete types for marshalling to and from the dcrd JSON-RPC commands, r...
2 versions - Latest release: 12 months ago - 25 dependent packages - 37 dependent repositories - 687 stars on GitHub
Top 8.4% on proxy.golang.org
github.com/decred/dcrtest/dcrdtest v1.0.0
Package dcrdtest provides a dcrd-specific RPC testing harness crafting and executing integration ...
8 versions - Latest release: 12 months ago - 11 dependent packages - 1 dependent repositories - 2 stars on GitHub
github.com/matheusd/dcrlnd v0.4.0
Decred Lightning Network Daemon ⚡️
22 versions - Latest release: 12 months ago - 1 dependent repositories - 1 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/decred/btcd v1.8.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...
40 versions - Latest release: 12 months ago
Top 8.2% on proxy.golang.org
decred.org/dcrd v1.8.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...
41 versions - Latest release: 12 months ago - 728 stars on GitHub
github.com/nikicat/dcrd v1.8.0
dcrd is a full-node Decred implementation written in Go. The default options are sane for most u...
39 versions - Latest release: 12 months ago - 0 stars on GitHub
Top 2.0% on proxy.golang.org
github.com/decred/dcrd/rpcclient/v8 v8.0.0
Package rpcclient implements a websocket-enabled Decred JSON-RPC client. This client provides a ...
1 version - Latest release: 12 months ago - 19 dependent packages - 4 dependent repositories - 687 stars on GitHub
Top 5.1% on proxy.golang.org
github.com/decred/vspd/client/v2 v2.1.0
A Voting Service Provider (VSP) for the Decred network.
2 versions - Latest release: about 1 year ago - 7 dependent packages - 1 dependent repositories - 17 stars on GitHub
Top 2.0% on proxy.golang.org
decred.org/dcrwallet/v2 v2.2.0
A secure Decred wallet daemon written in Go (golang).
18 versions - Latest release: about 1 year ago - 29 dependent packages - 31 dependent repositories - 210 stars on GitHub
github.com/EXCCoin/exccdata/cmd/exccdata v0.0.0-20230419111953-ae3472cbd807
EXCCoin block explorer, with packages and apps for data collection and storage. Written in Go.
3 versions - Latest release: about 1 year ago - 3 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/davecgh/dcrvotetimes v1.0.1
2 versions - Latest release: over 1 year ago
Top 3.8% on proxy.golang.org
github.com/planetdecred/dcrlibwallet/dexdcr v0.0.0-20220830180553-18817f162603
1 version - Latest release: almost 2 years ago - 10 dependent packages - 5 dependent repositories - 23 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/crux25/dcrlibwallet v1.7.0
5 versions - Latest release: almost 2 years ago - 0 stars on GitHub
Top 4.1% on proxy.golang.org
github.com/decred/dcrwallet/v2 v2.0.8 removed
12 versions - Latest release: almost 2 years ago
Top 4.5% on proxy.golang.org
github.com/decred/dcrdata/db/dcrpg/v7 v7.0.0
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
1 version - Latest release: almost 2 years ago - 1 dependent package - 124 stars on GitHub
Top 4.5% on proxy.golang.org
github.com/decred/dcrdata/gov/v5 v5.0.0
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
1 version - Latest release: almost 2 years ago - 1 dependent package - 124 stars on GitHub
Top 2.5% on proxy.golang.org
github.com/decred/dcrdata/v7 v7.0.0
Decred block explorer, with packages and apps for data collection and storage. Written in Go.
1 version - Latest release: almost 2 years ago - 12 dependent packages - 6 dependent repositories - 124 stars on GitHub
Top 8.2% on proxy.golang.org
github.com/decred-next/dcrnd/rpcclient/v7 v7.0.0
1 version - Latest release: over 2 years ago
Top 8.2% on proxy.golang.org
github.com/btclinux/hcrpcclient/v7 v7.0.0-20211205173751-10cca0d482c3
1 version - Latest release: over 2 years ago - 0 stars on GitHub