Jeffrey H. Johnson 8729acba84 multi: Add proper attributions, fixup imports, etc 3 years ago
..
README.md f8d4108d44 Restyled by prettier-markdown 3 years ago
chain.go 283823059a mainline/decred: apply code style best practices 3 years ago
cookiefile.go 8729acba84 multi: Add proper attributions, fixup imports, etc 3 years ago
doc.go 8e3b084047 Yay, seems to work 4 years ago
extensions.go 283823059a mainline/decred: apply code style best practices 3 years ago
infrastructure.go 283823059a mainline/decred: apply code style best practices 3 years ago
mining.go 283823059a mainline/decred: apply code style best practices 3 years ago
net.go a0a29f9570 multi: Appease linters, update documentation, etc. 3 years ago
notify.go 283823059a mainline/decred: apply code style best practices 3 years ago
rawrequest.go 283823059a mainline/decred: apply code style best practices 3 years ago
rawtransactions.go c6555bd2d1 Fix RPC Client errors 3 years ago
wallet.go 283823059a mainline/decred: apply code style best practices 3 years ago

README.md

rpcclient

ISC License

rpcclient implements a Websocket-enabled JSON-RPC client package written in Go. It provides a robust and easy-to-use client for interfacing with an RPC server that uses the btcd/bitcoin/pktd-compatible JSON-RPC API.

Status

This package is currently under active development. It is already stable and the infrastructure is complete. However, there are still several RPCs left to implement and the API is not stable yet.

Major Features

  • Supports Websockets (pktd/pktwallet) and HTTP POST mode (Bitcoin Core)
  • Provides callback and registration functions for pktd/pktwallet notifications
  • Supports btcd/pktd extensions
  • Translates to and from higher-level and easier to use Go types
  • Offers a synchronous (blocking) and asynchronous API
  • When running in Websockets mode (the default):
    • Automatic reconnect handling (can be disabled)
    • Outstanding commands are automatically reissued
    • Registered notifications are automatically reregistered
    • Back-off support on reconnect attempts

Original Contributors

License

Package rpcclient is licensed under the Copyfree ISC License.