Versions in this module Expand all Collapse all v1 v1.1.11 Mar 7, 2024 Changes in this version type Vin + TokenId string + TokenNftId *int v1.1.10 Sep 29, 2022 v1.1.9 Sep 25, 2022 Changes in this version type Vout + TokenId string + TokenNftId int v1.1.8 Aug 10, 2022 Changes in this version type PaymentRequest + VotesExcluded uint type Proposal + VotesExcluded uint v1.1.7 Jul 21, 2022 v1.1.6 Jul 21, 2022 v1.1.5 Jul 21, 2022 Changes in this version + const RPCCLIENT_TIMEOUT + const VERSION + type AddressBalance struct + Balance uint64 + Received uint64 + type AddressHistory struct + Address string + Block uint64 + Changes struct{ ... } + Result struct{ ... } + Time int64 + TxId string + TxIndex uint + type AddressHistoryRequest struct + Addresses []string + End uint64 + Start uint64 + type AddressTxids []string + type AddressTxidsRequest struct + Addresses []string + End uint64 + Start uint64 + type Answer struct + Answer string + Hash string + MapState map[int]string + Parent string + RawAnswer json.RawMessage + State int + StateChangedOnBlock string + Status string + Support int + TxBlockHash string + Version uint32 + Votes int + type Bip9SoftFork struct + Bit uint + Id int + StartTime uint64 + Status string + Timeout uint64 + type Block struct + Bits string + ChainWork string + Confirmations uint64 + Difficulty float64 + Hash string + Height uint64 + MedianTime int64 + MerkleRoot string + NextBlockHash string + Nonce uint64 + PaymentRequestCount uint + PaymentRequestPayoutsCount uint + PaymentRequestVotesCount uint + PreviousBlockHash string + ProposalCount uint + ProposalVotesCount uint + Size uint64 + StrippedSize uint64 + Time int64 + Tx []string + TxCount uint + Version uint32 + VersionHex string + Weight uint64 + type BlockHeader struct + Bits string + CfundRequestVotes []DaoVote + CfundVotes []DaoVote + ChainWork string + Confirmations uint64 + DaoSupport []string + DaoVotes []DaoVote + Difficulty float64 + EntropyBit int64 + Flags string + Hash string + Height uint64 + MedianTime int64 + MerkleRoot string + Mint float64 + Modifier string + NcfLocked string + NcfSupply string + NextBlockHash string + Nonce uint64 + PreviousBlockHash string + ProofHash string + Time int64 + Version uint32 + VersionHex string + type BlockchainInfo struct + BestBlockHash string + Bip9SoftForks map[string]Bip9SoftFork + Blocks uint64 + Chain string + ChainWork string + Difficulty float64 + Headers uint64 + MedianTime uint64 + Pruned bool + SoftForks []SoftFork + VerificationProgress float64 + type CFundStats struct + Consensus Consensus + type ChainTip struct + BranchLen int + Hash string + Height int + Status string + type Consensus struct + BlocksPerVotingCycle uint + MaxCountVotingCyclePaymentRequests uint + MaxCountVotingCycleProposals uint + MinSumVotesPerVotingCycle uint + ProposalMinimalFee float64 + VotesAcceptPaymentRequestPercentage uint + VotesAcceptProposalPercentage uint + VotesRejectPaymentRequestPercentage uint + VotesRejectProposalPercentage uint + type ConsensusParameter struct + Description string + Id int + Type int + Value int + type Consultation struct + Abstain int + Answers []*Answer + BlockHash string + Hash string + MapState map[int]string + Max int + Min int + Question string + RangeAnswers map[string]int + RawAnswers json.RawMessage + State int + StateChangedOnBlock string + Status string + Support int + Version uint32 + VotingCycleForState Cycle + VotingCyclesFromCreation int + type Cycle struct + Current int + Max int + type DaoVote struct + Hash string + Vote int + type Info struct + Balance float64 + Blocks uint32 + Connections uint32 + Difficulty float64 + Errors string + KeypoolSize uint32 + Keypoololdest uint64 + Paytxfee float64 + Protocolversion uint32 + Proxy string + Relayfee float64 + Testnet bool + Timeoffset int32 + UnlockedUntil int64 + Version uint32 + Walletversion uint32 + type ListAddressResult struct + Account string + Address string + Amount float64 + type MiningInfo struct + Blocks uint64 + CurrentBlockTx uint64 + CurrentBlocksize uint64 + Difficulty float64 + Errors string + GenProcLimit int32 + Generate bool + HashesPersec uint64 + NetworkHashps uint64 + PooledtTx uint64 + Testnet bool + type Navcoind struct + func New(host string, port int, user, passwd string, useSSL, debug bool, ...) (*Navcoind, error) + func (b *Navcoind) BackupWallet(destination string) error + func (b *Navcoind) CfundStats() (cfundStats CFundStats, err error) + func (b *Navcoind) DumpPrivKey(address string) (privKey string, err error) + func (b *Navcoind) EncryptWallet(passphrase string) error + func (b *Navcoind) GetAccount(address string) (account string, err error) + func (b *Navcoind) GetAccountAddress(account string) (address string, err error) + func (b *Navcoind) GetAddressBalance(address string) (addresses *AddressBalance, err error) + func (b *Navcoind) GetAddressHistory(start, end *uint64, addresses ...string) (history []*AddressHistory, err error) + func (b *Navcoind) GetAddressTxids(start, end *uint64, addresses ...string) (txids AddressTxids, err error) + func (b *Navcoind) GetAddressesByAccount(account string) (addresses []string, err error) + func (b *Navcoind) GetBalance(account string, minconf uint64) (balance float64, err error) + func (b *Navcoind) GetBestBlockhash() (bestBlockHash string, err error) + func (b *Navcoind) GetBlock(blockHash string) (block Block, err error) + func (b *Navcoind) GetBlockCount() (count uint64, err error) + func (b *Navcoind) GetBlockHash(index uint64) (hash string, err error) + func (b *Navcoind) GetBlockTemplate(capabilities []string, mode string) (template string, err error) + func (b *Navcoind) GetBlockchainInfo() (i BlockchainInfo, err error) + func (b *Navcoind) GetBlockheader(blockHash string) (*BlockHeader, error) + func (b *Navcoind) GetChainTips() (tips []ChainTip, err error) + func (b *Navcoind) GetConnectionCount() (count uint64, err error) + func (b *Navcoind) GetConsensusParameters(extended bool) (consensusParameters []ConsensusParameter, err error) + func (b *Navcoind) GetConsultation(hash string) (Consultation, error) + func (b *Navcoind) GetDifficulty() (difficulty float64, err error) + func (b *Navcoind) GetGenerate() (generate bool, err error) + func (b *Navcoind) GetHashesPerSec() (hashpersec float64, err error) + func (b *Navcoind) GetInfo() (i Info, err error) + func (b *Navcoind) GetMiningInfo() (miningInfo MiningInfo, err error) + func (b *Navcoind) GetNewAddress(account ...string) (addr string, err error) + func (b *Navcoind) GetPaymentRequest(hash string) (paymentRequest PaymentRequest, err error) + func (b *Navcoind) GetPeerInfo() (peerInfo []Peer, err error) + func (b *Navcoind) GetProposal(hash string) (proposal Proposal, err error) + func (b *Navcoind) GetRawBlock(blockHash string) (str string, err error) + func (b *Navcoind) GetRawChangeAddress(account ...string) (rawAddress string, err error) + func (b *Navcoind) GetRawMempool() (txId []string, err error) + func (b *Navcoind) GetRawMempoolVerbose() (txs map[string]VerboseTx, err error) + func (b *Navcoind) GetRawTransaction(txId string, verbose bool) (rawTx interface{}, err error) + func (b *Navcoind) GetReceivedByAccount(account string, minconf uint32) (amount float64, err error) + func (b *Navcoind) GetReceivedByAddress(address string, minconf uint32) (amount float64, err error) + func (b *Navcoind) GetTransaction(txid string) (transaction Transaction, err error) + func (b *Navcoind) GetTxOut(txid string, n uint32, includeMempool bool) (transactionOut UTransactionOut, err error) + func (b *Navcoind) GetTxOutsetInfo() (txOutSet TransactionOutSet, err error) + func (b *Navcoind) GetWork(data ...string) (response interface{}, err error) + func (b *Navcoind) ImportPrivKey(privKey, label string, rescan bool) error + func (b *Navcoind) KeyPoolRefill() error + func (b *Navcoind) ListAccounts(minconf int32) (accounts map[string]float64, err error) + func (b *Navcoind) ListAddressGroupings() (list []ListAddressResult, err error) + func (b *Navcoind) ListLockUnspent() (unspendableOutputs []UnspendableOutput, err error) + func (b *Navcoind) ListReceivedByAccount(minConf uint32, includeEmpty bool) (list []ReceivedByAccount, err error) + func (b *Navcoind) ListReceivedByAddress(minConf uint32, includeEmpty bool) (list []ReceivedByAddress, err error) + func (b *Navcoind) ListSinceBlock(blockHash string, targetConfirmations uint32) (transaction []Transaction, err error) + func (b *Navcoind) ListTransactions(account string, count, from uint32) (transaction []Transaction, err error) + func (b *Navcoind) ListUnspent(minconf, maxconf uint32) (transactions []Transaction, err error) + func (b *Navcoind) LockUnspent(lock bool, outputs []UnspendableOutput) (success bool, err error) + func (b *Navcoind) Move(formAccount, toAccount string, amount float64, minconf uint32, comment string) (success bool, err error) + func (b *Navcoind) SendFrom(fromAccount, toAddress string, amount float64, minconf uint32, ...) (txID string, err error) + func (b *Navcoind) SendMany(fromAccount string, amounts map[string]float64, minconf uint32, comment string) (txID string, err error) + func (b *Navcoind) SendToAddress(toAddress string, amount float64, comment, commentTo string) (txID string, err error) + func (b *Navcoind) SetAccount(address, account string) error + func (b *Navcoind) SetGenerate(generate bool, genProcLimit int32) error + func (b *Navcoind) SetTxFee(amount float64) error + func (b *Navcoind) SignMessage(address, message string) (sig string, err error) + func (b *Navcoind) Stop() error + func (b *Navcoind) ValidateAddress(address string) (va ValidateAddressResponse, err error) + func (b *Navcoind) VerifyMessage(address, sign, message string) (success bool, err error) + func (b *Navcoind) WalletLock() error + func (b *Navcoind) WalletPassphrase(passPhrase string, timeout uint64) error + func (b *Navcoind) WalletPassphraseChange(oldPassphrase, newPassprhase string) error + type PaymentRequest struct + BlockHash string + Description string + Hash string + PaidOnBlock string + ProposalHash string + RequestedAmount string + State uint + StateChangedOnBlock string + Status string + Version uint32 + VotesAbs uint + VotesNo uint + VotesYes uint + VotingCycle uint + type Peer struct + Addr string + Addrlocal string + Banscore int32 + Bytesrecv uint64 + Bytessent uint64 + Conntime uint64 + Inbound bool + Lastrecv uint64 + Lastsend uint64 + Pingtime float64 + Pingwait float64 + Services string + Startingheight int32 + Subver string + Syncnode bool + Version uint32 + type Proposal struct + BlockHash string + Description string + ExpiresOn uint64 + Hash string + NotPaidYet string + NotRequestedYet string + PaymentAddress string + PaymentRequests []PaymentRequest + ProposalDuration uint64 + RequestedAmount string + State uint + StateChangedOnBlock string + Status string + UserPaidFee string + Version uint32 + VotesAbs uint + VotesNo uint + VotesYes uint + VotingCycle uint + type RPCError struct + Code RPCErrorCode + Message string + func (e RPCError) Error() string + type RPCErrorCode int + type RawTransaction struct + AnonDestination string + BlockHash string + BlockTime int64 + Confirmations uint64 + Hash string + Height uint64 + Hex string + LockTime uint32 + Size uint64 + Strdzeel string + Time int64 + Txid string + VSize uint64 + VchBalanceSig string + VchTxSig string + Version uint32 + Vin []Vin + Vout []Vout + type ReceivedByAccount struct + Account string + Amount float64 + Confirmations uint32 + type ReceivedByAddress struct + Account string + Address string + Amount float64 + Confirmations uint32 + TxIds []string + type ScriptPubKey struct + Addresses []string + Asm string + Hash string + Hex string + ReqSigs int + Type string + type ScriptSig struct + Asm string + Hex string + type SoftFork struct + Enforce struct{ ... } + Id string + Reject struct{ ... } + Version int + type Transaction struct + Account string + Address string + Amount float64 + BlockHash string + BlockIndex int64 + BlockTime int64 + Category string + Confirmations int64 + Details []TransactionDetails + Fee float64 + Hex string + Time int64 + TimeReceived int64 + TxID string + WalletConflicts []string + type TransactionDetails struct + Account string + Address string + Amount float64 + Category string + Fee float64 + type TransactionOutSet struct + Bestblock string + BytesSerialized float64 + HashSerialized string + Height uint32 + TotalAmount float64 + Transactions float64 + TxOuts float64 + type UTransactionOut struct + Bestblock string + Coinbase bool + Confirmations uint32 + ScriptPubKey ScriptPubKey + Value float64 + Version uint32 + type UnspendableOutput struct + TxId string + Vout uint64 + type ValidateAddressResponse struct + Account string + Address string + IsCompressed bool + IsMine bool + IsScript bool + IsValid bool + PubKey string + type VerboseTx struct + AncestorCount uint32 + AncestorFees uint32 + AncestorSize uint32 + Depends []string + DescendantCount uint32 + DescendantFees float64 + DescendantSize uint32 + Fee float64 + Height uint32 + ModifiedFee float64 + Size uint32 + SpentBy []string + Time uint32 + WTxId string + type Vin struct + Address string + Coinbase string + ScriptSig ScriptSig + Sequence uint32 + Txid string + Value float64 + ValueSat uint64 + Vout int + type Vout struct + EphemeralKey string + N int + OutputKey string + RangeProof bool + ScriptPubKey ScriptPubKey + SpendingKey string + SpentHeight int + SpentIndex int + SpentTxId string + Value float64 + ValueSat uint64 + type Work struct + Data string + Hash1 string + Midstate string + Target string