Documentation
¶
Index ¶
- Constants
- type AddToConfiscationTransactionWhitelistNotProcessed
- type AddToConfiscationTransactionWhitelistResponse
- type AddToConfiscationTxIdWhitelistArgs
- type AddToConsensusBlacklistArgs
- type AddToConsensusBlacklistNotProcessed
- type AddToConsensusBlacklistResponse
- type BannedSubnet
- type Block
- type BlockDecodeHeader
- type BlockHeader
- type BlockStats
- type BlockTemplate
- type BlockTemplateRequest
- type ChainInfo
- type ChainTip
- type ChainTxStats
- type ConfiscationTransaction
- type ConfiscationTransactionDetails
- type DumpWallet
- type Enforce
- type Error
- type ExcessiveBlock
- type Fund
- type FundRawTransaction
- type ImportMulti
- type ImportMultiRequest
- type Info
- type JournalStatus
- type LegacyMerkleProof
- type LockUnspent
- type MemoryInfo
- type MempoolEntry
- type MempoolTxs
- type MiningCandidate
- type MiningInfo
- type MiningSolution
- type MultiSig
- type NetworkInfo
- type NetworkTotals
- type NodeInfo
- type OptsBalance
- type OptsChainTxStats
- type OptsFundRawTransaction
- type OptsGenerate
- type OptsImportAddress
- type OptsImportMulti
- type OptsImportPrivateKey
- type OptsImportPublicKey
- type OptsKeypoolRefill
- type OptsLegacyMerkleProof
- type OptsListAccounts
- type OptsListReceivedBy
- type OptsListSinceBlock
- type OptsListTransactions
- type OptsListUnspent
- type OptsLockUnspent
- type OptsMerkleProof
- type OptsMiningCandidate
- type OptsMove
- type OptsNetworkHashPS
- type OptsNewAddress
- type OptsNodeInfo
- type OptsOutput
- type OptsSendFrom
- type OptsSendMany
- type OptsSendRawTransaction
- type OptsSendToAddress
- type OptsSetBan
- type OptsSignRawTransaction
- type OptsSubmitBlock
- type Output
- type OutputSetInfo
- type ParamsCreateRawTransaction
- type ParamsDisconnectNode
- type ParamsSendRawTransactions
- type PeerInfo
- type ReceivedByAccount
- type ReceivedByAddress
- type Request
- type Response
- type SendRawTransaction
- type SendRawTransactionsResponse
- type Settings
- type SignedRawTransaction
- type SinceBlock
- type Transaction
- type TransactionDetail
- type TxOut
- type ValidateAddress
- type WalletInfo
- type WhitelistConfiscationTransaction
- type ZMQNotification
Constants ¶
const ( VerbosityRawBlock blockVerbosity = "RAW_BLOCK" VerbosityDecodeHeader blockVerbosity = "DECODE_HEADER" VerbosityDecodeTransactions blockVerbosity = "DECODE_TRANSACTIONS" VerbosityDecodeHeaderAndCoinbase blockVerbosity = "DECODE_HEADER_AND_COINBASE" )
Block verbosity levels.
const ( MerkleProofTargetTypeHash merkleProofTargetType = "hash" MerkleProofTargetTypeHeader merkleProofTargetType = "header" MerkleProofTargetTypeMerkleRoot merkleProofTargetType = "merkleroot" )
Merkle proof target types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddToConfiscationTransactionWhitelistNotProcessed ¶ added in v1.0.1
type AddToConfiscationTransactionWhitelistNotProcessed []struct { ConfiscationTransaction WhitelistConfiscationTransaction `json:"confiscationTx"` Reason string `json:"reason"` }
AddToConfiscationTransactionWhitelistNotProcessed represents a not processed confiscation transaction
type AddToConfiscationTransactionWhitelistResponse ¶
type AddToConfiscationTransactionWhitelistResponse struct {
NotProcessed AddToConfiscationTransactionWhitelistNotProcessed `json:"notProcessed"`
}
AddToConfiscationTransactionWhitelistResponse represents the response for adding confiscation transactions to the whitelist
type AddToConfiscationTxIdWhitelistArgs ¶
type AddToConfiscationTxIdWhitelistArgs struct {
ConfiscationTransactions []ConfiscationTransactionDetails `json:"confiscationTxs"`
}
type AddToConsensusBlacklistArgs ¶
type AddToConsensusBlacklistArgs struct {
Funds []Fund `json:"funds"`
}
type AddToConsensusBlacklistNotProcessed ¶ added in v1.0.1
type AddToConsensusBlacklistNotProcessed []struct { TxOut struct { TxId string `json:"txId"` Vout int `json:"vout"` } Reason string `json:"reason"` }
AddToConsensusBlacklistNotProcessed represents a not processed transaction output or confiscation transaction
type AddToConsensusBlacklistResponse ¶
type AddToConsensusBlacklistResponse struct {
NotProcessed AddToConsensusBlacklistNotProcessed `json:"notProcessed"`
}
AddToConsensusBlacklistResponse response
type BannedSubnet ¶
type BannedSubnet struct { Address string `json:"address"` BannedUntil uint64 `json:"banned_until"` BanCreated uint64 `json:"ban_created"` BanReason string `json:"ban_reason"` }
BannedSubnet model.
type Block ¶
type Block struct { Txs bt.Txs `json:"tx"` BlockHeader }
Block model.
func (*Block) UnmarshalJSON ¶
UnmarshalJSON unmarshal response.
type BlockDecodeHeader ¶
type BlockDecodeHeader struct { Txs []string `json:"tx"` BlockHeader }
BlockDecodeHeader model.
type BlockHeader ¶
type BlockHeader struct { *bc.BlockHeader Hash string `json:"hash"` Confirmations uint64 `json:"confirmations"` Height uint64 `json:"height"` // Version uint64 `json:"version"` VersionHex string `json:"versionHex"` NumTx uint64 `json:"num_tx"` // Time uint64 `json:"time"` MedianTime uint64 `json:"mediantime"` // Nonce uint64 `json:"nonce"` // Bits string `json:"bits"` Difficulty float64 `json:"difficulty"` Chainwork string `json:"chainwork"` // PreviousBlockHash string `json:"previousblockhash"` NextBlockHash string `json:"nextblockhash"` }
BlockHeader model.
func (*BlockHeader) MarshalJSON ¶
func (b *BlockHeader) MarshalJSON() ([]byte, error)
MarshalJSON marshal response.
func (*BlockHeader) UnmarshalJSON ¶
func (b *BlockHeader) UnmarshalJSON(bb []byte) error
UnmarshalJSON unmarshal response.
type BlockStats ¶
type BlockStats struct { AvgFee float64 `json:"avgfee"` AvgFeeRate float64 `json:"avgfeerate"` AvgTxSize uint32 `json:"avgtxsize"` Blockhash string `json:"blockhash"` Height uint32 `json:"height"` Ins uint32 `json:"ins"` MaxFee float64 `json:"maxfee"` MaxFeeRate float64 `json:"maxfeerate"` MaxTxSize uint32 `json:"maxtxsize"` MedianFee float64 `json:"medianfee"` MedianFeeRate float64 `json:"medianfeerate"` MedianTime uint32 `json:"mediantime"` MedianTxSize uint32 `json:"mediantxsize"` MinFee float64 `json:"minfee"` MinFeeRate float64 `json:"minfeerate"` MinTxSize uint32 `json:"mintxsize"` Outs uint32 `json:"outs"` Subsidy float64 `json:"subsidy"` Time uint32 `json:"time"` TotalOut float64 `json:"total_out"` TotalSize uint64 `json:"total_size"` TotalFee float64 `json:"totalfee"` UtxoIncreate uint32 `json:"utxo_increase"` UtxoSizeIncrease uint32 `json:"utxo_size_inc"` }
BlockStats model.
type BlockTemplate ¶
type BlockTemplate struct { Capabilities []string `json:"capabilities"` Version uint64 `json:"version"` PreviousBlockHash string `json:"previousblockhash"` Transactions []string `json:"transactions"` CoinbaseAux struct { Flags string `json:"flags"` } `json:"coinbaseaux"` CoinbaseValue uint64 `json:"coinbasevalue"` LongPollID string `json:"longpollid"` Target string `json:"target"` MinTime uint64 `json:"mintime"` Mutable []string `json:"mutable"` NonceRange string `json:"noncerange"` SizeLimit uint64 `json:"sizelimit"` CurTime uint64 `json:"curtime"` Bits string `json:"bits"` Height uint64 `json:"height"` }
BlockTemplate model.
type BlockTemplateRequest ¶
BlockTemplateRequest model.
func (*BlockTemplateRequest) Args ¶
func (r *BlockTemplateRequest) Args() []interface{}
Args convert struct into optional positional arguments.
type ChainInfo ¶
type ChainInfo struct { Chain string `json:"chain"` Blocks uint32 `json:"blocks"` Headers uint32 `json:"headers"` BestBlockHash string `json:"bestblockhash"` Difficulty float64 `json:"difficulty"` MedianTime uint32 `json:"mediantime"` VerificationProgress uint8 `json:"verificationprogress"` Chainwork string `json:"chainwork"` Pruned bool `json:"pruned"` SoftForks []struct { ID string `json:"id"` Version uint32 `json:"version"` Reject struct { Status bool `json:"status"` } `json:"reject"` } `json:"softforks"` }
ChainInfo model.
type ChainTip ¶
type ChainTip struct { Height uint32 `json:"height"` Hash string `json:"hash"` BranchLen uint32 `json:"branchLen"` Status string `json:"status"` }
ChainTip model.
type ChainTxStats ¶
type ChainTxStats struct { Time uint32 `json:"time"` TxCount uint32 `json:"txcount"` WindowBlockCount uint32 `json:"window_block_count"` WindowTxCount uint32 `json:"window_tx_count"` WindowInterval uint32 `json:"window_interval"` TxRate float32 `json:"txrate"` }
ChainTxStats model.
type ConfiscationTransaction ¶
type ConfiscationTransactionDetails ¶
type ConfiscationTransactionDetails struct {
ConfiscationTransaction ConfiscationTransaction `json:"confiscationTx"`
}
type ExcessiveBlock ¶
type ExcessiveBlock struct {
ExcessiveBlockSize uint64 `json:"excessiveBlockSize"`
}
ExcessiveBlock model.
type Fund ¶
type Fund struct { TxOut TxOut `json:"txOut"` EnforceAtHeight []Enforce `json:"enforceAtHeight"` PolicyExpiresWithConsensus bool `json:"policyExpiresWithConsensus"` }
Fund represents a fund to freeze or unfreeze
type FundRawTransaction ¶
FundRawTransaction model.
type ImportMulti ¶
type ImportMulti struct { Success bool `json:"success"` Error struct { Code int `json:"code"` Message string `json:"message"` } `json:"error"` }
ImportMulti model.
type ImportMultiRequest ¶
type ImportMultiRequest struct { LockingScript string `json:"scriptPubKey"` Address string `json:"address"` Timestamp time.Time `json:"timestamp"` RedeemScript string `json:"redeemscript"` PubKeys []string `json:"pubkeys"` Keys []string `json:"keys"` Internal bool `json:"internal"` WatchOnly bool `json:"watchonly"` Label string `json:"label"` }
ImportMultiRequest model.
type Info ¶
type Info struct { Version uint32 `json:"version"` ProtocolVersion uint32 `json:"protocolversion"` Wallet uint32 `json:"wallet"` Balance float64 `json:"balance"` Blocks uint64 `json:"blocks"` TimeOffset uint32 `json:"timeoffset"` Connections uint32 `json:"connections"` Proxy string `json:"proxy"` Difficulty float64 `json:"difficulty"` Testnet bool `json:"testnet"` Stn bool `json:"stn"` KeypoolOldest uint32 `json:"keypoololdest"` KeypoolSize uint32 `json:"keypoolsize"` PayTxFee float64 `json:"paytxfee"` RelayFee float64 `json:"relayfee"` Errors string `json:"errors"` MaxBlockSize uint64 `json:"maxblocksize"` MaxMinedBlockSize uint64 `json:"maxminedblocksize"` MaxStackMemoryUsageConsensus uint64 `json:"maxstackmemoryusageconsensus"` }
Info model.
type JournalStatus ¶
JournalStatus model.
type LegacyMerkleProof ¶
type LegacyMerkleProof struct { Flags uint32 `json:"flags"` Index uint32 `json:"index"` TxOrID string `json:"txOrId"` Target BlockHeader `json:"target"` Nodes []string `json:"nodes"` }
LegacyMerkleProof model.
type LockUnspent ¶
LockUnspent model.
type MemoryInfo ¶
type MemoryInfo struct { Locked struct { Used uint32 `json:"used"` Free uint32 `json:"free"` Total uint32 `json:"total"` Locked uint32 `json:"locked"` ChunksUsed uint32 `json:"chunks_used"` ChunksFree uint32 `json:"chunks_free"` } `json:"locked"` Preloading struct { ChainStateCached float64 `json:"chainStateCached"` } `json:"preloading"` }
MemoryInfo model.
type MempoolEntry ¶
type MempoolEntry struct { Size uint32 `json:"size"` Fee float64 `json:"fee"` ModifiedFee float64 `json:"modifiedfee"` Time uint32 `json:"time"` Height uint32 `json:"height"` Depends []string `json:"depends"` }
MempoolEntry model.
type MiningCandidate ¶
type MiningCandidate struct { ID string `json:"id"` PrevHash string `json:"prevhash"` Coinbase string `json:"coinbase,omitempty"` CoinbaseValue uint64 `json:"coinbaseValue"` Version uint64 `json:"version"` NBits string `json:"nBits"` Time uint64 `json:"time"` Height uint64 `json:"height"` NumTx uint64 `json:"num_tx"` SizeWithoutCoinbase uint64 `json:"sizeWithoutCoinbase"` MerkleProofs []string `json:"merkleProofs"` }
MiningCandidate model.
type MiningInfo ¶
type MiningInfo struct { Blocks uint64 `json:"blocks"` CurrentBlockSize uint64 `json:"currentblocksize"` CurrentBlockTx uint64 `json:"currentblocktx"` Difficulty float64 `json:"difficulty"` Errors string `json:"errors"` NetworkHashPS float64 `json:"networkhashps"` PooledTx uint64 `json:"pooledtx"` Chain string `json:"chain"` }
MiningInfo model.
type MiningSolution ¶
type MiningSolution struct { ID string `json:"id"` Nonce uint64 `json:"nonce"` Coinbase string `json:"coinbase,omitempty"` Time uint64 `json:"time,omitempty"` Version uint64 `json:"version,omitempty"` }
MiningSolution model.
type NetworkInfo ¶
type NetworkInfo struct { Version uint64 `json:"version"` Subversion string `json:"subversion"` ProtocolVersion uint64 `json:"protocolversion"` LocalServices string `json:"localservices"` LocalRelay bool `json:"localrelay"` TimeOffset uint64 `json:"timeoffset"` TxPropagationFrequency uint64 `json:"txnpropagationfreq"` TxPropagationLength uint64 `json:"txnpropagationlen"` NetworkActive bool `json:"networkactive"` Connections uint64 `json:"connections"` AddressCount uint64 `json:"addresscount"` StreamPolicies string `json:"streampolicies"` Networks []struct { Name string `json:"name"` Limited bool `json:"limited"` Reachable bool `json:"reachable"` Proxy string `json:"proxy"` ProxyRandomiseCredentials bool `json:"proxy_randomize_credentials"` } `json:"networks"` RelayFee float64 `json:"relayfee"` MinConsolidationFactor uint64 `json:"minconsolidationfactor"` MaxConsolidationInputScriptSize uint64 `json:"maxconsolidationinputscriptsize"` MinConfConsolidationInput uint64 `json:"minconfconsolidationinput"` MinConsolidationInputMaturity uint64 `json:"minconsolidationinputmaturity"` AcceptNonStdConsolidationInput bool `json:"acceptnonstdconsolidationinput"` LocalAddresses []struct { Address string `json:"address"` Port int `json:"port"` Score uint64 `json:"score"` } `json:"localaddresses"` Warnings string `json:"warnings"` }
NetworkInfo model.
type NetworkTotals ¶
type NetworkTotals struct { TotalBytesReceived uint64 `json:"totalbytesrecv"` TotalBytesSent uint64 `json:"totalbytessent"` TimeMilliseconds uint64 `json:"timemillis"` UploadTarget struct { Timeframe uint64 `json:"timeframe"` Target uint64 `json:"target"` TargetReached bool `json:"target_reached"` ServeHistoricalBlocks bool `json:"serve_historical_blocks"` BytesRemainingInCycle uint64 `json:"bytes_left_in_cycle"` TimeRemainingInCycle uint64 `json:"time_left_in_cycle"` } `json:"uploadtarget"` }
NetworkTotals model.
type NodeInfo ¶
type NodeInfo struct { Node string `json:"node"` Connected bool `json:"connected"` Addresses []struct { Address string `json:"address"` Connected string `json:"connected"` } `json:"addresses"` }
NodeInfo model.
type OptsBalance ¶
OptsBalance options.
func (*OptsBalance) Args ¶
func (o *OptsBalance) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsChainTxStats ¶
OptsChainTxStats options.
func (*OptsChainTxStats) Args ¶
func (o *OptsChainTxStats) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsFundRawTransaction ¶
type OptsFundRawTransaction struct { ChangeAddress string `json:"changeAddress,omitempty"` ChangePosition int `json:"changePosition,omitempty"` IncludeWatching bool `json:"includeWatching,omitempty"` LockUnspents bool `json:"lockUnspents,omitempty"` ReserveChangeKey *bool `json:"reserveChangeKey,omitempty"` FeeRate uint64 `json:"feeRate,omitempty"` SubtractFeeFromOutputs []uint64 `json:"subtractFeeFromOutputs,omitempty"` }
OptsFundRawTransaction options.
func (*OptsFundRawTransaction) Args ¶
func (o *OptsFundRawTransaction) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsGenerate ¶
type OptsGenerate struct {
MaxTries uint32
}
OptsGenerate options.
func (*OptsGenerate) Args ¶
func (o *OptsGenerate) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsImportAddress ¶
OptsImportAddress options.
func (*OptsImportAddress) Args ¶
func (o *OptsImportAddress) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsImportMulti ¶
type OptsImportMulti struct {
Rescan *bool `json:"rescan"`
}
OptsImportMulti options.
func (*OptsImportMulti) Args ¶
func (o *OptsImportMulti) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsImportPrivateKey ¶
OptsImportPrivateKey options.
func (*OptsImportPrivateKey) Args ¶
func (o *OptsImportPrivateKey) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsImportPublicKey ¶
OptsImportPublicKey options.
func (*OptsImportPublicKey) Args ¶
func (o *OptsImportPublicKey) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsKeypoolRefill ¶
type OptsKeypoolRefill struct {
NewSize int
}
OptsKeypoolRefill options.
func (*OptsKeypoolRefill) Args ¶
func (o *OptsKeypoolRefill) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsLegacyMerkleProof ¶
type OptsLegacyMerkleProof struct {
BlockHash string
}
OptsLegacyMerkleProof options.
func (*OptsLegacyMerkleProof) Args ¶
func (o *OptsLegacyMerkleProof) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsListAccounts ¶
OptsListAccounts options.
func (*OptsListAccounts) Args ¶
func (o *OptsListAccounts) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsListReceivedBy ¶
OptsListReceivedBy options.
func (*OptsListReceivedBy) Args ¶
func (o *OptsListReceivedBy) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsListSinceBlock ¶
OptsListSinceBlock options.
func (*OptsListSinceBlock) Args ¶
func (o *OptsListSinceBlock) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsListTransactions ¶
OptsListTransactions options.
func (*OptsListTransactions) Args ¶
func (o *OptsListTransactions) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsListUnspent ¶
OptsListUnspent options.
func (*OptsListUnspent) Args ¶
func (o *OptsListUnspent) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsLockUnspent ¶
type OptsLockUnspent struct {
Txs []LockUnspent
}
OptsLockUnspent options.
func (*OptsLockUnspent) Args ¶
func (o *OptsLockUnspent) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsMerkleProof ¶
type OptsMerkleProof struct { FullTx bool TargetType merkleProofTargetType }
OptsMerkleProof options.
func (*OptsMerkleProof) Args ¶
func (o *OptsMerkleProof) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsMiningCandidate ¶
type OptsMiningCandidate struct {
IncludeCoinbase bool
}
OptsMiningCandidate options.
func (*OptsMiningCandidate) Args ¶
func (o *OptsMiningCandidate) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsNetworkHashPS ¶
OptsNetworkHashPS options.
func (*OptsNetworkHashPS) Args ¶
func (o *OptsNetworkHashPS) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsNewAddress ¶
type OptsNewAddress struct {
Account string
}
OptsNewAddress options.
func (*OptsNewAddress) Args ¶
func (o *OptsNewAddress) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsNodeInfo ¶
type OptsNodeInfo struct {
Node string
}
OptsNodeInfo options.
func (*OptsNodeInfo) Args ¶
func (o *OptsNodeInfo) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsOutput ¶
type OptsOutput struct {
IncludeMempool bool
}
OptsOutput options.
func (*OptsOutput) Args ¶
func (o *OptsOutput) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSendFrom ¶
OptsSendFrom options.
func (*OptsSendFrom) Args ¶
func (o *OptsSendFrom) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSendMany ¶
OptsSendMany options.
func (*OptsSendMany) Args ¶
func (o *OptsSendMany) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSendRawTransaction ¶
OptsSendRawTransaction options.
func (*OptsSendRawTransaction) Args ¶
func (o *OptsSendRawTransaction) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSendToAddress ¶
OptsSendToAddress options.
func (*OptsSendToAddress) Args ¶
func (o *OptsSendToAddress) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSetBan ¶
OptsSetBan options.
func (*OptsSetBan) Args ¶
func (o *OptsSetBan) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSignRawTransaction ¶
OptsSignRawTransaction options.
func (*OptsSignRawTransaction) Args ¶
func (o *OptsSignRawTransaction) Args() []interface{}
Args convert struct into optional positional arguments.
type OptsSubmitBlock ¶
type OptsSubmitBlock struct {
WorkID string `json:"workid"`
}
OptsSubmitBlock options.
func (*OptsSubmitBlock) Args ¶
func (o *OptsSubmitBlock) Args() []interface{}
Args convert struct into optional positional arguments.
type Output ¶
Output model.
func (*Output) NodeJSON ¶
func (o *Output) NodeJSON() interface{}
NodeJSON return node json variant.
func (*Output) UnmarshalJSON ¶
UnmarshalJSON unmarshal response.
type OutputSetInfo ¶
type OutputSetInfo struct { Height uint32 `json:"height"` BestBlock string `json:"bestblock"` Transactions uint32 `json:"transactions"` OutputCount uint32 `json:"txouts"` BogoSize uint32 `json:"bogosize"` HashSerialised string `json:"hash_serialized"` DiskSize uint32 `json:"disk_size"` TotalAmount float64 `json:"total_amount"` }
OutputSetInfo model.
type ParamsCreateRawTransaction ¶
type ParamsCreateRawTransaction struct { Outputs []*bt.Output // contains filtered or unexported fields }
ParamsCreateRawTransaction model.
func (*ParamsCreateRawTransaction) Args ¶
func (p *ParamsCreateRawTransaction) Args() []interface{}
Args convert struct into optional positional arguments.
func (*ParamsCreateRawTransaction) SetIsMainnet ¶
func (p *ParamsCreateRawTransaction) SetIsMainnet(b bool)
SetIsMainnet set request is in mainnet context.
type ParamsDisconnectNode ¶
ParamsDisconnectNode model.
func (*ParamsDisconnectNode) Args ¶
func (p *ParamsDisconnectNode) Args() []interface{}
Args convert struct into optional positional arguments.
type ParamsSendRawTransactions ¶
type ParamsSendRawTransactions struct { Hex string `json:"hex"` AllowHighFees bool `json:"allowhighfees"` DontCheckFee bool `json:"dontcheckfee"` ListUnconfirmedAncestors bool `json:"listunconfirmedancestors"` }
ParamsSendRawTransactions params.
type PeerInfo ¶
type PeerInfo struct { ID int `json:"id"` Addr string `json:"addr"` Services string `json:"services"` RelayTxs bool `json:"relaytxes"` LaStsend int `json:"lastsend"` LastReceived int `json:"lastrecv"` SendSize int `json:"sendsize"` ReceivedSize int `json:"recvsize"` PauseSend bool `json:"pausesend"` UnpauseSend bool `json:"unpausesend"` BytesSent int `json:"bytessent"` BytesReceived int `json:"bytesrecv"` AvgReceivedBW int `json:"avgrecvbw"` AssocID string `json:"associd"` StreamPolicy string `json:"streampolicy"` Streams []struct { StreamType string `json:"streamtype"` LastSend int `json:"lastsend"` LastReceived int `json:"lastrecv"` BytesSent int `json:"bytessent"` BytesReceived int `json:"bytesrecv"` SendSize int `json:"sendsize"` ReceivedSize int `json:"recvsize"` SpotReceivedBW int `json:"spotrecvbw"` MinuteReceivedBW int `json:"minuterecvbw"` PauseReceive bool `json:"pauserecv"` } `json:"streams"` ConnTime int `json:"conntime"` TimeOffset int64 `json:"timeoffset"` PingTime float64 `json:"pingtime"` MinPing float64 `json:"minping"` Version int `json:"version"` SubVer string `json:"subver"` Inbound bool `json:"inbound"` AddNode bool `json:"addnode"` StartingHeight int `json:"startingheight"` TxInvSize int `json:"txninvsize"` BanScore int `json:"banscore"` SyncedHeaders int `json:"synced_headers"` SyncedBlocks int `json:"synced_blocks"` Inflight []uint64 `json:"inflight"` Whitelisted bool `json:"whitelisted"` BytesSentPerMsg struct { FeeFilter int `json:"feefilter"` Headers int `json:"headers"` Ping int `json:"ping"` Pong int `json:"pong"` Protoconf int `json:"protoconf"` SendHeaders int `json:"sendheaders"` VerACK int `json:"verack"` Version int `json:"version"` } `json:"bytessent_per_msg"` BytesReceivedPerMsg struct { GetAddress int `json:"getaddr"` GetHeaders int `json:"getheaders"` Inv int `json:"inv"` Ping int `json:"ping"` Pong int `json:"pong"` SendHeaders int `json:"sendheaders"` VerACK int `json:"verack"` Version int `json:"version"` } `json:"bytesrecv_per_msg"` }
PeerInfo model.
type ReceivedByAccount ¶
type ReceivedByAccount struct { InvolvesWatchOnly bool `json:"involvesWatchOnly"` Account string `json:"account"` Amount float64 `json:"amount"` Confirmations int `json:"confirmations"` Label string `json:"label"` }
ReceivedByAccount model.
type ReceivedByAddress ¶
type ReceivedByAddress struct { InvolvesWatchOnly bool `json:"involvesWatchOnly"` Address string `json:"address"` Account string `json:"account"` Amount float64 `json:"amount"` Confirmations int `json:"confirmations"` Label string `json:"label"` TxIDs []string `json:"txids"` }
ReceivedByAddress model.
type Request ¶
type Request struct { ID string `json:"id"` JSONRpc string `json:"jsonRpc"` Method string `json:"method"` Params []interface{} `json:"params,omitempty"` }
Request model.
type Response ¶
type Response struct { Result interface{} `json:"result"` Error *Error `json:"error"` }
Response model.
type SendRawTransaction ¶
type SendRawTransaction struct { Hex string Tx *bt.Tx }
SendRawTransaction model.
func (*SendRawTransaction) PostProcess ¶
func (s *SendRawTransaction) PostProcess() error
PostProcess data.
type SendRawTransactionsResponse ¶
type SendRawTransactionsResponse struct { Known []string `json:"known"` Evicted []string `json:"evicted"` Invalid []struct { TxID string `json:"txid"` RejectCode int `json:"reject_code"` RejectReason string `json:"reject_reason"` CollidedWith []struct { TxID string `json:"txid"` Size uint64 `json:"size"` Hex string `json:"hex"` } `json:"collidedWith"` } `json:"invalid"` Unconfirmed []struct { TxID string `json:"txid"` Ancestors []struct { TxID string `json:"txid"` Vin []struct { TxID string `json:"txid"` Vout uint32 `json:"vout"` } `json:"vin"` } `json:"ancestors"` } `json:"unconfirmed"` }
SendRawTransactionsResponse response.
type Settings ¶
type Settings struct { ExcessiveBlockSize uint32 `json:"excessiveblocksize"` BlockMaxsIze uint32 `json:"blockmaxsize"` MaxTxSize uint32 `json:"maxtxsizepolicy"` MaxOrphanTxSize uint32 `json:"maxorphantxsize"` DataCarrierSize uint32 `json:"datacarriersize"` MaxScriptSize uint32 `json:"maxscriptsizepolicy"` MaxOpsPerScript uint32 `json:"maxopsperscriptpolicy"` MaxScriptNumLength uint32 `json:"maxscriptnumlengthpolicy"` MaxPubKeysPerMultiSig uint32 `json:"maxpubkeyspermultisigpolicy"` MaxTxSigOpsCounts uint32 `json:"maxtxsigopscountspolicy"` MaxStackMemoryUsage uint32 `json:"maxstackmemoryusagepolicy"` MaxStackMemoryUsageConsensus uint32 `json:"maxstackmemoryusageconsensus"` LimitAncestorCount uint32 `json:"limitancestorcount"` LimitCPFPGroupMembersCount uint32 `json:"limitcpfpgroupmemberscount"` MaxMempool uint32 `json:"maxmempool"` MaxMempoolSizeDisk uint32 `json:"maxmempoolsizedisk"` MempoolMaxPercentCPFP uint32 `json:"mempoolmaxpercentcpfp"` AcceptNonStdOutputs bool `json:"acceptnonstdoutputs"` DataCarrier bool `json:"datacarrier"` MinRelayTxFee float64 `json:"minrelaytxfee"` DustRelayFee float64 `json:"dustrelayfee"` DustLimitFactor uint32 `json:"dustlimitfactor"` BlockMinTxFee float64 `json:"blockmintxfee"` MaxStdTxValidationDuration uint32 `json:"maxstdtxvalidationduration"` MaxNonStdTxValidationDuration uint32 `json:"maxnonstdtxvalidationduration"` MaxTxChainValidationBudget uint32 `json:"maxtxchainvalidationbudget"` ValidationClockCPU bool `json:"validationclockcpu"` MinConsolidationFactor uint32 `json:"minconsolidationfactor"` MaxConsolidationInputScriptSize uint32 `json:"maxconsolidationinputscriptsize"` MinConfConsolidationInput uint32 `json:"minconfconsolidationinput"` MinConsolidationInputMaturity uint32 `json:"minconsolidationinputmaturity"` AcceptNonStdConsolidationInput bool `json:"acceptnonstdconsolidationinput"` }
Settings model.
type SignedRawTransaction ¶
type SignedRawTransaction struct { Tx *bt.Tx `json:"tx"` Complete bool `json:"complete"` Errors []struct { TxID string `json:"txid"` Vout int `json:"vout"` UnlockingScript string `json:"scriptSig"` Sequence uint32 `json:"sequence"` Error string `json:"error"` } `json:"errors"` }
SignedRawTransaction model.
type SinceBlock ¶
type SinceBlock struct { Txs []struct { Account string `json:"account"` Address string `json:"address"` Category string `json:"category"` Amount float64 `json:"amount"` Generated bool `json:"generated"` Vout int `json:"vout"` Fee float64 `json:"fee"` Confirmations int `json:"confirmations"` BlockHash string `json:"blockhash"` BlockIndex int `json:"blockindex"` TxID string `json:"txid"` Time uint64 `json:"time"` TimeReceived uint64 `json:"timereceived"` Abandoned bool `json:"abandoned"` Comment string `json:"comment"` Label string `json:"label"` To string `json:"to"` } `json:"transactions"` LastBlock string `json:"lastblock"` }
SinceBlock model.
type Transaction ¶
type Transaction struct { Amount int64 Fee int64 Confirmations uint32 `json:"confirmations"` BlockHash string `json:"blockhash"` BlockIndex uint32 `json:"blockindex"` BlockTime uint64 `json:"blocktime"` TxID string `json:"txid"` WalletConflicts []interface{} `json:"walletconflicts"` Time uint64 `json:"time"` TimeReceived uint64 `json:"timereceived"` Details []TransactionDetail Tx *bt.Tx `json:"tx"` }
Transaction model.
type TransactionDetail ¶
type TransactionDetail struct { Account string Address string Category string Amount int64 Label string Vout uint32 Fee int64 Abandoned bool }
TransactionDetail model.
type ValidateAddress ¶
type ValidateAddress struct { IsValid bool `json:"isvalid"` Address string `json:"address"` LockingScript string `json:"scriptPubKey"` IsMine bool `json:"ismine"` IsWatchOnly bool `json:"iswatchonly"` IsScript bool `json:"isscript"` PublicKey string `json:"pubkey"` IsCompressed bool `json:"iscompressed"` Account string `json:"account"` Timestamp uint64 `json:"timestamp"` HDKeyPath string `json:"hdkeypath"` HDMasterKeyID string `json:"hdmasterkeyid"` }
ValidateAddress model.
type WalletInfo ¶
type WalletInfo struct { WalletName string `json:"walletname"` WalletVersion uint64 `json:"walletversion"` Balance float64 `json:"balance"` UnconfirmedBalance float64 `json:"unconfirmed_balance"` ImmatureBalance float64 `json:"immature_balance"` TxCount uint64 `json:"txcount"` KeypoolOldest uint64 `json:"keypoololdest"` KeypoolSize uint64 `json:"keypoolsize"` KeypoolSizeHDInternal uint32 `json:"keypoolsize_hd_internal"` PayTxFee float64 `json:"paytxfee"` HDMasterKeyID string `json:"hdmasterkeyid"` }
WalletInfo model.
type WhitelistConfiscationTransaction ¶ added in v1.0.1
type WhitelistConfiscationTransaction struct {
TxId string `json:"txId"`
}
type ZMQNotification ¶
type ZMQNotification struct { Notification string `json:"notification"` Address string `json:"address"` }
ZMQNotification model.