mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-09 23:56:42 +00:00

* [NOD-494] Updated main README.md * [NOD-494] Updated blockdag/README.md * [NOD-494] Aligned text length in main README.md * [NOD-494] Updated most remaining packages READMEs + deleted util/coinset * [NOD-494] Update integration README * [NOD-494] Did a final pass over all readmes * [NOD-494] Updated README for DNSSeeder with more info on how to create a functioning setup * [NOD-494] Remove all double spaces from readmes * [NOD-494] Minor fixes in READMEs + update license to kaspanet developers * [NOD-494] Add backtick around ecc and util in hdkeychain README
25 lines
548 B
Markdown
25 lines
548 B
Markdown
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:
|
|
|
|
```Go
|
|
User: "yourrpcuser",
|
|
Pass: "yourrpcpass",
|
|
```
|
|
|
|
Finally, navigate to the example's directory and run it with:
|
|
|
|
```bash
|
|
$ cd $GOPATH/src/github.com/kaspanet/kaspad/rpcclient/examples/httppost
|
|
$ go run *.go
|
|
```
|
|
|