mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Add fee estimation to wallet * Add fee rate to kaspawallet parse * Update go version * Get rid of golint * Add RBF support to wallet * Fix bump_fee UTXO lookup and fix wrong change address * impl storage mass as per KIP9 * Use CalculateTransactionOverallMass where needed * Some fixes * Minor typos * Fix test * update version * BroadcastRBF -> BroadcastReplacement * rc3 * align proto files to only use camel case (fixed on RK as well) * Rename to FeePolicy and add MaxFee option + todo * apply max fee constrains * increase minChangeTarget to 10kas * fmt * Some fixes * fix description: maximum -> minimum * put min feerate check in the correct location * Fix calculateFeeLimits nil handling * Add validations to CLI flags * Change to rc6 * Add checkTransactionFeeRate * Add failed broadcast transactions on send error` * Fix estimateFee change value * Estimate fee correctly for --send-all * On estimateFee always assume that the recipient has ECDSA address * remove patch version --------- Co-authored-by: Michael Sutton <msutton@cs.huji.ac.il>
54 lines
1.1 KiB
Markdown
54 lines
1.1 KiB
Markdown
# kaspactl
|
|
|
|
kaspactl is an RPC client for kaspad
|
|
|
|
## Requirements
|
|
|
|
Go 1.23 or later.
|
|
|
|
## Installation
|
|
|
|
#### Build from Source
|
|
|
|
- Install Go according to the installation instructions here:
|
|
http://golang.org/doc/install
|
|
|
|
- Ensure Go was installed properly and is a supported version:
|
|
|
|
```bash
|
|
$ go version
|
|
```
|
|
|
|
- Run the following commands to obtain and install kaspad including all dependencies:
|
|
|
|
```bash
|
|
$ git clone https://github.com/kaspanet/kaspad
|
|
$ cd kaspad/cmd/kaspactl
|
|
$ go install .
|
|
```
|
|
|
|
- Kaspactl should now be installed in `$(go env GOPATH)/bin`. If you did not already add the bin directory to your
|
|
system path during Go installation, you are encouraged to do so now.
|
|
|
|
## Usage
|
|
|
|
The full kaspctl configuration options can be seen with:
|
|
|
|
```bash
|
|
$ kaspctl --help
|
|
```
|
|
|
|
But the minimum configuration needed to run it is:
|
|
|
|
```bash
|
|
$ kaspactl <REQUEST_JSON>
|
|
```
|
|
|
|
For example:
|
|
|
|
```
|
|
$ kaspactl '{"getBlockDagInfoRequest":{}}'
|
|
```
|
|
|
|
For a list of all available requests check out the [RPC documentation](infrastructure/network/netadapter/server/grpcserver/protowire/rpc.md)
|