Versions in this module Expand all Collapse all v0 v0.3.5 Feb 5, 2016 v0.3.2 Sep 29, 2015 v0.3.1 Sep 19, 2015 Changes in this version + var ErrBestBlockHash = Error + var ErrBlockCount = Error + var ErrBlockNotFound = Error + var ErrClientInInitialDownload = Error + var ErrClientNotConnected = Error + var ErrDatabase = Error + var ErrDecodeHexString = Error + var ErrDeserialization = Error + var ErrDifficulty = Error + var ErrForbiddenBySafeMode = Error + var ErrIncorrectArgTypes = errors.New("incorrect arguement types") + var ErrInternal = Error + var ErrInvalidAddressOrKey = Error + var ErrInvalidParameter = Error + var ErrInvalidParams = Error + var ErrInvalidRequest = Error + var ErrInvalidTxVout = Error + var ErrMethodNotFound = Error + var ErrMisc = Error + var ErrNoNewestBlockInfo = Error + var ErrNoTxInfo = Error + var ErrNoWallet = Error + var ErrOutOfMemory = Error + var ErrOutOfRange = Error + var ErrParse = Error + var ErrRawTxString = Error + var ErrTooManyOptArgs = errors.New("too many optional arguments") + var ErrType = Error + var ErrUnimplemented = Error + var ErrWallet = Error + var ErrWalletAlreadyUnlocked = Error + var ErrWalletEncryptionFailed = Error + var ErrWalletInsufficientFunds = Error + var ErrWalletInvalidAccountName = Error + var ErrWalletKeypoolRanOut = Error + var ErrWalletPassphraseIncorrect = Error + var ErrWalletUnlockNeeded = Error + var ErrWalletWrongEncState = Error + var ErrWrongNumberOfParams = errors.New("incorrect number of parameters") + func CreateMessage(message string, args ...interface{}) ([]byte, error) + func CreateMessageWithId(message string, id interface{}, args ...interface{}) ([]byte, error) + func GetHelpString(cmdName string) (string, error) + func GetRaw(resp io.ReadCloser) ([]byte, error) + func IsValidIdType(id interface{}) bool + func JSONGetMethod(message []byte) (string, error) + func JSONToAmount(jsonAmount float64) (int64, error) + func MarshallAndSend(rawReply Reply, w io.Writer) (string, error) + func RegisterCustomCmd(method string, parser RawCmdParser, replyParser ReplyParser, helpString string) + func RpcRawCommand(user string, password string, server string, message []byte) ([]byte, error) + func TlsRpcRawCommand(user string, password string, server string, message []byte, ...) ([]byte, error) + type AddMultisigAddressCmd struct + Account string + Keys []string + NRequired int + func NewAddMultisigAddressCmd(id interface{}, nRequired int, keys []string, optArgs ...string) (*AddMultisigAddressCmd, error) + func (cmd *AddMultisigAddressCmd) Id() interface{} + func (cmd *AddMultisigAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *AddMultisigAddressCmd) Method() string + func (cmd *AddMultisigAddressCmd) UnmarshalJSON(b []byte) error + type AddNodeCmd struct + Addr string + SubCmd string + func NewAddNodeCmd(id interface{}, addr string, subcmd string) (*AddNodeCmd, error) + func (cmd *AddNodeCmd) Id() interface{} + func (cmd *AddNodeCmd) MarshalJSON() ([]byte, error) + func (cmd *AddNodeCmd) Method() string + func (cmd *AddNodeCmd) UnmarshalJSON(b []byte) error + type BackupWalletCmd struct + Destination string + func NewBackupWalletCmd(id interface{}, path string) (*BackupWalletCmd, error) + func (cmd *BackupWalletCmd) Id() interface{} + func (cmd *BackupWalletCmd) MarshalJSON() ([]byte, error) + func (cmd *BackupWalletCmd) Method() string + func (cmd *BackupWalletCmd) UnmarshalJSON(b []byte) error + type BadStatusCode int + func (e BadStatusCode) Error() string + type BlockResult struct + Bits string + Confirmations uint64 + Difficulty float64 + Hash string + Height int64 + MerkleRoot string + NextHash string + Nonce uint32 + PreviousHash string + RawTx []TxRawResult + Size int32 + Time int64 + Tx []string + Version int32 + type Cmd interface + Id func() interface{} + Method func() string + func ParseMarshaledCmd(b []byte) (Cmd, error) + type CreateMultiSigResult struct + Address string + RedeemScript string + type CreateMultisigCmd struct + Keys []string + NRequired int + func NewCreateMultisigCmd(id interface{}, nRequired int, keys []string) (*CreateMultisigCmd, error) + func (cmd *CreateMultisigCmd) Id() interface{} + func (cmd *CreateMultisigCmd) MarshalJSON() ([]byte, error) + func (cmd *CreateMultisigCmd) Method() string + func (cmd *CreateMultisigCmd) UnmarshalJSON(b []byte) error + type CreateRawTransactionCmd struct + Amounts map[string]int64 + Inputs []TransactionInput + func NewCreateRawTransactionCmd(id interface{}, inputs []TransactionInput, amounts map[string]int64) (*CreateRawTransactionCmd, error) + func (cmd *CreateRawTransactionCmd) Id() interface{} + func (cmd *CreateRawTransactionCmd) MarshalJSON() ([]byte, error) + func (cmd *CreateRawTransactionCmd) Method() string + func (cmd *CreateRawTransactionCmd) UnmarshalJSON(b []byte) error + type DebugLevelCmd struct + LevelSpec string + func NewDebugLevelCmd(id interface{}, levelSpec string) (*DebugLevelCmd, error) + func (cmd *DebugLevelCmd) Id() interface{} + func (cmd *DebugLevelCmd) MarshalJSON() ([]byte, error) + func (cmd *DebugLevelCmd) Method() string + func (cmd *DebugLevelCmd) UnmarshalJSON(b []byte) error + type DecodeRawTransactionCmd struct + HexTx string + func NewDecodeRawTransactionCmd(id interface{}, hextx string) (*DecodeRawTransactionCmd, error) + func (cmd *DecodeRawTransactionCmd) Id() interface{} + func (cmd *DecodeRawTransactionCmd) MarshalJSON() ([]byte, error) + func (cmd *DecodeRawTransactionCmd) Method() string + func (cmd *DecodeRawTransactionCmd) UnmarshalJSON(b []byte) error + type DecodeScriptCmd struct + HexScript string + func NewDecodeScriptCmd(id interface{}, hexscript string) (*DecodeScriptCmd, error) + func (cmd *DecodeScriptCmd) Id() interface{} + func (cmd *DecodeScriptCmd) MarshalJSON() ([]byte, error) + func (cmd *DecodeScriptCmd) Method() string + func (cmd *DecodeScriptCmd) UnmarshalJSON(b []byte) error + type DecodeScriptResult struct + Addresses []string + Asm string + P2sh string + ReqSigs int32 + Type string + type DestAddrResult struct + Addresses []string + Asm string + Hex string + ReqSigs int32 + type DumpPrivKeyCmd struct + Address string + func NewDumpPrivKeyCmd(id interface{}, address string) (*DumpPrivKeyCmd, error) + func (cmd *DumpPrivKeyCmd) Id() interface{} + func (cmd *DumpPrivKeyCmd) MarshalJSON() ([]byte, error) + func (cmd *DumpPrivKeyCmd) Method() string + func (cmd *DumpPrivKeyCmd) UnmarshalJSON(b []byte) error + type DumpWalletCmd struct + Filename string + func NewDumpWalletCmd(id interface{}, filename string) (*DumpWalletCmd, error) + func (cmd *DumpWalletCmd) Id() interface{} + func (cmd *DumpWalletCmd) MarshalJSON() ([]byte, error) + func (cmd *DumpWalletCmd) Method() string + func (cmd *DumpWalletCmd) UnmarshalJSON(b []byte) error + type ECAddrResult struct + Addresses []string + Asm string + Hex string + ReqSigs int32 + type EncryptWalletCmd struct + Passphrase string + func NewEncryptWalletCmd(id interface{}, passphrase string) (*EncryptWalletCmd, error) + func (cmd *EncryptWalletCmd) Id() interface{} + func (cmd *EncryptWalletCmd) MarshalJSON() ([]byte, error) + func (cmd *EncryptWalletCmd) Method() string + func (cmd *EncryptWalletCmd) UnmarshalJSON(b []byte) error + type Error struct + Code int + Message string + func (e Error) Error() string + type EstimateFeeCmd struct + NumBlocks int64 + func NewEstimateFeeCmd(id interface{}, numblocks int64) (*EstimateFeeCmd, error) + func (cmd *EstimateFeeCmd) Id() interface{} + func (cmd *EstimateFeeCmd) MarshalJSON() ([]byte, error) + func (cmd *EstimateFeeCmd) Method() string + func (cmd *EstimateFeeCmd) UnmarshalJSON(b []byte) error + type EstimatePriorityCmd struct + NumBlocks int64 + func NewEstimatePriorityCmd(id interface{}, numblocks int64) (*EstimatePriorityCmd, error) + func (cmd *EstimatePriorityCmd) Id() interface{} + func (cmd *EstimatePriorityCmd) MarshalJSON() ([]byte, error) + func (cmd *EstimatePriorityCmd) Method() string + func (cmd *EstimatePriorityCmd) UnmarshalJSON(b []byte) error + type GetAccountAddressCmd struct + Account string + func NewGetAccountAddressCmd(id interface{}, account string) (*GetAccountAddressCmd, error) + func (cmd *GetAccountAddressCmd) Id() interface{} + func (cmd *GetAccountAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *GetAccountAddressCmd) Method() string + func (cmd *GetAccountAddressCmd) UnmarshalJSON(b []byte) error + type GetAccountCmd struct + Address string + func NewGetAccountCmd(id interface{}, address string) (*GetAccountCmd, error) + func (cmd *GetAccountCmd) Id() interface{} + func (cmd *GetAccountCmd) MarshalJSON() ([]byte, error) + func (cmd *GetAccountCmd) Method() string + func (cmd *GetAccountCmd) UnmarshalJSON(b []byte) error + type GetAddedNodeInfoCmd struct + Dns bool + Node string + func NewGetAddedNodeInfoCmd(id interface{}, dns bool, optArgs ...string) (*GetAddedNodeInfoCmd, error) + func (cmd *GetAddedNodeInfoCmd) Id() interface{} + func (cmd *GetAddedNodeInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetAddedNodeInfoCmd) Method() string + func (cmd *GetAddedNodeInfoCmd) UnmarshalJSON(b []byte) error + type GetAddedNodeInfoResult struct + AddedNode string + Addresses *[]GetAddedNodeInfoResultAddr + Connected *bool + type GetAddedNodeInfoResultAddr struct + Address string + Connected string + type GetAddressesByAccountCmd struct + Account string + func NewGetAddressesByAccountCmd(id interface{}, account string) (*GetAddressesByAccountCmd, error) + func (cmd *GetAddressesByAccountCmd) Id() interface{} + func (cmd *GetAddressesByAccountCmd) MarshalJSON() ([]byte, error) + func (cmd *GetAddressesByAccountCmd) Method() string + func (cmd *GetAddressesByAccountCmd) UnmarshalJSON(b []byte) error + type GetBalanceCmd struct + Account *string + MinConf int + func NewGetBalanceCmd(id interface{}, optArgs ...interface{}) (*GetBalanceCmd, error) + func (cmd *GetBalanceCmd) Id() interface{} + func (cmd *GetBalanceCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBalanceCmd) Method() string + func (cmd *GetBalanceCmd) UnmarshalJSON(b []byte) error + type GetBestBlockHashCmd struct + func NewGetBestBlockHashCmd(id interface{}) (*GetBestBlockHashCmd, error) + func (cmd *GetBestBlockHashCmd) Id() interface{} + func (cmd *GetBestBlockHashCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBestBlockHashCmd) Method() string + func (cmd *GetBestBlockHashCmd) UnmarshalJSON(b []byte) error + type GetBlockChainInfoCmd struct + func NewGetBlockChainInfoCmd(id interface{}) (*GetBlockChainInfoCmd, error) + func (cmd *GetBlockChainInfoCmd) Id() interface{} + func (cmd *GetBlockChainInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBlockChainInfoCmd) Method() string + func (cmd *GetBlockChainInfoCmd) UnmarshalJSON(b []byte) error + type GetBlockChainInfoResult struct + BestBlockHash string + Blocks int32 + Chain string + ChainWork string + Difficulty float64 + VerificationProgress float64 + type GetBlockCmd struct + Hash string + Verbose bool + VerboseTx bool + func NewGetBlockCmd(id interface{}, hash string, optArgs ...bool) (*GetBlockCmd, error) + func (cmd *GetBlockCmd) Id() interface{} + func (cmd *GetBlockCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBlockCmd) Method() string + func (cmd *GetBlockCmd) UnmarshalJSON(b []byte) error + type GetBlockCountCmd struct + func NewGetBlockCountCmd(id interface{}) (*GetBlockCountCmd, error) + func (cmd *GetBlockCountCmd) Id() interface{} + func (cmd *GetBlockCountCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBlockCountCmd) Method() string + func (cmd *GetBlockCountCmd) UnmarshalJSON(b []byte) error + type GetBlockHashCmd struct + Index int64 + func NewGetBlockHashCmd(id interface{}, index int64) (*GetBlockHashCmd, error) + func (cmd *GetBlockHashCmd) Id() interface{} + func (cmd *GetBlockHashCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBlockHashCmd) Method() string + func (cmd *GetBlockHashCmd) UnmarshalJSON(b []byte) error + type GetBlockTemplateCmd struct + Request *TemplateRequest + func NewGetBlockTemplateCmd(id interface{}, optArgs ...*TemplateRequest) (*GetBlockTemplateCmd, error) + func (cmd *GetBlockTemplateCmd) Id() interface{} + func (cmd *GetBlockTemplateCmd) MarshalJSON() ([]byte, error) + func (cmd *GetBlockTemplateCmd) Method() string + func (cmd *GetBlockTemplateCmd) UnmarshalJSON(b []byte) error + type GetBlockTemplateResult struct + Bits string + Capabilities []string + CoinbaseAux *GetBlockTemplateResultAux + CoinbaseTxn *GetBlockTemplateResultTx + CoinbaseValue *int64 + CurTime int64 + Expires int64 + Height int64 + LongPollID string + LongPollURI string + MaxTime int64 + MinTime int64 + Mutable []string + NonceRange string + PreviousHash string + RejectReasion string + SigOpLimit int64 + SizeLimit int64 + SubmitOld *bool + Target string + Transactions []GetBlockTemplateResultTx + Version int32 + WorkID string + type GetBlockTemplateResultAux struct + Flags string + type GetBlockTemplateResultTx struct + Data string + Depends []int64 + Fee int64 + Hash string + SigOps int64 + type GetConnectionCountCmd struct + func NewGetConnectionCountCmd(id interface{}) (*GetConnectionCountCmd, error) + func (cmd *GetConnectionCountCmd) Id() interface{} + func (cmd *GetConnectionCountCmd) MarshalJSON() ([]byte, error) + func (cmd *GetConnectionCountCmd) Method() string + func (cmd *GetConnectionCountCmd) UnmarshalJSON(b []byte) error + type GetDifficultyCmd struct + func NewGetDifficultyCmd(id interface{}) (*GetDifficultyCmd, error) + func (cmd *GetDifficultyCmd) Id() interface{} + func (cmd *GetDifficultyCmd) MarshalJSON() ([]byte, error) + func (cmd *GetDifficultyCmd) Method() string + func (cmd *GetDifficultyCmd) UnmarshalJSON(b []byte) error + type GetGenerateCmd struct + func NewGetGenerateCmd(id interface{}) (*GetGenerateCmd, error) + func (cmd *GetGenerateCmd) Id() interface{} + func (cmd *GetGenerateCmd) MarshalJSON() ([]byte, error) + func (cmd *GetGenerateCmd) Method() string + func (cmd *GetGenerateCmd) UnmarshalJSON(b []byte) error + type GetHashesPerSecCmd struct + func NewGetHashesPerSecCmd(id interface{}) (*GetHashesPerSecCmd, error) + func (cmd *GetHashesPerSecCmd) Id() interface{} + func (cmd *GetHashesPerSecCmd) MarshalJSON() ([]byte, error) + func (cmd *GetHashesPerSecCmd) Method() string + func (cmd *GetHashesPerSecCmd) UnmarshalJSON(b []byte) error + type GetInfoCmd struct + func NewGetInfoCmd(id interface{}) (*GetInfoCmd, error) + func (cmd *GetInfoCmd) Id() interface{} + func (cmd *GetInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetInfoCmd) Method() string + func (cmd *GetInfoCmd) UnmarshalJSON(b []byte) error + type GetMiningInfoCmd struct + func NewGetMiningInfoCmd(id interface{}) (*GetMiningInfoCmd, error) + func (cmd *GetMiningInfoCmd) Id() interface{} + func (cmd *GetMiningInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetMiningInfoCmd) Method() string + func (cmd *GetMiningInfoCmd) UnmarshalJSON(b []byte) error + type GetMiningInfoResult struct + Blocks int64 + CurrentBlockSize uint64 + CurrentBlockTx uint64 + Difficulty float64 + Errors string + GenProcLimit int32 + Generate bool + HashesPerSec int64 + NetworkHashPS int64 + PooledTx uint64 + TestNet bool + type GetNetTotalsCmd struct + func NewGetNetTotalsCmd(id interface{}) (*GetNetTotalsCmd, error) + func (cmd *GetNetTotalsCmd) Id() interface{} + func (cmd *GetNetTotalsCmd) MarshalJSON() ([]byte, error) + func (cmd *GetNetTotalsCmd) Method() string + func (cmd *GetNetTotalsCmd) UnmarshalJSON(b []byte) error + type GetNetTotalsResult struct + TimeMillis int64 + TotalBytesRecv uint64 + TotalBytesSent uint64 + type GetNetworkHashPSCmd struct + Blocks int + Height int + func NewGetNetworkHashPSCmd(id interface{}, optArgs ...int) (*GetNetworkHashPSCmd, error) + func (cmd *GetNetworkHashPSCmd) Id() interface{} + func (cmd *GetNetworkHashPSCmd) MarshalJSON() ([]byte, error) + func (cmd *GetNetworkHashPSCmd) Method() string + func (cmd *GetNetworkHashPSCmd) UnmarshalJSON(b []byte) error + type GetNetworkInfoCmd struct + func NewGetNetworkInfoCmd(id interface{}) (*GetNetworkInfoCmd, error) + func (cmd *GetNetworkInfoCmd) Id() interface{} + func (cmd *GetNetworkInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetNetworkInfoCmd) Method() string + func (cmd *GetNetworkInfoCmd) UnmarshalJSON(b []byte) error + type GetNetworkInfoResult struct + Connections int32 + LocalAddresses []LocalAddressesResult + Networks []NetworksResult + ProtocolVersion int32 + RelayFee float64 + TimeOffset int64 + Version int32 + type GetNewAddressCmd struct + Account string + func NewGetNewAddressCmd(id interface{}, optArgs ...string) (*GetNewAddressCmd, error) + func (cmd *GetNewAddressCmd) Id() interface{} + func (cmd *GetNewAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *GetNewAddressCmd) Method() string + func (cmd *GetNewAddressCmd) UnmarshalJSON(b []byte) error + type GetPeerInfoCmd struct + func NewGetPeerInfoCmd(id interface{}) (*GetPeerInfoCmd, error) + func (cmd *GetPeerInfoCmd) Id() interface{} + func (cmd *GetPeerInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetPeerInfoCmd) Method() string + func (cmd *GetPeerInfoCmd) UnmarshalJSON(b []byte) error + type GetPeerInfoResult struct + Addr string + AddrLocal string + BanScore int32 + BytesRecv uint64 + BytesSent uint64 + ConnTime int64 + CurrentHeight int32 + ID string + Inbound bool + LastRecv int64 + LastSend int64 + PingTime float64 + PingWait float64 + Services string + StartingHeight int32 + SubVer string + SyncNode bool + TimeOffset int64 + Version uint32 + type GetRawChangeAddressCmd struct + Account string + func NewGetRawChangeAddressCmd(id interface{}, optArgs ...string) (*GetRawChangeAddressCmd, error) + func (cmd *GetRawChangeAddressCmd) Id() interface{} + func (cmd *GetRawChangeAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *GetRawChangeAddressCmd) Method() string + func (cmd *GetRawChangeAddressCmd) UnmarshalJSON(b []byte) error + type GetRawMempoolCmd struct + Verbose bool + func NewGetRawMempoolCmd(id interface{}, optArgs ...bool) (*GetRawMempoolCmd, error) + func (cmd *GetRawMempoolCmd) Id() interface{} + func (cmd *GetRawMempoolCmd) MarshalJSON() ([]byte, error) + func (cmd *GetRawMempoolCmd) Method() string + func (cmd *GetRawMempoolCmd) UnmarshalJSON(b []byte) error + type GetRawMempoolResult struct + CurrentPriority float64 + Depends []string + Fee float64 + Height int64 + Size int32 + StartingPriority float64 + Time int64 + type GetRawTransactionCmd struct + Txid string + Verbose int + func NewGetRawTransactionCmd(id interface{}, txid string, optArgs ...int) (*GetRawTransactionCmd, error) + func (cmd *GetRawTransactionCmd) Id() interface{} + func (cmd *GetRawTransactionCmd) MarshalJSON() ([]byte, error) + func (cmd *GetRawTransactionCmd) Method() string + func (cmd *GetRawTransactionCmd) UnmarshalJSON(b []byte) error + type GetReceivedByAccountCmd struct + Account string + MinConf int + func NewGetReceivedByAccountCmd(id interface{}, account string, optArgs ...int) (*GetReceivedByAccountCmd, error) + func (cmd *GetReceivedByAccountCmd) Id() interface{} + func (cmd *GetReceivedByAccountCmd) MarshalJSON() ([]byte, error) + func (cmd *GetReceivedByAccountCmd) Method() string + func (cmd *GetReceivedByAccountCmd) UnmarshalJSON(b []byte) error + type GetReceivedByAddressCmd struct + Address string + MinConf int + func NewGetReceivedByAddressCmd(id interface{}, address string, optArgs ...int) (*GetReceivedByAddressCmd, error) + func (cmd *GetReceivedByAddressCmd) Id() interface{} + func (cmd *GetReceivedByAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *GetReceivedByAddressCmd) Method() string + func (cmd *GetReceivedByAddressCmd) UnmarshalJSON(b []byte) error + type GetTransactionCmd struct + Txid string + func NewGetTransactionCmd(id interface{}, txid string) (*GetTransactionCmd, error) + func (cmd *GetTransactionCmd) Id() interface{} + func (cmd *GetTransactionCmd) MarshalJSON() ([]byte, error) + func (cmd *GetTransactionCmd) Method() string + func (cmd *GetTransactionCmd) UnmarshalJSON(b []byte) error + type GetTransactionDetailsResult struct + Account string + Address string + Amount float64 + Category string + Fee float64 + type GetTransactionResult struct + Amount float64 + BlockHash string + BlockIndex int64 + BlockTime int64 + Confirmations int64 + Details []GetTransactionDetailsResult + Fee float64 + Hex string + Time int64 + TimeReceived int64 + TxID string + WalletConflicts []string + type GetTxOutCmd struct + IncludeMempool bool + Output int + Txid string + func NewGetTxOutCmd(id interface{}, txid string, output int, optArgs ...bool) (*GetTxOutCmd, error) + func (cmd *GetTxOutCmd) Id() interface{} + func (cmd *GetTxOutCmd) MarshalJSON() ([]byte, error) + func (cmd *GetTxOutCmd) Method() string + func (cmd *GetTxOutCmd) UnmarshalJSON(b []byte) error + type GetTxOutResult struct + BestBlock string + Coinbase bool + Confirmations int64 + DestAddr DestAddrResult + Value float64 + Version uint8 + type GetTxOutSetInfoCmd struct + func NewGetTxOutSetInfoCmd(id interface{}) (*GetTxOutSetInfoCmd, error) + func (cmd *GetTxOutSetInfoCmd) Id() interface{} + func (cmd *GetTxOutSetInfoCmd) MarshalJSON() ([]byte, error) + func (cmd *GetTxOutSetInfoCmd) Method() string + func (cmd *GetTxOutSetInfoCmd) UnmarshalJSON(b []byte) error + type GetWorkCmd struct + Data string + func NewGetWorkCmd(id interface{}, optArgs ...string) (*GetWorkCmd, error) + func (cmd *GetWorkCmd) Id() interface{} + func (cmd *GetWorkCmd) MarshalJSON() ([]byte, error) + func (cmd *GetWorkCmd) Method() string + func (cmd *GetWorkCmd) UnmarshalJSON(b []byte) error + type GetWorkResult struct + Data string + Hash1 string + Midstate string + Target string + type HelpCmd struct + Command string + func NewHelpCmd(id interface{}, optArgs ...string) (*HelpCmd, error) + func (cmd *HelpCmd) Id() interface{} + func (cmd *HelpCmd) MarshalJSON() ([]byte, error) + func (cmd *HelpCmd) Method() string + func (cmd *HelpCmd) UnmarshalJSON(b []byte) error + type ImportAddressCmd struct + Address string + Rescan bool + func NewImportAddressCmd(id interface{}, address string, optArgs ...interface{}) (*ImportAddressCmd, error) + func (cmd *ImportAddressCmd) Id() interface{} + func (cmd *ImportAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *ImportAddressCmd) Method() string + func (cmd *ImportAddressCmd) UnmarshalJSON(b []byte) error + type ImportPrivKeyCmd struct + Label string + PrivKey string + Rescan bool + func NewImportPrivKeyCmd(id interface{}, privkey string, optArgs ...interface{}) (*ImportPrivKeyCmd, error) + func (cmd *ImportPrivKeyCmd) Id() interface{} + func (cmd *ImportPrivKeyCmd) MarshalJSON() ([]byte, error) + func (cmd *ImportPrivKeyCmd) Method() string + func (cmd *ImportPrivKeyCmd) UnmarshalJSON(b []byte) error + type ImportPubKeyCmd struct + PubKey string + Rescan bool + func NewImportPubKeyCmd(id interface{}, pubkey string, optArgs ...interface{}) (*ImportPubKeyCmd, error) + func (cmd *ImportPubKeyCmd) Id() interface{} + func (cmd *ImportPubKeyCmd) MarshalJSON() ([]byte, error) + func (cmd *ImportPubKeyCmd) Method() string + func (cmd *ImportPubKeyCmd) UnmarshalJSON(b []byte) error + type ImportWalletCmd struct + Filename string + func NewImportWalletCmd(id interface{}, filename string) (*ImportWalletCmd, error) + func (cmd *ImportWalletCmd) Id() interface{} + func (cmd *ImportWalletCmd) MarshalJSON() ([]byte, error) + func (cmd *ImportWalletCmd) Method() string + func (cmd *ImportWalletCmd) UnmarshalJSON(b []byte) error + type InfoResult struct + Balance float64 + Blocks int32 + Connections int32 + Difficulty float64 + Errors string + KeypoolOldest int64 + KeypoolSize int32 + PaytxFee float64 + ProtocolVersion int32 + Proxy string + RelayFee float64 + TestNet bool + TimeOffset int64 + UnlockedUntil int64 + Version int32 + WalletVersion int32 + type InvalidateBlockCmd struct + BlockHash string + func NewInvalidateBlockCmd(id interface{}, blockhash string) (*InvalidateBlockCmd, error) + func (cmd *InvalidateBlockCmd) Id() interface{} + func (cmd *InvalidateBlockCmd) MarshalJSON() ([]byte, error) + func (cmd *InvalidateBlockCmd) Method() string + func (cmd *InvalidateBlockCmd) UnmarshalJSON(b []byte) error + type KeyPoolRefillCmd struct + NewSize uint + func NewKeyPoolRefillCmd(id interface{}, optArgs ...uint) (*KeyPoolRefillCmd, error) + func (cmd *KeyPoolRefillCmd) Id() interface{} + func (cmd *KeyPoolRefillCmd) MarshalJSON() ([]byte, error) + func (cmd *KeyPoolRefillCmd) Method() string + func (cmd *KeyPoolRefillCmd) UnmarshalJSON(b []byte) error + type ListAccountsCmd struct + MinConf int + func NewListAccountsCmd(id interface{}, optArgs ...int) (*ListAccountsCmd, error) + func (cmd *ListAccountsCmd) Id() interface{} + func (cmd *ListAccountsCmd) MarshalJSON() ([]byte, error) + func (cmd *ListAccountsCmd) Method() string + func (cmd *ListAccountsCmd) UnmarshalJSON(b []byte) error + type ListAddressGroupingsCmd struct + func NewListAddressGroupingsCmd(id interface{}) (*ListAddressGroupingsCmd, error) + func (cmd *ListAddressGroupingsCmd) Id() interface{} + func (cmd *ListAddressGroupingsCmd) MarshalJSON() ([]byte, error) + func (cmd *ListAddressGroupingsCmd) Method() string + func (cmd *ListAddressGroupingsCmd) UnmarshalJSON(b []byte) error + type ListLockUnspentCmd struct + func NewListLockUnspentCmd(id interface{}) (*ListLockUnspentCmd, error) + func (cmd *ListLockUnspentCmd) Id() interface{} + func (cmd *ListLockUnspentCmd) MarshalJSON() ([]byte, error) + func (cmd *ListLockUnspentCmd) Method() string + func (cmd *ListLockUnspentCmd) UnmarshalJSON(b []byte) error + type ListReceivedByAccountCmd struct + IncludeEmpty bool + MinConf int + func NewListReceivedByAccountCmd(id interface{}, optArgs ...interface{}) (*ListReceivedByAccountCmd, error) + func (cmd *ListReceivedByAccountCmd) Id() interface{} + func (cmd *ListReceivedByAccountCmd) MarshalJSON() ([]byte, error) + func (cmd *ListReceivedByAccountCmd) Method() string + func (cmd *ListReceivedByAccountCmd) UnmarshalJSON(b []byte) error + type ListReceivedByAccountResult struct + Account string + Amount float64 + Confirmations uint64 + type ListReceivedByAddressCmd struct + IncludeEmpty bool + MinConf int + func NewListReceivedByAddressCmd(id interface{}, optArgs ...interface{}) (*ListReceivedByAddressCmd, error) + func (cmd *ListReceivedByAddressCmd) Id() interface{} + func (cmd *ListReceivedByAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *ListReceivedByAddressCmd) Method() string + func (cmd *ListReceivedByAddressCmd) UnmarshalJSON(b []byte) error + type ListReceivedByAddressResult struct + Account string + Address string + Amount float64 + Confirmations uint64 + InvolvesWatchonly bool + TxIDs []string + type ListSinceBlockCmd struct + BlockHash string + TargetConfirmations int + func NewListSinceBlockCmd(id interface{}, optArgs ...interface{}) (*ListSinceBlockCmd, error) + func (cmd *ListSinceBlockCmd) Id() interface{} + func (cmd *ListSinceBlockCmd) MarshalJSON() ([]byte, error) + func (cmd *ListSinceBlockCmd) Method() string + func (cmd *ListSinceBlockCmd) UnmarshalJSON(b []byte) error + type ListSinceBlockResult struct + LastBlock string + Transactions []ListTransactionsResult + type ListTransactionsCmd struct + Account *string + Count int + From int + func NewListTransactionsCmd(id interface{}, optArgs ...interface{}) (*ListTransactionsCmd, error) + func (cmd *ListTransactionsCmd) Id() interface{} + func (cmd *ListTransactionsCmd) MarshalJSON() ([]byte, error) + func (cmd *ListTransactionsCmd) Method() string + func (cmd *ListTransactionsCmd) UnmarshalJSON(b []byte) error + type ListTransactionsResult struct + Account string + Address string + Amount float64 + BlockHash string + BlockIndex int64 + BlockTime int64 + Category string + Comment string + Confirmations int64 + Fee float64 + Generated bool + OtherAccount string + Time int64 + TimeReceived int64 + TxID string + WalletConflicts []string + type ListUnspentCmd struct + Addresses []string + MaxConf int + MinConf int + func NewListUnspentCmd(id interface{}, optArgs ...interface{}) (*ListUnspentCmd, error) + func (cmd *ListUnspentCmd) Id() interface{} + func (cmd *ListUnspentCmd) MarshalJSON() ([]byte, error) + func (cmd *ListUnspentCmd) Method() string + func (cmd *ListUnspentCmd) UnmarshalJSON(b []byte) error + type ListUnspentResult struct + Account string + Address string + Amount float64 + Confirmations int64 + DestAddr string + RedeemScript string + TxId string + Vout uint32 + type LocalAddressesResult struct + Address string + Port uint16 + Score int32 + type LockUnspentCmd struct + Transactions []TransactionInput + Unlock bool + func NewLockUnspentCmd(id interface{}, unlock bool, optArgs ...[]TransactionInput) (*LockUnspentCmd, error) + func (cmd *LockUnspentCmd) Id() interface{} + func (cmd *LockUnspentCmd) MarshalJSON() ([]byte, error) + func (cmd *LockUnspentCmd) Method() string + func (cmd *LockUnspentCmd) UnmarshalJSON(b []byte) error + type Message struct + Id interface{} + Jsonrpc string + Method string + Params interface{} + type MoveCmd struct + Amount int64 + Comment string + FromAccount string + MinConf int + ToAccount string + func NewMoveCmd(id interface{}, fromaccount string, toaccount string, amount int64, ...) (*MoveCmd, error) + func (cmd *MoveCmd) Id() interface{} + func (cmd *MoveCmd) MarshalJSON() ([]byte, error) + func (cmd *MoveCmd) Method() string + func (cmd *MoveCmd) UnmarshalJSON(b []byte) error + type NetworksResult struct + Limited bool + Name string + Proxy string + Reachable bool + type PingCmd struct + func NewPingCmd(id interface{}) (*PingCmd, error) + func (cmd *PingCmd) Id() interface{} + func (cmd *PingCmd) MarshalJSON() ([]byte, error) + func (cmd *PingCmd) Method() string + func (cmd *PingCmd) UnmarshalJSON(b []byte) error + type RawCmd struct + Id interface{} + Jsonrpc string + Method string + Params []json.RawMessage + func NewRawCmd(id interface{}, method string, params []interface{}) (*RawCmd, error) + type RawCmdParser func(*RawCmd) (Cmd, error) + type RawTxInput struct + RedeemScript string + ScriptPubKey string + Txid string + Vout uint32 + type ReconsiderBlockCmd struct + BlockHash string + func NewReconsiderBlockCmd(id interface{}, blockhash string) (*ReconsiderBlockCmd, error) + func (cmd *ReconsiderBlockCmd) Id() interface{} + func (cmd *ReconsiderBlockCmd) MarshalJSON() ([]byte, error) + func (cmd *ReconsiderBlockCmd) Method() string + func (cmd *ReconsiderBlockCmd) UnmarshalJSON(b []byte) error + type Reply struct + Error *Error + Id *interface{} + Result interface{} + func ReadResultCmd(cmd string, message []byte) (Reply, error) + func RpcCommand(user string, password string, server string, message []byte) (Reply, error) + func RpcSend(user string, password string, server string, cmd Cmd) (Reply, error) + func TlsRpcCommand(user string, password string, server string, message []byte, ...) (Reply, error) + func TlsRpcSend(user string, password string, server string, cmd Cmd, certificates []byte, ...) (Reply, error) + type ReplyParser func(json.RawMessage) (interface{}, error) + type SearchRawTransactionsCmd struct + Address string + Count int + Skip int + Verbose int + func NewSearchRawTransactionsCmd(id interface{}, address string, optArgs ...interface{}) (*SearchRawTransactionsCmd, error) + func (cmd *SearchRawTransactionsCmd) Id() interface{} + func (cmd *SearchRawTransactionsCmd) MarshalJSON() ([]byte, error) + func (cmd *SearchRawTransactionsCmd) Method() string + func (cmd *SearchRawTransactionsCmd) UnmarshalJSON(b []byte) error + type SendFromCmd struct + Amount int64 + Comment string + CommentTo string + FromAccount string + MinConf int + ToAddress string + func NewSendFromCmd(id interface{}, fromaccount string, toaddress string, amount int64, ...) (*SendFromCmd, error) + func (cmd *SendFromCmd) Id() interface{} + func (cmd *SendFromCmd) MarshalJSON() ([]byte, error) + func (cmd *SendFromCmd) Method() string + func (cmd *SendFromCmd) UnmarshalJSON(b []byte) error + type SendManyCmd struct + Amounts map[string]int64 + Comment string + FromAccount string + MinConf int + func NewSendManyCmd(id interface{}, fromaccount string, amounts map[string]int64, ...) (*SendManyCmd, error) + func (cmd *SendManyCmd) Id() interface{} + func (cmd *SendManyCmd) MarshalJSON() ([]byte, error) + func (cmd *SendManyCmd) Method() string + func (cmd *SendManyCmd) UnmarshalJSON(b []byte) error + type SendRawTransactionCmd struct + AllowHighFees bool + HexTx string + func NewSendRawTransactionCmd(id interface{}, hextx string, optArgs ...bool) (*SendRawTransactionCmd, error) + func (cmd *SendRawTransactionCmd) Id() interface{} + func (cmd *SendRawTransactionCmd) MarshalJSON() ([]byte, error) + func (cmd *SendRawTransactionCmd) Method() string + func (cmd *SendRawTransactionCmd) UnmarshalJSON(b []byte) error + type SendToAddressCmd struct + Address string + Amount int64 + Comment string + CommentTo string + func NewSendToAddressCmd(id interface{}, address string, amount int64, optArgs ...interface{}) (*SendToAddressCmd, error) + func (cmd *SendToAddressCmd) Id() interface{} + func (cmd *SendToAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *SendToAddressCmd) Method() string + func (cmd *SendToAddressCmd) UnmarshalJSON(b []byte) error + type SetAccountCmd struct + Account string + Address string + func NewSetAccountCmd(id interface{}, address string, account string) (*SetAccountCmd, error) + func (cmd *SetAccountCmd) Id() interface{} + func (cmd *SetAccountCmd) MarshalJSON() ([]byte, error) + func (cmd *SetAccountCmd) Method() string + func (cmd *SetAccountCmd) UnmarshalJSON(b []byte) error + type SetGenerateCmd struct + GenProcLimit int + Generate bool + func NewSetGenerateCmd(id interface{}, generate bool, optArgs ...int) (*SetGenerateCmd, error) + func (cmd *SetGenerateCmd) Id() interface{} + func (cmd *SetGenerateCmd) MarshalJSON() ([]byte, error) + func (cmd *SetGenerateCmd) Method() string + func (cmd *SetGenerateCmd) UnmarshalJSON(b []byte) error + type SetTxFeeCmd struct + Amount int64 + func NewSetTxFeeCmd(id interface{}, amount int64) (*SetTxFeeCmd, error) + func (cmd *SetTxFeeCmd) Id() interface{} + func (cmd *SetTxFeeCmd) MarshalJSON() ([]byte, error) + func (cmd *SetTxFeeCmd) Method() string + func (cmd *SetTxFeeCmd) UnmarshalJSON(b []byte) error + type SignMessageCmd struct + Address string + Message string + func NewSignMessageCmd(id interface{}, address string, message string) (*SignMessageCmd, error) + func (cmd *SignMessageCmd) Id() interface{} + func (cmd *SignMessageCmd) MarshalJSON() ([]byte, error) + func (cmd *SignMessageCmd) Method() string + func (cmd *SignMessageCmd) UnmarshalJSON(b []byte) error + type SignRawTransactionCmd struct + Flags string + Inputs []RawTxInput + PrivKeys []string + RawTx string + func NewSignRawTransactionCmd(id interface{}, rawTx string, optArgs ...interface{}) (*SignRawTransactionCmd, error) + func (cmd *SignRawTransactionCmd) Id() interface{} + func (cmd *SignRawTransactionCmd) MarshalJSON() ([]byte, error) + func (cmd *SignRawTransactionCmd) Method() string + func (cmd *SignRawTransactionCmd) UnmarshalJSON(b []byte) error + type SignRawTransactionResult struct + Complete bool + Hex string + type StopCmd struct + func NewStopCmd(id interface{}) (*StopCmd, error) + func (cmd *StopCmd) Id() interface{} + func (cmd *StopCmd) MarshalJSON() ([]byte, error) + func (cmd *StopCmd) Method() string + func (cmd *StopCmd) UnmarshalJSON(b []byte) error + type SubmitBlockCmd struct + HexBlock string + Options *SubmitBlockOptions + func NewSubmitBlockCmd(id interface{}, hexblock string, optArgs ...*SubmitBlockOptions) (*SubmitBlockCmd, error) + func (cmd *SubmitBlockCmd) Id() interface{} + func (cmd *SubmitBlockCmd) MarshalJSON() ([]byte, error) + func (cmd *SubmitBlockCmd) Method() string + func (cmd *SubmitBlockCmd) UnmarshalJSON(b []byte) error + type SubmitBlockOptions struct + WorkID string + type TemplateRequest struct + Capabilities []string + Data string + LongPollID string + MaxVersion uint32 + Mode string + SigOpLimit interface{} + SizeLimit interface{} + Target string + WorkID string + type TransactionInput struct + Txid string + Vout uint32 + type TxRawDecodeResult struct + Locktime int64 + Txid string + Version uint8 + Vin []Vin + Vout []Vout + type TxRawResult struct + BlockHash string + Blocktime int64 + Confirmations uint64 + Hex string + LockTime int64 + Time int64 + Txid string + Vecout []VECout + Version uint8 + Vin []Vin + Vout []Vout + type VECout struct + ECAddr ECAddrResult + Value int64 + type ValidateAddressCmd struct + Address string + func NewValidateAddressCmd(id interface{}, address string) (*ValidateAddressCmd, error) + func (cmd *ValidateAddressCmd) Id() interface{} + func (cmd *ValidateAddressCmd) MarshalJSON() ([]byte, error) + func (cmd *ValidateAddressCmd) Method() string + func (cmd *ValidateAddressCmd) UnmarshalJSON(b []byte) error + type ValidateAddressResult struct + Account string + Address string + Addresses []string + Hex string + IsCompressed bool + IsMine bool + IsScript bool + IsValid bool + IsWatchOnly bool + PubKey string + Script string + SigsRequired int32 + type VerifyChainCmd struct + CheckDepth int32 + CheckLevel int32 + func NewVerifyChainCmd(id interface{}, optArgs ...int32) (*VerifyChainCmd, error) + func (cmd *VerifyChainCmd) Id() interface{} + func (cmd *VerifyChainCmd) MarshalJSON() ([]byte, error) + func (cmd *VerifyChainCmd) Method() string + func (cmd *VerifyChainCmd) UnmarshalJSON(b []byte) error + type VerifyMessageCmd struct + Address string + Message string + Signature string + func NewVerifyMessageCmd(id interface{}, address string, signature string, message string) (*VerifyMessageCmd, error) + func (cmd *VerifyMessageCmd) Id() interface{} + func (cmd *VerifyMessageCmd) MarshalJSON() ([]byte, error) + func (cmd *VerifyMessageCmd) Method() string + func (cmd *VerifyMessageCmd) UnmarshalJSON(b []byte) error + type Vin struct + Coinbase string + Txid string + Vout uint32 + func (v *Vin) IsCoinBase() bool + func (v *Vin) MarshalJSON() ([]byte, error) + type Vout struct + DestAddr DestAddrResult + N uint32 + Value float64 + type WalletLockCmd struct + func NewWalletLockCmd(id interface{}) (*WalletLockCmd, error) + func (cmd *WalletLockCmd) Id() interface{} + func (cmd *WalletLockCmd) MarshalJSON() ([]byte, error) + func (cmd *WalletLockCmd) Method() string + func (cmd *WalletLockCmd) UnmarshalJSON(b []byte) error + type WalletPassphraseChangeCmd struct + NewPassphrase string + OldPassphrase string + func NewWalletPassphraseChangeCmd(id interface{}, oldpassphrase, newpassphrase string) (*WalletPassphraseChangeCmd, error) + func (cmd *WalletPassphraseChangeCmd) Id() interface{} + func (cmd *WalletPassphraseChangeCmd) MarshalJSON() ([]byte, error) + func (cmd *WalletPassphraseChangeCmd) Method() string + func (cmd *WalletPassphraseChangeCmd) UnmarshalJSON(b []byte) error + type WalletPassphraseCmd struct + Passphrase string + Timeout int64 + func NewWalletPassphraseCmd(id interface{}, passphrase string, timeout int64) (*WalletPassphraseCmd, error) + func (cmd *WalletPassphraseCmd) Id() interface{} + func (cmd *WalletPassphraseCmd) MarshalJSON() ([]byte, error) + func (cmd *WalletPassphraseCmd) Method() string + func (cmd *WalletPassphraseCmd) UnmarshalJSON(b []byte) error