bitcoinapi

package
v0.0.0-...-485d38d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBalance

func GetBalance(c context.Context, address string) (uint64, error)

func GetConfirmations

func GetConfirmations(txid string) (uint64, error)

func GetNewAddress

func GetNewAddress() (string, error)

func GetRawTransaction

func GetRawTransaction(txid string) (*btcjson.TxRawResult, error)

func Init

func Init()

Initialises global variables and database connection for all handlers

func InitWithConfigPath

func InitWithConfigPath(configFilePath string)

func SendRawTransaction

func SendRawTransaction(c context.Context, txHexString string) (string, error)

Transmits to the bitcoin network the raw transaction as provided. The transaction should be encoded as a hex string, as per the original Bitcoin RPC JSON API. The TxId of the transaction is returned if successfully transmitted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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