mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-14 21:40:11 +00:00

* [NOD-1223] Move all network stuff into a new network package. * [NOD-1223] Delete the unused package testutil. * [NOD-1223] Move infrastructure stuff into a new instrastructure package. * [NOD-1223] Move domain stuff into a new domain package.
HTTP POST Example
This example shows how to use the rpcclient package to connect to a Kaspa RPC server using HTTP POST mode with TLS disabled and gets the current block count.
Running the Example
Modify the main.go
source to specify the correct RPC username and
password for the RPC server:
User: "yourrpcuser",
Pass: "yourrpcpass",
Finally, navigate to the example's directory and run it with:
$ cd $GOPATH/src/github.com/kaspanet/kaspad/rpcclient/examples/httppost
$ go run *.go