collector

package
v0.0.0-...-a62efa8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SendRawTxReq = `{ "jsonrpc":"1.0", "id":"cc-collector", "method":"sendrawtransaction", "params":["%s"] }`
)

https://docs.bitcoincashnode.org/doc/json-rpc/sendrawtransaction/

Variables

This section is empty.

Functions

func Run

func Run(sbchRpcUrl, bchRpcUrl, bchRpcUsername, bchRpcPassword string)

Types

type BchRpcClient

type BchRpcClient struct {
	// contains filtered or unexported fields
}

type JsonRpcError

type JsonRpcError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type JsonRpcResp

type JsonRpcResp struct {
	Result any           `json:"result"`
	Error  *JsonRpcError `json:"error"`
	Id     string        `json:"id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL