# Functions
CoinIdentifier converts a tx hash and vout into the canonical CoinIdentifier.Identifier used in rosetta-bitcoin.
LocalhostURL returns the URL to use for a client that is running at localhost.
NewClient creates a new Bitcoin client.
ParseCoinIdentifier returns the corresponding hash and index associated with a *types.CoinIdentifier.
ParseSingleAddress extracts a single address from a pkscript or throws an error.
StartBitcoind starts a bitcoind daemon in another goroutine and logs the results to the console.
TransactionHash extracts the transaction hash from a CoinIdentifier.Identifier.
# Constants
Blockchain is Bitcoin.
CoinbaseOpType is used to describe Coinbase.
Decimals is the decimals value used in Currency.
InputOpType is used to describe INPUT.
4 prev index, 32 prev hash, 4 sequence, 1 script size, ~27 script witness.
MainnetNetwork is the value of the network in MainnetNetworkIdentifier.
nolint:gomnd.
NullData is returned by bitcoind as the ScriptPubKey.Type for OP_RETURN locking scripts.
OutputOpType is used to describe OUTPUT.
8 value, 1 script size.
P2PKH size.
SatoshisInBitcoin is the number of Satoshis in 1 BTC (10^8).
SkippedStatus is the status of all operations that are skipped because of BIP-30.
SuccessStatus is the status of all Bitcoin operations because anything on-chain is considered successful.
TestnetNetwork is the value of the network in TestnetNetworkIdentifier.
TransactionHashLength is the length of any transaction hash in Bitcoin.
4 version, 2 segwit flag, 1 vin, 1 vout, 4 lock time.
# Variables
ErrBlockNotFound is returned by when the requested block cannot be found by the node.
ErrJSONRPCError is returned when receiving an error from a JSON-RPC response.
MainnetCurrency is the *types.Currency for mainnet.
MainnetGenesisBlockIdentifier is the genesis block for mainnet.
MainnetParams are the params for mainnet.
OperationStatuses are all supported operation.Status.
OperationTypes are all supported operation.Types.
TestnetCurrency is the *types.Currency for testnet.
TestnetGenesisBlockIdentifier is the genesis block for testnet.
TestnetParams are the params for testnet.
# Structs
Block is a raw Bitcoin block (with verbosity == 2).
BlockchainInfo is information about the Bitcoin network.
BlockMetadata is a collection of useful metadata in a block.
Client is used to fetch blocks from bitcoind and to parse Bitcoin block data into Rosetta types.
Input is a raw input in a Bitcoin transaction.
OperationMetadata is a collection of useful metadata from Bitcoin inputs and outputs.
Output is a raw output in a Bitcoin transaction.
PeerInfo is a collection of relevant info about a particular peer.
ScriptPubKey is a script placed on the output operations of a Bitcoin transaction that must be satisfied to spend the output.
ScriptSig is a script on the input operations of a Bitcoin transaction that satisfies the ScriptPubKey on an output being spent.
Transaction is a raw Bitcoin transaction.
TransactionMetadata is a collection of useful metadata in a transaction.