github.com/palcoin-project/palcd@v1.0.0/rpcclient/examples/bitcoincorehttpbulk/README.md (about)

     1  Bitcoin Core Batch HTTP POST Example
     2  ==============================
     3  
     4  This example shows how to use the rpclient package to connect to a Bitcoin Core RPC server using HTTP POST and batch JSON-RPC mode with TLS disabled.
     5  
     6  ## Running the Example
     7  
     8  The first step is to use `go get` to download and install the rpcclient package:
     9  
    10  ```bash
    11  $ go get github.com/btcsuite/btcd/rpcclient
    12  ```
    13  
    14  Next, modify the `main.go` source to specify the correct RPC username and
    15  password for the RPC server:
    16  
    17  ```Go
    18  	User: "yourrpcuser",
    19  	Pass: "yourrpcpass",
    20  ```
    21  
    22  Finally, navigate to the example's directory and run it with:
    23  
    24  ```bash
    25  $ cd $GOPATH/src/github.com/btcsuite/btcd/rpcclient/examples/bitcoincorehttp
    26  $ go run *.go
    27  ```
    28  
    29  ## License
    30  
    31  This example is licensed under the [copyfree](http://copyfree.org) ISC License.