btcd

package
v0.0.0-...-9ae6259 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorNoDataReturned string = "No information for the requested range"

ErrorNoDataReturned indicates no information returned with the given range

Variables

This section is empty.

Functions

This section is empty.

Types

type Btcd

type Btcd interface {
	SearchRawTransactions(addr string, startIdx int64, max int64) (*[]ResponseSearchRawTransactions, error)
	GetInfo() (*map[string]interface{}, error)
}

Btcd is used for queries, in compliance with Btcd JSON-RPC spec

func New

func New(ep string, user string, pass string, timeout time.Duration) Btcd

New creates a instance of Btcd

type InvalidResponseCodeError

type InvalidResponseCodeError struct {
	Code int
}

InvalidResponseCodeError is type of error including its response code

func (InvalidResponseCodeError) Error

func (err InvalidResponseCodeError) Error() string

type JSONRPCError

type JSONRPCError struct {
	Code    int
	Message string
}

JSONRPCError wraps error response message from btcd

func (JSONRPCError) Error

func (err JSONRPCError) Error() string

type ResponseSearchRawTransactions

type ResponseSearchRawTransactions struct {
	Txid          string `json:"txid"`
	Vins          []vin  `json:"vin"`
	Vouts         []vout `json:"vout"`
	Confirmations uint64 `json:"confirmations"`
	Blocktime     uint64 `json:"blocktime"`
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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