Documentation ¶
Index ¶
Constants ¶
View Source
const ( TxSend = "send" TxReceive = "receive" )
Variables ¶
This section is empty.
Functions ¶
func NewBtcdRPCClient ¶
Types ¶
type HttpBitcoind ¶
HttpBitcoind is a client to bitcoind
func NewHttpRPCClient ¶
func NewHttpRPCClient(client *http.Client) (*HttpBitcoind, error)
func (*HttpBitcoind) Call ¶
func (c *HttpBitcoind) Call(method string, params []interface{}) (int, json.RawMessage, error)
func (*HttpBitcoind) GetRawTransaction ¶
func (c *HttpBitcoind) GetRawTransaction(txId string) (*RawTransaction, error)
func (*HttpBitcoind) GetTransaction ¶
func (c *HttpBitcoind) GetTransaction(txId string) (*Transaction, error)
type RPCResult ¶
type RPCResult struct { Result json.RawMessage Error map[string]interface{} }
type RawTransaction ¶
type RawTransaction struct { TxID string `json:"txid"` Hash string `json:"hash"` Version int `json:"version"` Size int `json:"size"` Vsize int `json:"vsize"` Weight int `json:"weight"` Locktime int `json:"locktime"` Vins []Vin `json:"vin"` Vouts []Vout `json:"vout"` Hex string `json:"hex"` Blockhash string `json:"blockhash"` Confirmations int `json:"confirmations"` Time int `json:"time"` Blocktime int `json:"blocktime"` }
type Transaction ¶
type Transaction struct { Amount float64 `json:"amount"` Fee float64 `json:"fee"` Blockheight int `json:"blockheight"` TxID string `json:"txid"` Timereceived int `json:"timereceived"` Blockhash string `json:"blockhash"` Confirmations int `json:"confirmations"` Time int `json:"time"` Blocktime int `json:"blocktime"` Details []TransactionDetails `json:"details"` Decoded RawTransaction `json:"decoded"` }
type TransactionDetails ¶
Click to show internal directories.
Click to hide internal directories.