mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-25 08:16:46 +00:00

* [NOD-592] Remove TODOs related to fake nonces. * [NOD-592] Remove irrelevant TODOs from handleRescanBlocks and parseTxAcceptedVerboseNtfnParams. * [NOD-592] Fix TODO in handleGetTxOut. * [NOD-592] Remove irrelevant TODO from updateAddress. * [NOD-592] Move StandardVerifyFlags to a separate file. * [NOD-592] Remove TODOs in sign.go. * [NOD-592] Remove TODO in scriptval_test.go. * [NOD-592] Remove TODO in reachabilitystore.go. * [NOD-592] Remove XXXs. * [NOD-592] Fix a comment. * [NOD-557] Move AddAddressByIP out of AddressManager since it's used only for tests.. * [NOD-557] Remove rescan blocks. * [NOD-592] Fix handleGetTxOut.
rpcclient
rpcclient implements a Websocket-enabled Kaspa JSON-RPC client package written in Go. It provides a robust and easy to use client for interfacing with a Kaspa RPC server that uses a kaspad compatible Kaspa 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.
Documentation
- API Reference
- Websockets Example Connects to a kaspad RPC server using TLS-secured websockets, registers for block connected and block disconnected notifications, and gets the current block count
- HTTP POST Example Connects to a kaspad RPC server using HTTP POST mode with TLS disabled and gets the current block count
Major Features
- Supports Websockets and HTTP POST mode
- Provides callback and registration functions for kaspad notifications
- 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