Documentation
¶
Index ¶
- Variables
- func GetBlock(hash string) (*Block, *Result, error)
- func GetID() int64
- func GetInfo() (*GetInfoResult, *Result, error)
- func GetRawTransactionWithVerbose(txid string) (*DetailedTransaction, *Result, error)
- func GetTransaction(txid string) (*Transaction, *Result, error)
- func ListSinceBlock(blockHash string, targetConfirmations int64) (*ListSinceBlockResponse, *Result, error)
- func ListTransactions(data []interface{}) ([]Transaction, *Result, error)
- func ListTransactionsFull(account string, count int64, from int64) ([]Transaction, *Result, error)
- func ListUnspent() ([]UnspentOutput, *Result, error)
- func ListUnspentFull(minConf, maxConf int64) ([]UnspentOutput, *Result, error)
- func ListUnspentMinConf(minConf int64) ([]UnspentOutput, *Result, error)
- func SetAddress(newAddress string, newUsername string, newPassword string)
- func SignRawTransaction(raw string) (*SignRawTransactionResp, *Result, error)
- type Block
- type DetailedTransaction
- type Error
- type GetInfoResult
- type ListSinceBlockResponse
- type RawTransactionInput
- type Result
- func BackupWallet(destination []interface{}) (*Result, error)
- func CallWithBasicAuth(method string, params []interface{}) (*Result, error)
- func CallWithBasicAuthSingleParam(method string, params interface{}) (*Result, error)
- func CreateRawTransaction(inputs []RawTransactionInput, outputs map[string]interface{}) (string, *Result, error)
- func DecodeRawTransaction(data string) (*Result, error)
- func EncryptWallet(passphrase []interface{}) (*Result, error)
- func EstimateFee(blocks int64) (float64, *Result, error)
- func GetAccount(bitcoinaddress []interface{}) (*Result, error)
- func GetAccountAddress(account []interface{}) (*Result, error)
- func GetAddressesByAccount(account []interface{}) (*Result, error)
- func GetBalance(data []interface{}) (*Result, error)
- func GetBlockCount() (*Result, error)
- func GetBlockHash(index []interface{}) (*Result, error)
- func GetBlockNumber() (*Result, error)
- func GetConnectionCount() (*Result, error)
- func GetDifficulty() (*Result, error)
- func GetGenerate() (*Result, error)
- func GetHashesPerSec() (*Result, error)
- func GetMemoryPool(data []interface{}) (*Result, error)
- func GetNewAddress(account []interface{}) (*Result, error)
- func GetRawTransaction(txid string) (string, *Result, error)
- func GetReceivedByAccount(data []interface{}) (*Result, error)
- func GetReceivedByAddress(data []interface{}) (*Result, error)
- func GetWork(data []interface{}) (*Result, error)
- func Help(command string) (*Result, error)
- func KeyPoolRefill() (*Result, error)
- func ListAccounts(minconf interface{}) (*Result, error)
- func ListReceivedByAccount(data []interface{}) (*Result, error)
- func ListReceivedByAddress(data []interface{}) (*Result, error)
- func Move(data []interface{}) (*Result, error)
- func SendFrom(data []interface{}) (*Result, error)
- func SendMany(data []interface{}) (*Result, error)
- func SendRawTransaction(tx string) (string, *Result, error)
- func SendToAddress(address string, amount float64) (string, *Result, error)
- func SetAccount(data []interface{}) (*Result, error)
- func SetGenerate(data []interface{}) (*Result, error)
- func SetTxFee(amount []interface{}) (*Result, error)
- func SignMessage(bitcoinaddress, message interface{}) (*Result, error)
- func SignRawMessage(raw string) (*Result, error)
- func Stop() (*Result, error)
- func ValidateAddress(bitcoinaddress interface{}) (*Result, error)
- func VerifyMessage(bitcoinaddress, signature, message interface{}) (*Result, error)
- func WalletLock() (*Result, error)
- func WalletPassPhrase(passphrase, timeout interface{}) (*Result, error)
- func WalletPassPhraseChange(data []interface{}) (*Result, error)
- type ScriptPubKey
- type ScriptSig
- type SignRawTransactionResp
- type Transaction
- type UnspentOutput
- type VIn
- type VOut
Constants ¶
This section is empty.
Variables ¶
View Source
var Address string
View Source
var AllowInvalidServerCertificate bool
View Source
var ID int64
View Source
var Password string
View Source
var Username string
Functions ¶
func GetInfo ¶
func GetInfo() (*GetInfoResult, *Result, error)
func GetRawTransactionWithVerbose ¶
func GetRawTransactionWithVerbose(txid string) (*DetailedTransaction, *Result, error)
func GetTransaction ¶
func GetTransaction(txid string) (*Transaction, *Result, error)
func ListSinceBlock ¶
func ListSinceBlock(blockHash string, targetConfirmations int64) (*ListSinceBlockResponse, *Result, error)
func ListTransactions ¶
func ListTransactions(data []interface{}) ([]Transaction, *Result, error)
func ListTransactionsFull ¶
func ListUnspent ¶
func ListUnspent() ([]UnspentOutput, *Result, error)
func ListUnspentFull ¶
func ListUnspentFull(minConf, maxConf int64) ([]UnspentOutput, *Result, error)
func ListUnspentMinConf ¶
func ListUnspentMinConf(minConf int64) ([]UnspentOutput, *Result, error)
func SetAddress ¶
func SignRawTransaction ¶
func SignRawTransaction(raw string) (*SignRawTransactionResp, *Result, error)
Types ¶
type Block ¶
type Block struct {
Hash string `json:"hash"`
Confirmations int64 `json:"confirmations"`
StrippedSize int64 `json:"strippedsize"`
Size int64 `json:"size"`
Weight int64 `json:"weight"`
Height int64 `json:"height"`
Version int64 `json:"version"`
VersionHex string `json:"versionHex"`
MerkleRoot string `json:"merkleroot"`
Tx []string `json:"tx"`
Time int64 `json:"time"`
MedianTime int64 `json:"mediantime"`
Nonce int64 `json:"nonce"`
Bits string `json:"bits"`
ChainWork string `json:"chainwork"`
PreviousBlockHash string `json:"previousblockhash"`
NextBlockHash string `json:"nextblockhash"`
// contains filtered or unexported fields
}
type DetailedTransaction ¶
type DetailedTransaction struct {
Hex string `json:"hex"`
TxID string `json:"txid"`
Hash string `json:"hash"`
Size int64 `json:"size"`
VSize int64 `json:"vsize"`
Version int64 `json:"version"`
LockTime int64 `json:"locktime"`
VIn []VIn `json:"vin"`
VOut []VOut `json:"vout"`
BlockHash string `json:"blockhash"`
Confirmations int64 `json:"confirmations"`
Time int64 `json:"time"`
Blocktime int64 `json:"blocktime"`
}
func (*DetailedTransaction) String ¶
func (r *DetailedTransaction) String() string
type GetInfoResult ¶
type GetInfoResult struct {
Version int64 `json:"version"`
ProtocolVersion int64 `json:"protocolversion"`
WalletVersion int64 `json:"walletversion"`
Balance float64 `json:"balance"`
Blocks int64 `json:"blocks"`
TimeOffset int64 `json:"timeoffset"`
Connections int64 `json:"connections"`
Proxy string `json:"proxy"`
Difficulty float64 `json:"difficulty"`
Testnet bool `json:"testnet"`
KeyPoolOldest int64 `json:"keypoololdest"`
KeyPoolSize int64 `json:"keypoolsize"`
UnlockedUntil int64 `json:"unlocked_until"`
PayTxFee float64 `json:"paytxfee"`
RelayFee float64 `json:"relayfee"`
Errors string `json:"errors"`
}
func (*GetInfoResult) String ¶
func (r *GetInfoResult) String() string
type ListSinceBlockResponse ¶
type ListSinceBlockResponse struct {
Transactions []Transaction `json:"transactions"`
LastBlock string `json:"lastblock"`
}
type RawTransactionInput ¶
type Result ¶
type Result struct {
Result json.RawMessage `json:"result"`
Error *Error `json:"error,omitempty"`
ID interface{} `json:"id"`
}
func BackupWallet ¶
func CallWithBasicAuth ¶
func CreateRawTransaction ¶
func CreateRawTransaction(inputs []RawTransactionInput, outputs map[string]interface{}) (string, *Result, error)
func DecodeRawTransaction ¶
func EncryptWallet ¶
func GetAccount ¶
func GetAccountAddress ¶
func GetAddressesByAccount ¶
func GetBalance ¶
func GetBlockCount ¶
func GetBlockHash ¶
func GetBlockNumber ¶
func GetConnectionCount ¶
func GetDifficulty ¶
func GetGenerate ¶
func GetHashesPerSec ¶
func GetMemoryPool ¶
func GetNewAddress ¶
func GetReceivedByAccount ¶
func GetReceivedByAddress ¶
func KeyPoolRefill ¶
func ListAccounts ¶
func ListReceivedByAccount ¶
func ListReceivedByAddress ¶
func SetAccount ¶
func SetGenerate ¶
func SignMessage ¶
func SignRawMessage ¶
func ValidateAddress ¶
func VerifyMessage ¶
func WalletLock ¶
func WalletPassPhrase ¶
func WalletPassPhraseChange ¶
func (*Result) ParseResult ¶
type ScriptPubKey ¶
type SignRawTransactionResp ¶
type Transaction ¶
type Transaction struct {
Account string `json:"account"`
Address string `json:"address"`
Category string `json:"category"`
Amount float64 `json:"amount"`
Label string `json:"label"`
Vout int64 `json:"vout"`
Fee float64 `json:"fee"`
Confirmations int64 `json:"confirmations"`
BlockHash string `json:"blockhash"`
BlockIndex int64 `json:"blockindex"`
BlockTime int64 `json:"blocktime"`
TxID string `json:"txid"`
Walletconflicts []interface{} `json:"walletconflicts"`
Time int64 `json:"time"`
Timereceived int64 `json:"timereceived"`
BIP125Replaceable string `json:"bip125-replaceable"`
Abandoned bool `json:"abandoned"`
}
func (*Transaction) String ¶
func (r *Transaction) String() string
type UnspentOutput ¶
type VOut ¶
type VOut struct {
Value float64 `json:"value"`
N int64 `json:"n"`
ScriptPubKey ScriptPubKey `json:"scriptPubKey"`
}
Click to show internal directories.
Click to hide internal directories.