kmdgo: github.com/satindergrewal/kmdgo Index | Files | Directories

package kmdgo

import "github.com/satindergrewal/kmdgo"

Index

Package Files

blockchain.go cc_faucet.go cc_rogue.go cclib.go common.go control.go dex.go doc.go main.go mining.go network.go rawtransactions.go util.go wallet.go

Constants

const (
    CCLIB_METHOD   = `cclib`
    ROGUE_EVALCODE = `17`
)
const KMDGO_VERSION = `0.1.0`

type APIParams Uses

type APIParams []interface{}

type APIQuery Uses

type APIQuery struct {
    Method string `json:"method"`
    Params string `json:"params"`
}

type APIResult Uses

type APIResult struct {
    Result interface{} `json:"result"`
    Error  interface{} `json:"error"`
    ID     string      `json:"id"`
}

type AddMultiSigAddress Uses

type AddMultiSigAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type AddNode Uses

type AddNode struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type AppType Uses

type AppType string

func NewAppType Uses

func NewAppType(app AppType) *AppType

func (AppType) APICall Uses

func (appName AppType) APICall(q *APIQuery) string

APICall executes the blockchain RPC Calls and returns the data in JSON output. By default this API call tries to get the RPC information from the .conf file from the set blockchain's default directory on the system based on OS which is being executed on. If the local system doesn't has the blockchain running, you can also set this RPC settings in environment variables. The environment variable has to use the the combination of the appName + _RPCURL. Shell example: export komodo_RPCURL="http://192.168.1.1:" export komodo_RPCUSER="username" export komodo_RPCPASS="password" export komodo_RPCPORT="7771"

These environment variables can also be set within Go code. Example: os.Setenv("komodo" + "_RPCURL", `http://127.0.0.1:`) os.Setenv("komodo" + "_RPCUSER", `username`) os.Setenv("komodo" + "_RPCPASS", `password`) os.Setenv("komodo" + "_RPCPORT", `7771`)

As per this example, if for example using different SmartChain like "DEX", and the appName is set to example "DEX", just replace it word `komodo` with `DEX`.

func (AppType) AddMultiSigAddress Uses

func (appName AppType) AddMultiSigAddress(params APIParams) (AddMultiSigAddress, error)

func (AppType) AddNode Uses

func (appName AppType) AddNode(params APIParams) (AddNode, error)

func (AppType) BackupWallet Uses

func (appName AppType) BackupWallet(bkpwlt string) (BackupWallet, error)

func (AppType) CCLibAddress Uses

func (appName AppType) CCLibAddress(params APIParams) (CCLibAddress, error)

func (AppType) CCLibInfo Uses

func (appName AppType) CCLibInfo() (CCLibInfo, error)

func (AppType) ClearBanned Uses

func (appName AppType) ClearBanned() (ClearBanned, error)

func (AppType) CoinSupply Uses

func (appName AppType) CoinSupply(params APIParams) (CoinSupply, error)

func (AppType) CreateRawTransaction Uses

func (appName AppType) CreateRawTransaction(params APIParams) (CreateRawTransaction, error)

func (AppType) DEXAnonsend Uses

func (appName AppType) DEXAnonsend(params APIParams) (DEXAnonsend, error)

func (AppType) DEXBroadcast Uses

func (appName AppType) DEXBroadcast(params APIParams) (DEXBroadcast, error)

func (AppType) DEXCancel Uses

func (appName AppType) DEXCancel(params APIParams) (DEXCancel, error)

func (AppType) DEXGet Uses

func (appName AppType) DEXGet(params APIParams) (DEXGet, error)

func (AppType) DEXList Uses

func (appName AppType) DEXList(params APIParams) (DEXList, error)

func (AppType) DEXOrderbook Uses

func (appName AppType) DEXOrderbook(params APIParams) (DEXOrderbook, error)

func (AppType) DEXPublish Uses

func (appName AppType) DEXPublish(params APIParams) (DEXPublish, error)

DEXPublish method allows user to publish file to p2p network. By default it looks for the file in followin directories based on different OS: Linux: $HOME directory path = $HOME/dexp2p = example: /home/satinder Mac: $HOME directory path = $HOME/dexp2p = example: /Users/satinder Windows: %AppData% directory path = %AppData%\dexp2p = example: C:\Users\satinder\AppData\dexp2p

func (AppType) DEXSetPubKey Uses

func (appName AppType) DEXSetPubKey(params APIParams) (DEXSetPubKey, error)

DEXSetPubKey sets the public key for blockchain in case it is not started with already a pubkey with paramater `-pubkey=` at it's daemon start. This method will only set the public key once. Once set, and in case this pubkey needs to be changed, the daemon must be restarted. It is a pubkey value which is also displayed in output to method "validateaddress".

func (AppType) DEXStats Uses

func (appName AppType) DEXStats() (DEXStats, error)

DEXStats method gives info and stats related to the p2p data layer.

func (AppType) DecodeRawTransaction Uses

func (appName AppType) DecodeRawTransaction(params APIParams) (DecodeRawTransaction, error)

func (AppType) DecodeScript Uses

func (appName AppType) DecodeScript(params APIParams) (DecodeScript, error)

func (AppType) DisconnectNode Uses

func (appName AppType) DisconnectNode(node string) (DisconnectNode, error)

func (AppType) DumpPrivKey Uses

func (appName AppType) DumpPrivKey(taddr string) (DumpPrivKey, error)

func (AppType) DumpWallet Uses

func (appName AppType) DumpWallet(dmpwlt string) (DumpWallet, error)

func (AppType) EncryptWallet Uses

func (appName AppType) EncryptWallet(phrase string) (EncryptWallet, error)

func (AppType) FaucetAddress Uses

func (appName AppType) FaucetAddress(params APIParams) (FaucetAddress, error)

func (AppType) FaucetFund Uses

func (appName AppType) FaucetFund(params APIParams) (FaucetFund, error)

func (AppType) FaucetGet Uses

func (appName AppType) FaucetGet() (FaucetGet, error)

func (AppType) FaucetInfo Uses

func (appName AppType) FaucetInfo() (FaucetInfo, error)

func (AppType) FundRawTransaction Uses

func (appName AppType) FundRawTransaction(params APIParams) (FundRawTransaction, error)

func (AppType) GetAccount Uses

func (appName AppType) GetAccount(taddr string) (GetAccount, error)

func (AppType) GetAccountAddress Uses

func (appName AppType) GetAccountAddress(actname string) (GetAccountAddress, error)

func (AppType) GetAddedNodeInfo Uses

func (appName AppType) GetAddedNodeInfo(params APIParams) (GetAddedNodeInfo, error)

func (AppType) GetAddressesByAccount Uses

func (appName AppType) GetAddressesByAccount(actname string) (GetAddressesByAccount, error)

func (AppType) GetBalance Uses

func (appName AppType) GetBalance(params APIParams) (GetBalance, error)

func (AppType) GetBestBlockhash Uses

func (appName AppType) GetBestBlockhash() (GetBestBlockhash, error)

func (AppType) GetBlock Uses

func (appName AppType) GetBlock(params APIParams) (GetBlock, error)

func (AppType) GetBlockCount Uses

func (appName AppType) GetBlockCount() (GetBlockCount, error)

func (AppType) GetBlockHash Uses

func (appName AppType) GetBlockHash(h int) (GetBlockHash, error)

func (AppType) GetBlockHeader Uses

func (appName AppType) GetBlockHeader(params APIParams) (GetBlockHeader, error)

func (AppType) GetBlockSubsidy Uses

func (appName AppType) GetBlockSubsidy(params APIParams) (GetBlockSubsidy, error)

func (AppType) GetBlockTemplate Uses

func (appName AppType) GetBlockTemplate(params APIParams) (GetBlockTemplate, error)

func (AppType) GetBlockchainInfo Uses

func (appName AppType) GetBlockchainInfo() (GetBlockchainInfo, error)

func (AppType) GetChainTips Uses

func (appName AppType) GetChainTips() (GetChainTips, error)

func (AppType) GetConnectionCount Uses

func (appName AppType) GetConnectionCount() (GetConnectionCount, error)

func (AppType) GetDeprecationInfo Uses

func (appName AppType) GetDeprecationInfo() (GetDeprecationInfo, error)

func (AppType) GetDifficulty Uses

func (appName AppType) GetDifficulty() (GetDifficulty, error)

func (AppType) GetInfo Uses

func (appName AppType) GetInfo() (GetInfo, error)

func (AppType) GetLocalSolps Uses

func (appName AppType) GetLocalSolps() (GetLocalSolps, error)

func (AppType) GetMempoolInfo Uses

func (appName AppType) GetMempoolInfo() (GetMempoolInfo, error)

func (AppType) GetMiningInfo Uses

func (appName AppType) GetMiningInfo() (GetMiningInfo, error)

func (AppType) GetNetTotals Uses

func (appName AppType) GetNetTotals() (GetNetTotals, error)

func (AppType) GetNetworkHashps Uses

func (appName AppType) GetNetworkHashps(params APIParams) (GetNetworkHashps, error)

func (AppType) GetNetworkInfo Uses

func (appName AppType) GetNetworkInfo() (GetNetworkInfo, error)

func (AppType) GetNetworkSolps Uses

func (appName AppType) GetNetworkSolps(params APIParams) (GetNetworkSolps, error)

func (AppType) GetNewAddress Uses

func (appName AppType) GetNewAddress() (GetNewAddress, error)

func (AppType) GetPeerInfo Uses

func (appName AppType) GetPeerInfo() (GetPeerInfo, error)

func (AppType) GetRawChangeAddress Uses

func (appName AppType) GetRawChangeAddress() (GetRawChangeAddress, error)

func (AppType) GetRawMempoolFalse Uses

func (appName AppType) GetRawMempoolFalse(b bool) (GetRawMempoolFalse, error)

func (AppType) GetRawMempoolTrue Uses

func (appName AppType) GetRawMempoolTrue(b bool) (GetRawMempoolTrue, error)

func (AppType) GetRawTransaction Uses

func (appName AppType) GetRawTransaction(params APIParams) (GetRawTransaction, error)

func (AppType) GetRawTransactionDetailed Uses

func (appName AppType) GetRawTransactionDetailed(params APIParams) (GetRawTransactionDetailed, error)

func (AppType) GetReceivedByAccount Uses

func (appName AppType) GetReceivedByAccount(params APIParams) (GetReceivedByAccount, error)

func (AppType) GetReceivedByAddress Uses

func (appName AppType) GetReceivedByAddress(params APIParams) (GetReceivedByAddress, error)

func (AppType) GetTransaction Uses

func (appName AppType) GetTransaction(params APIParams) (GetTransaction, error)

func (AppType) GetTxOut Uses

func (appName AppType) GetTxOut(params APIParams) (GetTxOut, error)

func (AppType) GetTxOutProof Uses

func (appName AppType) GetTxOutProof(txids string) (GetTxOutProof, error)

func (AppType) GetTxOutSetInfo Uses

func (appName AppType) GetTxOutSetInfo() (GetTxOutSetInfo, error)

func (AppType) GetUnconfirmedBalance Uses

func (appName AppType) GetUnconfirmedBalance() (GetUnconfirmedBalance, error)

func (AppType) GetWalletInfo Uses

func (appName AppType) GetWalletInfo() (GetWalletInfo, error)

func (AppType) ImportAddress Uses

func (appName AppType) ImportAddress(params APIParams) (ImportAddress, error)

func (AppType) ImportPrivKey Uses

func (appName AppType) ImportPrivKey(params APIParams) (ImportPrivKey, error)

func (AppType) ImportWallet Uses

func (appName AppType) ImportWallet(wltpth string) (ImportWallet, error)

func (AppType) KeyPoolRefill Uses

func (appName AppType) KeyPoolRefill(params APIParams) (KeyPoolRefill, error)

func (AppType) ListAccounts Uses

func (appName AppType) ListAccounts(params APIParams) (ListAccounts, error)

func (AppType) ListAddressGroupings Uses

func (appName AppType) ListAddressGroupings() (ListAddressGroupings, error)

func (AppType) ListBanned Uses

func (appName AppType) ListBanned() (ListBanned, error)

func (AppType) ListLockUnspent Uses

func (appName AppType) ListLockUnspent() (ListLockUnspent, error)

func (AppType) ListReceivedByAddress Uses

func (appName AppType) ListReceivedByAddress(params APIParams) (ListReceivedByAddress, error)

func (AppType) ListSinceBlock Uses

func (appName AppType) ListSinceBlock(params APIParams) (ListSinceBlock, error)

func (AppType) ListTransactions Uses

func (appName AppType) ListTransactions(params APIParams) (ListTransactions, error)

func (AppType) ListUnspent Uses

func (appName AppType) ListUnspent(params APIParams) (ListUnspent, error)

func (AppType) LockUnspent Uses

func (appName AppType) LockUnspent(params APIParams) (LockUnspent, error)

func (AppType) MinerIDs Uses

func (appName AppType) MinerIDs(ht string) (MinerIDs, error)

func (AppType) Notaries Uses

func (appName AppType) Notaries(ht string) (Notaries, error)

func (AppType) Ping Uses

func (appName AppType) Ping() (Ping, error)

func (AppType) PrioritiseTransaction Uses

func (appName AppType) PrioritiseTransaction(params APIParams) (PrioritiseTransaction, error)

func (AppType) RGBailout Uses

func (appName AppType) RGBailout(params APIParams) (RGBailout, error)

func (AppType) RGGameInfo Uses

func (appName AppType) RGGameInfo(params APIParams) (RGGameInfo, error)

func (AppType) RGGames Uses

func (appName AppType) RGGames() (RGGames, error)

func (AppType) RGHighLander Uses

func (appName AppType) RGHighLander(params APIParams) (RGHighLander, error)

func (AppType) RGNewGame Uses

func (appName AppType) RGNewGame(params APIParams) (RGNewGame, error)

Method: newgame Params: maxplayers buyin Params Required: 0 Max Parameters 2

Example command

./komodo-cli -ac_name=ROGUE cclib newgame 17 \"[3,10]\"

Explanation

cclib: API call method.

newgame: Crypto-Conditions (CC) specific method. You can see all available methods via cclib with following command

./komodo-cli -ac_name=ROGUE cclibinfo

17: Evalcode for this CC method

Array value 3: value of `maxplayers`. The maximum players that can participate in this game.

Array value 10: value of `buyin`. Each new player participating in this game need to put 10 ROGUE coins to participate.

The winner will be the player who will be last standing, i.e. not killed, while others are killed.

And this winner takes all the buyin total of 3 players, which is equals to 30 ROGUE, also the GOLD converted to ROGUE from all these players.

func (AppType) RGPending Uses

func (appName AppType) RGPending() (RGPending, error)

func (AppType) RGPlayerInfo Uses

func (appName AppType) RGPlayerInfo(params APIParams) (RGPlayerInfo, error)

func (AppType) RGPlayers Uses

func (appName AppType) RGPlayers() (RGPlayers, error)

func (AppType) RGRegister Uses

func (appName AppType) RGRegister(params APIParams) (RGRegister, error)

func (AppType) RGSetName Uses

func (appName AppType) RGSetName(params APIParams) (RGSetName, error)

func (AppType) SendFrom Uses

func (appName AppType) SendFrom(params APIParams) (SendFrom, error)

func (AppType) SendMany Uses

func (appName AppType) SendMany(params APIParams) (SendMany, error)

func (AppType) SendRawTransaction Uses

func (appName AppType) SendRawTransaction(params APIParams) (SendRawTransaction, error)

func (AppType) SendToAddress Uses

func (appName AppType) SendToAddress(params APIParams) (SendToAddress, error)

func (AppType) SetBan Uses

func (appName AppType) SetBan(params APIParams) (SetBan, error)

func (AppType) SetPubKey Uses

func (appName AppType) SetPubKey(pubkey string) (SetPubKey, error)

func (AppType) SetTxFee Uses

func (appName AppType) SetTxFee(amount float64) (SetTxFee, error)

func (AppType) SignMessage Uses

func (appName AppType) SignMessage(params APIParams) (SignMessage, error)

func (AppType) SignRawTransaction Uses

func (appName AppType) SignRawTransaction(params APIParams) (SignRawTransaction, error)

func (AppType) Stop Uses

func (appName AppType) Stop() (Stop, error)

func (AppType) SubmitBlock Uses

func (appName AppType) SubmitBlock(params APIParams) (SubmitBlock, error)

func (AppType) ValidateAddress Uses

func (appName AppType) ValidateAddress(taddr string) (ValidateAddress, error)

func (AppType) VerifyChain Uses

func (appName AppType) VerifyChain(params APIParams) (VerifyChain, error)

func (AppType) VerifyMessage Uses

func (appName AppType) VerifyMessage(params APIParams) (VerifyMessage, error)

func (AppType) VerifyTxOutProof Uses

func (appName AppType) VerifyTxOutProof(pf string) (VerifyTxOutProof, error)

func (AppType) WalletLock Uses

func (appName AppType) WalletLock() (WalletLock, error)

func (AppType) WalletPassPhrase Uses

func (appName AppType) WalletPassPhrase(params APIParams) (WalletPassPhrase, error)

func (AppType) WalletPassPhrasechangeChange Uses

func (appName AppType) WalletPassPhrasechangeChange(params APIParams) (WalletPassPhrasechangeChange, error)

func (AppType) ZExportKey Uses

func (appName AppType) ZExportKey(zaddr string) (ZExportKey, error)

func (AppType) ZExportViewingKey Uses

func (appName AppType) ZExportViewingKey(zaddr string) (ZExportViewingKey, error)

func (AppType) ZExportWallet Uses

func (appName AppType) ZExportWallet(wltfile string) (ZExportWallet, error)

func (AppType) ZGetBalance Uses

func (appName AppType) ZGetBalance(params APIParams) (ZGetBalance, error)

func (AppType) ZGetNewAddress Uses

func (appName AppType) ZGetNewAddress(tp string) (ZGetNewAddress, error)

func (AppType) ZGetOperationResult Uses

func (appName AppType) ZGetOperationResult(params APIParams) (ZGetOperationResult, error)

func (AppType) ZGetOperationStatus Uses

func (appName AppType) ZGetOperationStatus(params APIParams) (ZGetOperationStatus, error)

func (AppType) ZGetTotalBalance Uses

func (appName AppType) ZGetTotalBalance(params APIParams) (ZGetTotalBalance, error)

func (AppType) ZImportKey Uses

func (appName AppType) ZImportKey(params APIParams) (ZImportKey, error)

func (AppType) ZImportViewingKey Uses

func (appName AppType) ZImportViewingKey(params APIParams) (ZImportViewingKey, error)

func (AppType) ZImportWallet Uses

func (appName AppType) ZImportWallet(wltfile string) (ZImportWallet, error)

func (AppType) ZListAddresses Uses

func (appName AppType) ZListAddresses(params APIParams) (ZListAddresses, error)

func (AppType) ZListOperationIDs Uses

func (appName AppType) ZListOperationIDs(params APIParams) (ZListOperationIDs, error)

func (AppType) ZListReceivedByAddress Uses

func (appName AppType) ZListReceivedByAddress(params APIParams) (ZListReceivedByAddress, error)

func (AppType) ZListUnspent Uses

func (appName AppType) ZListUnspent(params APIParams) (ZListUnspent, error)

func (AppType) ZMergeToAddress Uses

func (appName AppType) ZMergeToAddress(params APIParams) (ZMergeToAddress, error)

func (AppType) ZSendMany Uses

func (appName AppType) ZSendMany(params APIParams) (ZSendMany, error)

func (AppType) ZShieldCoinbase Uses

func (appName AppType) ZShieldCoinbase(params APIParams) (ZShieldCoinbase, error)

func (AppType) ZValidateAddress Uses

func (appName AppType) ZValidateAddress(zaddr string) (ZValidateAddress, error)

type BackupWallet Uses

type BackupWallet struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type CCLibAddress Uses

type CCLibAddress struct {
    Result struct {
        Result               string  `json:"result"`
        CClibCCAddress       string  `json:"CClibCCAddress"`
        CCbalance            float64 `json:"CCbalance"`
        CClibNormalAddress   string  `json:"CClibNormalAddress"`
        CClibCCTokensAddress string  `json:"CClibCCTokensAddress"`
        MyAddress            string  `json:"myAddress"`
        MyCCAddressCClib     string  `json:"myCCAddress(CClib)"`
        MyCCaddress          string  `json:"myCCaddress"`
        MyCCbalance          float64 `json:"myCCbalance"`
        Myaddress            string  `json:"myaddress"`
        Mybalance            float64 `json:"mybalance"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type CCLibInfo Uses

type CCLibInfo struct {
    Result struct {
        Result  string `json:"result"`
        CClib   string `json:"CClib"`
        Methods []struct {
            Evalcode       int    `json:"evalcode"`
            Funcid         string `json:"funcid"`
            Name           string `json:"name"`
            Method         string `json:"method"`
            Help           string `json:"help"`
            ParamsRequired int    `json:"params_required"`
            ParamsMax      int    `json:"params_max"`
        }   `json:"methods"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ClearBanned Uses

type ClearBanned struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type CoinSupply Uses

type CoinSupply struct {
    Result struct {
        Result string  `json:"result"`
        Coin   string  `json:"coin"`
        Height int     `json:"height"`
        Supply float64 `json:"supply"`
        Zfunds float64 `json:"zfunds"`
        Sprout float64 `json:"sprout"`
        Total  float64 `json:"total"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type CreateRawTransaction Uses

type CreateRawTransaction struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type DEXAnonsend Uses

type DEXAnonsend struct {
    Result struct {
        Timestamp    int    `json:"timestamp"`
        ID           int    `json:"id"`
        Hash         string `json:"hash"`
        TagA         string `json:"tagA"`
        TagB         string `json:"tagB"`
        Pubkey       string `json:"pubkey"`
        Payload      string `json:"payload"`
        Hex          int    `json:"hex"`
        Decrypted    string `json:"decrypted"`
        Decryptedhex int    `json:"decryptedhex"`
        Senderpub    string `json:"senderpub"`
        AmountA      string `json:"amountA"`
        AmountB      string `json:"amountB"`
        Priority     int    `json:"priority"`
        Recvtime     int    `json:"recvtime"`
        Cancelled    int    `json:"cancelled"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXBroadcast Uses

type DEXBroadcast struct {
    Result struct {
        Timestamp    int    `json:"timestamp"`
        ID           int    `json:"id"`
        Hash         string `json:"hash"`
        TagA         string `json:"tagA"`
        TagB         string `json:"tagB"`
        Pubkey       string `json:"pubkey"`
        Payload      string `json:"payload"`
        Hex          int    `json:"hex"`
        Decrypted    string `json:"decrypted"`
        Decryptedhex int    `json:"decryptedhex"`
        Senderpub    string `json:"senderpub"`
        AmountA      string `json:"amountA"`
        AmountB      string `json:"amountB"`
        Priority     int    `json:"priority"`
        Recvtime     int    `json:"recvtime"`
        Cancelled    int    `json:"cancelled"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXCancel Uses

type DEXCancel struct {
    Result struct {
        Timestamp    int    `json:"timestamp"`
        ID           int    `json:"id"`
        Hash         string `json:"hash"`
        TagA         string `json:"tagA"`
        TagB         string `json:"tagB"`
        Pubkey       string `json:"pubkey"`
        Payload      string `json:"payload"`
        Hex          int    `json:"hex"`
        Decrypted    string `json:"decrypted"`
        Decryptedhex int    `json:"decryptedhex"`
        AmountA      string `json:"amountA"`
        AmountB      string `json:"amountB"`
        Priority     int    `json:"priority"`
        Recvtime     int    `json:"recvtime"`
        Cancelled    int    `json:"cancelled"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXGet Uses

type DEXGet struct {
    Result struct {
        Timestamp    int    `json:"timestamp"`
        ID           int    `json:"id"`
        Hash         string `json:"hash"`
        TagA         string `json:"tagA"`
        TagB         string `json:"tagB"`
        Pubkey       string `json:"pubkey"`
        Payload      string `json:"payload"`
        Hex          int    `json:"hex"`
        Decrypted    string `json:"decrypted"`
        Decryptedhex int    `json:"decryptedhex"`
        Senderpub    string `json:"senderpub"`
        AmountA      string `json:"amountA"`
        AmountB      string `json:"amountB"`
        Priority     int    `json:"priority"`
        Recvtime     int    `json:"recvtime"`
        Cancelled    int    `json:"cancelled"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXList Uses

type DEXList struct {
    Result struct {
        Result  string `json:"result"`
        Matches []struct {
            Timestamp    int    `json:"timestamp"`
            ID           int64  `json:"id"`
            Hash         string `json:"hash"`
            TagA         string `json:"tagA"`
            TagB         string `json:"tagB"`
            Pubkey       string `json:"pubkey"`
            Payload      string `json:"payload"`
            Hex          int    `json:"hex"`
            Decrypted    string `json:"decrypted"`
            Decryptedhex int    `json:"decryptedhex"`
            Senderpub    string `json:"senderpub"`
            Error        string `json:"error"`
            AmountA      string `json:"amountA"`
            AmountB      string `json:"amountB"`
            Priority     int    `json:"priority"`
            Recvtime     int    `json:"recvtime"`
            Cancelled    int    `json:"cancelled"`
        }   `json:"matches"`
        TagA   string `json:"tagA"`
        TagB   string `json:"tagB"`
        Pubkey string `json:"pubkey"`
        N      int    `json:"n"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXOrderbook Uses

type DEXOrderbook struct {
    Result struct {
        Asks []struct {
            Price      string `json:"price"`
            Baseamount string `json:"baseamount"`
            Relamount  string `json:"relamount"`
            Priority   int    `json:"priority"`
            Pubkey     string `json:"pubkey"`
            Timestamp  int    `json:"timestamp"`
            Hash       string `json:"hash"`
            ID         int64  `json:"id"`
        }   `json:"asks"`
        Bids []struct {
            Price      string `json:"price"`
            Baseamount string `json:"baseamount"`
            Relamount  string `json:"relamount"`
            Priority   int    `json:"priority"`
            Pubkey     string `json:"pubkey"`
            Timestamp  int    `json:"timestamp"`
            Hash       string `json:"hash"`
            ID         int64  `json:"id"`
        }   `json:"bids"`
        Base string `json:"base"`
        Rel  string `json:"rel"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXPublish Uses

type DEXPublish struct {
    Result struct {
        Fname       string `json:"fname"`
        ID          int    `json:"id"`
        Senderpub   string `json:"senderpub"`
        Filesize    int    `json:"filesize"`
        Fragments   int    `json:"fragments"`
        Numlocators int    `json:"numlocators"`
        Filehash    string `json:"filehash"`
        Checkhash   string `json:"checkhash"`
        Result      string `json:"result"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXSetPubKey Uses

type DEXSetPubKey struct {
    Result struct {
        Result            string `json:"result"`
        PublishablePubkey string `json:"publishable_pubkey"`
        Secpkey           string `json:"secpkey"`
        Recvaddr          string `json:"recvaddr"`
        RecvZaddr         string `json:"recvZaddr"`
        Handle            string `json:"handle"`
        Txpowbits         int    `json:"txpowbits"`
        Vip               int    `json:"vip"`
        Cmdpriority       int    `json:"cmdpriority"`
        Perfstats         string `json:"perfstats"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DEXStats Uses

type DEXStats struct {
    Result struct {
        Result            string `json:"result"`
        PublishablePubkey string `json:"publishable_pubkey"`
        Secpkey           string `json:"secpkey"`
        Recvaddr          string `json:"recvaddr"`
        RecvZaddr         string `json:"recvZaddr"`
        Handle            string `json:"handle"`
        Txpowbits         int    `json:"txpowbits"`
        Vip               int    `json:"vip"`
        Cmdpriority       int    `json:"cmdpriority"`
        Progress          int    `json:"progress"`
        Perfstats         string `json:"perfstats"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DecodeRawTransaction Uses

type DecodeRawTransaction struct {
    Result struct {
        Txid     string `json:"txid"`
        Size     int    `json:"size"`
        Version  int    `json:"version"`
        Locktime int    `json:"locktime"`
        Vin      []struct {
            Txid      string `json:"txid"`
            Vout      int    `json:"vout"`
            ScriptSig struct {
                Asm string `json:"asm"`
                Hex string `json:"hex"`
            }   `json:"scriptSig"`
            Sequence int64 `json:"sequence"`
        }   `json:"vin"`
        Vout []struct {
            Value        float64 `json:"value"`
            ValueSat     int     `json:"valueSat"`
            N            int     `json:"n"`
            ScriptPubKey struct {
                Asm       string   `json:"asm"`
                Hex       string   `json:"hex"`
                ReqSigs   int      `json:"reqSigs"`
                Type      string   `json:"type"`
                Addresses []string `json:"addresses"`
            }   `json:"scriptPubKey"`
        }   `json:"vout"`
        Vjoinsplit []interface{} `json:"vjoinsplit"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DecodeScript Uses

type DecodeScript struct {
    Result struct {
        Asm  string `json:"asm"`
        Type string `json:"type"`
        P2Sh string `json:"p2sh"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type DisconnectNode Uses

type DisconnectNode struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type DumpPrivKey Uses

type DumpPrivKey struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type DumpWallet Uses

type DumpWallet struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type EncryptWallet Uses

type EncryptWallet struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type Error Uses

type Error struct {
    Code    int    `json:"code"`
    Message string `json:"message"`
}

type FaucetAddress Uses

type FaucetAddress struct {
    Result struct {
        Result          string `json:"result"`
        FaucetCCaddress string `json:"FaucetCCaddress"`
        Faucetmarker    string `json:"Faucetmarker"`
        GatewaysPubkey  string `json:"GatewaysPubkey"`
        FaucetCCassets  string `json:"FaucetCCassets"`
        MyCCaddress     string `json:"myCCaddress"`
        Myaddress       string `json:"myaddress"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type FaucetFund Uses

type FaucetFund struct {
    Result struct {
        Result string `json:"result"`
        Hex    string `json:"hex"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

This should have been a `int` value or `float64` value. But since the API only accepts string, for now this is input as string.

type FaucetGet Uses

type FaucetGet struct {
    Result struct {
        Result string `json:"result"`
        Hex    string `json:"hex"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type FaucetInfo Uses

type FaucetInfo struct {
    Result struct {
        Result  string `json:"result"`
        Name    string `json:"name"`
        Funding string `json:"funding"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

This should have been a `int` value or `float64` value. But since the API only accepts string, for now this is input as string.

type FundRawTransaction Uses

type FundRawTransaction struct {
    Result struct {
        Hex       string  `json:"hex"`
        Changepos int     `json:"changepos"`
        Fee       float64 `json:"fee"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetAccount Uses

type GetAccount struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetAccountAddress Uses

type GetAccountAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetAddedNodeInfo Uses

type GetAddedNodeInfo struct {
    Result []struct {
        Addednode string `json:"addednode"`
        Connected bool   `json:"connected"`
        Addresses []struct {
            Address   string `json:"address"`
            Connected string `json:"connected"`
        }   `json:"addresses"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetAddressesByAccount Uses

type GetAddressesByAccount struct {
    Result []string `json:"result"`
    Error  Error    `json:"error"`
    ID     string   `json:"id"`
}

type GetBalance Uses

type GetBalance struct {
    Result int64  `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetBestBlockhash Uses

type GetBestBlockhash struct {
    Result interface{} `json:"result"`
    Error  Error       `json:"error"`
    ID     string      `json:"id"`
}

type GetBlock Uses

type GetBlock struct {
    Result struct {
        Hash             string `json:"hash"`
        Confirmations    int    `json:"confirmations"`
        Rawconfirmations int    `json:"rawconfirmations"`
        Size             int    `json:"size"`
        Height           int    `json:"height"`
        Version          int    `json:"version"`
        Merkleroot       string `json:"merkleroot"`
        Segid            int    `json:"segid"`
        Finalsaplingroot string `json:"finalsaplingroot"`
        Tx               []struct {
            Txid         string `json:"txid"`
            Overwintered bool   `json:"overwintered"`
            Version      int    `json:"version"`
            Locktime     int    `json:"locktime"`
            Vin          []struct {
                Coinbase string `json:"coinbase"`
                Sequence int64  `json:"sequence"`
            }   `json:"vin"`
            Vout []struct {
                Value        float64 `json:"value"`
                ValueZat     int     `json:"valueZat"`
                N            int     `json:"n"`
                ScriptPubKey struct {
                    Asm       string   `json:"asm"`
                    Hex       string   `json:"hex"`
                    ReqSigs   int      `json:"reqSigs"`
                    Type      string   `json:"type"`
                    Addresses []string `json:"addresses"`
                }   `json:"scriptPubKey"`
            }   `json:"vout"`
            Vjoinsplit []interface{} `json:"vjoinsplit"`
        }   `json:"tx"`
        Time       int    `json:"time"`
        Nonce      string `json:"nonce"`
        Solution   string `json:"solution"`
        Bits       string `json:"bits"`
        Difficulty int    `json:"difficulty"`
        Chainwork  string `json:"chainwork"`
        Anchor     string `json:"anchor"`
        Blocktype  string `json:"blocktype"`
        ValuePools []struct {
            ID            string  `json:"id"`
            Monitored     bool    `json:"monitored"`
            ChainValue    float64 `json:"chainValue"`
            ChainValueZat int     `json:"chainValueZat"`
            ValueDelta    float64 `json:"valueDelta"`
            ValueDeltaZat int     `json:"valueDeltaZat"`
        }   `json:"valuePools"`
        Previousblockhash string `json:"previousblockhash"`
        Nextblockhash     string `json:"nextblockhash"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetBlockCount Uses

type GetBlockCount struct {
    Result int64  `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetBlockHash Uses

type GetBlockHash struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetBlockHeader Uses

type GetBlockHeader struct {
    Result struct {
        Hash              string  `json:"hash"`
        Confirmations     int     `json:"confirmations"`
        Rawconfirmations  int     `json:"rawconfirmations"`
        Height            int     `json:"height"`
        Version           int     `json:"version"`
        Merkleroot        string  `json:"merkleroot"`
        Finalsaplingroot  string  `json:"finalsaplingroot"`
        Time              int     `json:"time"`
        Nonce             string  `json:"nonce"`
        Solution          string  `json:"solution"`
        Bits              string  `json:"bits"`
        Difficulty        float64 `json:"difficulty"`
        Chainwork         string  `json:"chainwork"`
        Segid             int     `json:"segid"`
        Previousblockhash string  `json:"previousblockhash"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetBlockSubsidy Uses

type GetBlockSubsidy struct {
    Result struct {
        Miner float64 `json:"miner"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetBlockTemplate Uses

type GetBlockTemplate struct {
    Result struct {
        Capabilities      []string `json:"capabilities"`
        Version           int      `json:"version"`
        Previousblockhash string   `json:"previousblockhash"`
        Transactions      []struct {
            Data    string        `json:"data"`
            Hash    string        `json:"hash"`
            Depends []interface{} `json:"depends"`
            Fee     int           `json:"fee"`
            Sigops  int           `json:"sigops"`
        }   `json:"transactions"`
        Coinbasetxn struct {
            Data          string        `json:"data"`
            Hash          string        `json:"hash"`
            Depends       []interface{} `json:"depends"`
            Fee           int           `json:"fee"`
            Sigops        int           `json:"sigops"`
            Coinbasevalue int           `json:"coinbasevalue"`
            Required      bool          `json:"required"`
        }   `json:"coinbasetxn"`
        Longpollid string   `json:"longpollid"`
        Target     string   `json:"target"`
        Mintime    int      `json:"mintime"`
        Mutable    []string `json:"mutable"`
        Noncerange string   `json:"noncerange"`
        Sigoplimit int      `json:"sigoplimit"`
        Sizelimit  int      `json:"sizelimit"`
        Curtime    int      `json:"curtime"`
        Bits       string   `json:"bits"`
        Height     int      `json:"height"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetBlockchainInfo Uses

type GetBlockchainInfo struct {
    Result struct {
        Chain                string  `json:"chain"`
        Blocks               int     `json:"blocks"`
        Headers              int     `json:"headers"`
        Bestblockhash        string  `json:"bestblockhash"`
        Difficulty           float64 `json:"difficulty"`
        Verificationprogress float64 `json:"verificationprogress"`
        Chainwork            string  `json:"chainwork"`
        Pruned               bool    `json:"pruned"`
        Commitments          int     `json:"commitments"`
        ValuePools           []struct {
            ID            string  `json:"id"`
            Monitored     bool    `json:"monitored"`
            ChainValue    float64 `json:"chainValue"`
            ChainValueZat int64   `json:"chainValueZat"`
        }   `json:"valuePools"`
        Softforks []struct {
            ID      string `json:"id"`
            Version int    `json:"version"`
            Enforce struct {
                Status   bool `json:"status"`
                Found    int  `json:"found"`
                Required int  `json:"required"`
                Window   int  `json:"window"`
            }   `json:"enforce"`
            Reject struct {
                Status   bool `json:"status"`
                Found    int  `json:"found"`
                Required int  `json:"required"`
                Window   int  `json:"window"`
            }   `json:"reject"`
        }   `json:"softforks"`
        Upgrades struct {
            FiveBa81B19 struct {
                Name             string `json:"name"`
                Activationheight int    `json:"activationheight"`
                Status           string `json:"status"`
                Info             string `json:"info"`
            }   `json:"5ba81b19"`
            Seven6B809Bb struct {
                Name             string `json:"name"`
                Activationheight int    `json:"activationheight"`
                Status           string `json:"status"`
                Info             string `json:"info"`
            }   `json:"76b809bb"`
        }   `json:"upgrades"`
        Consensus struct {
            Chaintip  string `json:"chaintip"`
            Nextblock string `json:"nextblock"`
        }   `json:"consensus"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetChainTips Uses

type GetChainTips struct {
    Result []struct {
        Height    int    `json:"height"`
        Hash      string `json:"hash"`
        Branchlen int    `json:"branchlen"`
        Status    string `json:"status"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetConnectionCount Uses

type GetConnectionCount struct {
    Result int    `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetDeprecationInfo Uses

type GetDeprecationInfo struct {
    Result struct {
        Version           int    `json:"version"`
        Subversion        string `json:"subversion"`
        Deprecationheight int    `json:"deprecationheight"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetDifficulty Uses

type GetDifficulty struct {
    Result float64 `json:"result"`
    Error  Error   `json:"error"`
    ID     string  `json:"id"`
}

type GetInfo Uses

type GetInfo struct {
    Result struct {
        Version             int     `json:"version"`
        Protocolversion     int     `json:"protocolversion"`
        KMDversion          string  `json:"KMDversion"`
        Notarized           int     `json:"notarized"`
        PrevMoMheight       int     `json:"prevMoMheight"`
        Notarizedhash       string  `json:"notarizedhash"`
        Notarizedtxid       string  `json:"notarizedtxid"`
        NotarizedtxidHeight string  `json:"notarizedtxid_height"`
        KMDnotarizedHeight  int     `json:"KMDnotarized_height"`
        NotarizedConfirms   int     `json:"notarized_confirms"`
        Walletversion       int     `json:"walletversion"`
        Balance             float64 `json:"balance"`
        Blocks              int     `json:"blocks"`
        Longestchain        int     `json:"longestchain"`
        Timeoffset          int     `json:"timeoffset"`
        Tiptime             int     `json:"tiptime"`
        Connections         int     `json:"connections"`
        Proxy               string  `json:"proxy"`
        Difficulty          float64 `json:"difficulty"`
        Testnet             bool    `json:"testnet"`
        Keypoololdest       int     `json:"keypoololdest"`
        Keypoolsize         int     `json:"keypoolsize"`
        Paytxfee            float64 `json:"paytxfee"`
        Relayfee            float64 `json:"relayfee"`
        Errors              string  `json:"errors"`
        CCid                int     `json:"CCid"`
        Name                string  `json:"name"`
        P2Pport             int     `json:"p2pport"`
        Rpcport             int     `json:"rpcport"`
        Magic               int     `json:"magic"`
        Premine             int     `json:"premine"`
        Reward              int64   `json:"reward"`
        Halving             int     `json:"halving"`
        Commission          int     `json:"commission"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetLocalSolps Uses

type GetLocalSolps struct {
    Result int    `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetMempoolInfo Uses

type GetMempoolInfo struct {
    Result struct {
        Size  int `json:"size"`
        Bytes int `json:"bytes"`
        Usage int `json:"usage"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetMiningInfo Uses

type GetMiningInfo struct {
    Result struct {
        Blocks           int     `json:"blocks"`
        Currentblocksize int     `json:"currentblocksize"`
        Currentblocktx   int     `json:"currentblocktx"`
        Difficulty       float64 `json:"difficulty"`
        Errors           string  `json:"errors"`
        Genproclimit     int     `json:"genproclimit"`
        Localsolps       int     `json:"localsolps"`
        Networksolps     int     `json:"networksolps"`
        Networkhashps    int     `json:"networkhashps"`
        Pooledtx         int     `json:"pooledtx"`
        Testnet          bool    `json:"testnet"`
        Chain            string  `json:"chain"`
        Generate         bool    `json:"generate"`
        Numthreads       int     `json:"numthreads"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetNetTotals Uses

type GetNetTotals struct {
    Result struct {
        Totalbytesrecv int   `json:"totalbytesrecv"`
        Totalbytessent int   `json:"totalbytessent"`
        Timemillis     int64 `json:"timemillis"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetNetworkHashps Uses

type GetNetworkHashps struct {
    Result int    `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetNetworkInfo Uses

type GetNetworkInfo struct {
    Result struct {
        Version         int    `json:"version"`
        Subversion      string `json:"subversion"`
        Protocolversion int    `json:"protocolversion"`
        Localservices   string `json:"localservices"`
        Timeoffset      int    `json:"timeoffset"`
        Connections     int    `json:"connections"`
        Networks        []struct {
            Name                      string `json:"name"`
            Limited                   bool   `json:"limited"`
            Reachable                 bool   `json:"reachable"`
            Proxy                     string `json:"proxy"`
            ProxyRandomizeCredentials bool   `json:"proxy_randomize_credentials"`
        }   `json:"networks"`
        Relayfee       float64       `json:"relayfee"`
        Localaddresses []interface{} `json:"localaddresses"`
        Warnings       string        `json:"warnings"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetNetworkSolps Uses

type GetNetworkSolps struct {
    Result int    `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetNewAddress Uses

type GetNewAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetPeerInfo Uses

type GetPeerInfo struct {
    Result []struct {
        ID             int           `json:"id"`
        Addr           string        `json:"addr"`
        Addrlocal      string        `json:"addrlocal"`
        Services       string        `json:"services"`
        Lastsend       int           `json:"lastsend"`
        Lastrecv       int           `json:"lastrecv"`
        Bytessent      int           `json:"bytessent"`
        Bytesrecv      int           `json:"bytesrecv"`
        Conntime       int           `json:"conntime"`
        Timeoffset     int           `json:"timeoffset"`
        Pingtime       float64       `json:"pingtime"`
        Version        int           `json:"version"`
        Subver         string        `json:"subver"`
        Inbound        bool          `json:"inbound"`
        Startingheight int           `json:"startingheight"`
        Banscore       int           `json:"banscore"`
        SyncedHeaders  int           `json:"synced_headers"`
        SyncedBlocks   int           `json:"synced_blocks"`
        Inflight       []interface{} `json:"inflight"`
        Whitelisted    bool          `json:"whitelisted"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetRawChangeAddress Uses

type GetRawChangeAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetRawMempoolFalse Uses

type GetRawMempoolFalse struct {
    Result []string `json:"result"`
    Error  Error    `json:"error"`
    ID     string   `json:"id"`
}

type GetRawMempoolTrue Uses

type GetRawMempoolTrue struct {
    Result map[string]RawMempoolTrue `json:"result"`
    Error  Error                     `json:"error"`
    ID     string                    `json:"id"`
}

type GetRawTransaction Uses

type GetRawTransaction struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetRawTransactionDetailed Uses

type GetRawTransactionDetailed struct {
    Result GetRawTransactionFull `json:"result"`
    Error  Error                 `json:"error"`
    ID     string                `json:"id"`
}

type GetRawTransactionFull Uses

type GetRawTransactionFull struct {
    Hex          string `json:"hex"`
    Txid         string `json:"txid"`
    Overwintered bool   `json:"overwintered"`
    Version      int    `json:"version"`
    Locktime     int    `json:"locktime"`
    Vin          []struct {
        Txid      string `json:"txid"`
        Vout      int    `json:"vout"`
        Address   string `json:"address"`
        ScriptSig struct {
            Asm string `json:"asm"`
            Hex string `json:"hex"`
        }   `json:"scriptSig"`
        Sequence int64 `json:"sequence"`
    }   `json:"vin"`
    Vout []struct {
        Value        float64 `json:"value"`
        Interest     float64 `json:"interest"`
        ValueSat     int64   `json:"valueSat"`
        N            int     `json:"n"`
        ScriptPubKey struct {
            Asm       string   `json:"asm"`
            Hex       string   `json:"hex"`
            ReqSigs   int      `json:"reqSigs"`
            Type      string   `json:"type"`
            Addresses []string `json:"addresses"`
        }   `json:"scriptPubKey"`
    }   `json:"vout"`
    Vjoinsplit       []interface{} `json:"vjoinsplit"`
    Blockhash        string        `json:"blockhash"`
    Height           int           `json:"height"`
    Confirmations    int           `json:"confirmations"`
    Rawconfirmations int           `json:"rawconfirmations"`
    Time             int           `json:"time"`
    Blocktime        int           `json:"blocktime"`
}

type GetReceivedByAccount Uses

type GetReceivedByAccount struct {
    Result int64  `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetReceivedByAddress Uses

type GetReceivedByAddress struct {
    Result int64  `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetTransaction Uses

type GetTransaction struct {
    Result struct {
        Amount           float64       `json:"amount"`
        Fee              float64       `json:"fee"`
        Rawconfirmations int           `json:"rawconfirmations"`
        Confirmations    int           `json:"confirmations"`
        Blockhash        string        `json:"blockhash"`
        Blockindex       int           `json:"blockindex"`
        Blocktime        int           `json:"blocktime"`
        Expiryheight     int           `json:"expiryheight"`
        Txid             string        `json:"txid"`
        Walletconflicts  []interface{} `json:"walletconflicts"`
        Time             int           `json:"time"`
        Timereceived     int           `json:"timereceived"`
        Vjoinsplit       []interface{} `json:"vjoinsplit"`
        Details          []struct {
            InvolvesWatchonly bool    `json:"involvesWatchonly"`
            Account           string  `json:"account"`
            Address           string  `json:"address"`
            Category          string  `json:"category"`
            Amount            float64 `json:"amount"`
            Vout              int     `json:"vout"`
            Fee               float64 `json:"fee,omitempty"`
            Size              int     `json:"size"`
        }   `json:"details"`
        Hex string `json:"hex"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetTxOut Uses

type GetTxOut struct {
    Result struct {
        Bestblock        string  `json:"bestblock"`
        Confirmations    int     `json:"confirmations"`
        Rawconfirmations int     `json:"rawconfirmations"`
        Value            float64 `json:"value"`
        ScriptPubKey     struct {
            Asm       string   `json:"asm"`
            Hex       string   `json:"hex"`
            ReqSigs   int      `json:"reqSigs"`
            Type      string   `json:"type"`
            Addresses []string `json:"addresses"`
        }   `json:"scriptPubKey"`
        Version  int  `json:"version"`
        Coinbase bool `json:"coinbase"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetTxOutProof Uses

type GetTxOutProof struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type GetTxOutSetInfo Uses

type GetTxOutSetInfo struct {
    Result struct {
        Height          int     `json:"height"`
        Bestblock       string  `json:"bestblock"`
        Transactions    int     `json:"transactions"`
        Txouts          int     `json:"txouts"`
        BytesSerialized int     `json:"bytes_serialized"`
        HashSerialized  string  `json:"hash_serialized"`
        TotalAmount     float64 `json:"total_amount"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type GetUnconfirmedBalance Uses

type GetUnconfirmedBalance struct {
    Result float64 `json:"result"`
    Error  Error   `json:"error"`
    ID     string  `json:"id"`
}

type GetWalletInfo Uses

type GetWalletInfo struct {
    Result struct {
        Walletversion      int     `json:"walletversion"`
        Balance            float64 `json:"balance"`
        UnconfirmedBalance float64 `json:"unconfirmed_balance"`
        ImmatureBalance    float64 `json:"immature_balance"`
        Txcount            int     `json:"txcount"`
        Keypoololdest      int     `json:"keypoololdest"`
        Keypoolsize        int     `json:"keypoolsize"`
        UnlockedUntil      int     `json:"unlocked_until"`
        Paytxfee           float64 `json:"paytxfee"`
        Seedfp             string  `json:"seedfp"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ImportAddress Uses

type ImportAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ImportPrivKey Uses

type ImportPrivKey struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ImportWallet Uses

type ImportWallet struct {
    Result interface{} `json:"result"`
    Error  Error       `json:"error"`
    ID     string      `json:"id"`
}

type KeyPoolRefill Uses

type KeyPoolRefill struct {
    Result interface{} `json:"result"`
    Error  Error       `json:"error"`
    ID     string      `json:"id"`
}

type ListAccounts Uses

type ListAccounts struct {
    Result map[string]float64 `json:"result"`
    Error  Error              `json:"error"`
    ID     string             `json:"id"`
}

type ListAddressGroupings Uses

type ListAddressGroupings struct {
    Result [][][]interface{} `json:"result"`
    Error  Error             `json:"error"`
    ID     string            `json:"id"`
}

type ListBanned Uses

type ListBanned struct {
    Result []struct {
        Address     string `json:"address"`
        BannedUntil int    `json:"banned_until"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ListLockUnspent Uses

type ListLockUnspent struct {
    Result []struct {
        Txid string `json:"txid"`
        Vout int    `json:"vout"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ListReceivedByAddress Uses

type ListReceivedByAddress struct {
    Result []struct {
        Address          string        `json:"address"`
        Account          string        `json:"account"`
        Amount           float64       `json:"amount"`
        Rawconfirmations int           `json:"rawconfirmations"`
        Confirmations    int           `json:"confirmations"`
        Txids            []interface{} `json:"txids"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ListSinceBlock Uses

type ListSinceBlock struct {
    Result struct {
        Transactions []struct {
            Account         string        `json:"account"`
            Address         string        `json:"address"`
            Category        string        `json:"category"`
            Amount          float64       `json:"amount"`
            Vout            int           `json:"vout"`
            Confirmations   int           `json:"confirmations"`
            Generated       bool          `json:"generated"`
            Blockhash       string        `json:"blockhash"`
            Blockindex      int           `json:"blockindex"`
            Blocktime       int           `json:"blocktime"`
            Expiryheight    int           `json:"expiryheight"`
            Txid            string        `json:"txid"`
            Walletconflicts []interface{} `json:"walletconflicts"`
            Time            int           `json:"time"`
            Timereceived    int           `json:"timereceived"`
            Vjoinsplit      []interface{} `json:"vjoinsplit"`
            Size            int           `json:"size"`
        }   `json:"transactions"`
        Lastblock string `json:"lastblock"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ListTransactions Uses

type ListTransactions struct {
    Result []struct {
        InvolvesWatchonly bool          `json:"involvesWatchonly"`
        Account           string        `json:"account"`
        Address           string        `json:"address"`
        Category          string        `json:"category"`
        Amount            float64       `json:"amount"`
        Vout              int           `json:"vout"`
        Fee               float64       `json:"fee,omitempty"`
        Rawconfirmations  int           `json:"rawconfirmations"`
        Confirmations     int           `json:"confirmations"`
        Blockhash         string        `json:"blockhash"`
        Blockindex        int           `json:"blockindex"`
        Blocktime         int           `json:"blocktime"`
        Expiryheight      int           `json:"expiryheight"`
        Txid              string        `json:"txid"`
        Walletconflicts   []interface{} `json:"walletconflicts"`
        Time              int           `json:"time"`
        Timereceived      int           `json:"timereceived"`
        Vjoinsplit        []interface{} `json:"vjoinsplit"`
        Size              int           `json:"size"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ListUnspent Uses

type ListUnspent struct {
    Result []struct {
        Txid          string  `json:"txid"`
        Vout          int     `json:"vout"`
        Generated     bool    `json:"generated"`
        Address       string  `json:"address"`
        ScriptPubKey  string  `json:"scriptPubKey"`
        Amount        float64 `json:"amount"`
        Interest      float64 `json:"interest"`
        Confirmations int     `json:"confirmations"`
        Spendable     bool    `json:"spendable"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type LockUnspent Uses

type LockUnspent struct {
    Result bool   `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type MinerIDs Uses

type MinerIDs struct {
    Result struct {
        Mined []struct {
            Notaryid   int    `json:"notaryid,omitempty"`
            KMDaddress string `json:"KMDaddress,omitempty"`
            Pubkey     string `json:"pubkey"`
            Blocks     int    `json:"blocks"`
        }   `json:"mined"`
        Numnotaries int `json:"numnotaries"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type Notaries Uses

type Notaries struct {
    Result struct {
        Notaries []struct {
            Pubkey     string `json:"pubkey"`
            BTCaddress string `json:"BTCaddress"`
            KMDaddress string `json:"KMDaddress"`
        }   `json:"notaries"`
        Numnotaries int `json:"numnotaries"`
        Height      int `json:"height"`
        Timestamp   int `json:"timestamp"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type Ping Uses

type Ping struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type PrioritiseTransaction Uses

type PrioritiseTransaction struct {
    Result bool   `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type RGBailout Uses

type RGBailout struct {
    Result struct {
        Name        string `json:"name"`
        Method      string `json:"method"`
        Myrogueaddr string `json:"myrogueaddr"`
        Gametxid    string `json:"gametxid"`
        Hex         string `json:"hex"`
        Txid        string `json:"txid"`
        Result      string `json:"result"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGGameInfo Uses

type RGGameInfo struct {
    Result struct {
        Name       string  `json:"name"`
        Method     string  `json:"method"`
        Gametxid   string  `json:"gametxid"`
        Result     string  `json:"result"`
        Gameheight int     `json:"gameheight"`
        Height     int     `json:"height"`
        Start      int     `json:"start"`
        Starthash  string  `json:"starthash"`
        Seed       int64   `json:"seed"`
        Run        string  `json:"run"`
        Alive      int     `json:"alive"`
        Numplayers int     `json:"numplayers"`
        Maxplayers int     `json:"maxplayers"`
        Buyin      float64 `json:"buyin"`
        Players    []struct {
            Slot       int     `json:"slot"`
            Status     string  `json:"status"`
            Baton      string  `json:"baton"`
            Tokenid    string  `json:"tokenid"`
            Batonaddr  string  `json:"batonaddr"`
            Ismine     bool    `json:"ismine"`
            Batonvout  int     `json:"batonvout"`
            Batonvalue float64 `json:"batonvalue"`
            Batonht    int     `json:"batonht"`
        }   `json:"players"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGGames Uses

type RGGames struct {
    Result struct {
        Name      string   `json:"name"`
        Method    string   `json:"method"`
        Pastgames []string `json:"pastgames"`
        Games     []string `json:"games"`
        Numgames  int      `json:"numgames"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGHighLander Uses

type RGHighLander struct {
    Result struct {
        Name        string `json:"name"`
        Method      string `json:"method"`
        Myrogueaddr string `json:"myrogueaddr"`
        Gametxid    string `json:"gametxid"`
        Hex         string `json:"hex"`
        Txid        string `json:"txid"`
        Result      string `json:"result"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGNewGame Uses

type RGNewGame struct {
    Result struct {
        Name       string  `json:"name"`
        Method     string  `json:"method"`
        Maxplayers int     `json:"maxplayers"`
        Buyin      float64 `json:"buyin"`
        Type       string  `json:"type"`
        Hex        string  `json:"hex"`
        Txid       string  `json:"txid"`
        Result     string  `json:"result"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGPending Uses

type RGPending struct {
    Result struct {
        Result     string   `json:"result"`
        Name       string   `json:"name"`
        Method     string   `json:"method"`
        Pending    []string `json:"pending"`
        Numpending int      `json:"numpending"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGPlayerInfo Uses

type RGPlayerInfo struct {
    Result struct {
        Result string `json:"result"`
        Name   string `json:"name"`
        Method string `json:"method"`
        Player struct {
            Playertxid   string   `json:"playertxid"`
            Tokenid      string   `json:"tokenid"`
            Data         string   `json:"data"`
            Pack         []string `json:"pack"`
            Packsize     int      `json:"packsize"`
            Hitpoints    int      `json:"hitpoints"`
            Strength     int      `json:"strength"`
            Level        int      `json:"level"`
            Experience   int      `json:"experience"`
            Dungeonlevel int      `json:"dungeonlevel"`
            Chain        string   `json:"chain"`
            Pname        string   `json:"pname"`
        }   `json:"player"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGPlayers Uses

type RGPlayers struct {
    Result struct {
        Name          string   `json:"name"`
        Method        string   `json:"method"`
        Playerdata    []string `json:"playerdata"`
        Numplayerdata int      `json:"numplayerdata"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGRegister Uses

type RGRegister struct {
    Result struct {
        Name       string  `json:"name"`
        Method     string  `json:"method"`
        Maxplayers int     `json:"maxplayers"`
        Buyin      float64 `json:"buyin"`
        Type       string  `json:"type"`
        Hex        string  `json:"hex"`
        Txid       string  `json:"txid,omitempty"`
        Result     string  `json:"result,omitempty"`
        Status     string  `json:"status,omitempty"`
        Error      string  `json:"error,omitempty"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RGSetName Uses

type RGSetName struct {
    Result struct {
        Name   string `json:"name"`
        Method string `json:"method"`
        Result string `json:"result"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type RawMempoolTrue Uses

type RawMempoolTrue struct {
    Size             int           `json:"size"`
    Fee              float64       `json:"fee"`
    Time             int           `json:"time"`
    Height           int           `json:"height"`
    Startingpriority float64       `json:"startingpriority"`
    Currentpriority  float64       `json:"currentpriority"`
    Depends          []interface{} `json:"depends"`
}

type SendFrom Uses

type SendFrom struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SendMany Uses

type SendMany struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SendRawTransaction Uses

type SendRawTransaction struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SendToAddress Uses

type SendToAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SetBan Uses

type SetBan struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SetPubKey Uses

type SetPubKey struct {
    Result struct {
        Pubkey   string `json:"pubkey"`
        Ismine   bool   `json:"ismine"`
        RAddress string `json:"R-address"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type SetTxFee Uses

type SetTxFee struct {
    Result bool   `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SignMessage Uses

type SignMessage struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SignRawTransaction Uses

type SignRawTransaction struct {
    Result struct {
        Hex      string `json:"hex"`
        Complete bool   `json:"complete"`
        Errors   []struct {
            Txid      string `json:"txid"`
            Vout      int    `json:"vout"`
            ScriptSig string `json:"scriptSig"`
            Sequence  int64  `json:"sequence"`
            Error     string `json:"error"`
        }   `json:"errors"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type Stop Uses

type Stop struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type SubmitBlock Uses

type SubmitBlock struct {
    Result bool   `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ValidateAddress Uses

type ValidateAddress struct {
    Result struct {
        Isvalid      bool   `json:"isvalid"`
        Address      string `json:"address"`
        ScriptPubKey string `json:"scriptPubKey"`
        Segid        int    `json:"segid"`
        Ismine       bool   `json:"ismine"`
        Iswatchonly  bool   `json:"iswatchonly"`
        Isscript     bool   `json:"isscript"`
        Pubkey       string `json:"pubkey"`
        Iscompressed bool   `json:"iscompressed"`
        Account      string `json:"account"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type VerifyChain Uses

type VerifyChain struct {
    Result bool   `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type VerifyMessage Uses

type VerifyMessage struct {
    Result bool   `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type VerifyTxOutProof Uses

type VerifyTxOutProof struct {
    Result []string `json:"result"`
    Error  Error    `json:"error"`
    ID     string   `json:"id"`
}

type WalletLock Uses

type WalletLock struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type WalletPassPhrase Uses

type WalletPassPhrase struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type WalletPassPhrasechangeChange Uses

type WalletPassPhrasechangeChange struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZExportKey Uses

type ZExportKey struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZExportViewingKey Uses

type ZExportViewingKey struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZExportWallet Uses

type ZExportWallet struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZGetBalance Uses

type ZGetBalance struct {
    Result float64 `json:"result"`
    Error  Error   `json:"error"`
    ID     string  `json:"id"`
}

type ZGetNewAddress Uses

type ZGetNewAddress struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZGetOperationResult Uses

type ZGetOperationResult struct {
    Result []struct {
        ID           string `json:"id"`
        Status       string `json:"status"`
        CreationTime int    `json:"creation_time"`
        Result       struct {
            Txid string `json:"txid"`
        }   `json:"result"`
        ExecutionSecs float64 `json:"execution_secs"`
        Method        string  `json:"method"`
        Params        struct {
            Fromaddress string `json:"fromaddress"`
            Amounts     []struct {
                Address string  `json:"address"`
                Amount  float64 `json:"amount"`
            }   `json:"amounts"`
            Minconf int     `json:"minconf"`
            Fee     float64 `json:"fee"`
        }   `json:"params"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZGetOperationStatus Uses

type ZGetOperationStatus struct {
    Result []struct {
        ID           string `json:"id"`
        Status       string `json:"status"`
        CreationTime int    `json:"creation_time"`
        Result       struct {
            Txid string `json:"txid"`
        }   `json:"result"`
        ExecutionSecs float64 `json:"execution_secs"`
        Method        string  `json:"method"`
        Params        struct {
            Fromaddress string `json:"fromaddress"`
            Amounts     []struct {
                Address string  `json:"address"`
                Amount  float64 `json:"amount"`
            }   `json:"amounts"`
            Minconf int     `json:"minconf"`
            Fee     float64 `json:"fee"`
        }   `json:"params"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZGetTotalBalance Uses

type ZGetTotalBalance struct {
    Result struct {
        Transparent float64 `json:"transparent"`
        Interest    float64 `json:"interest"`
        Private     float64 `json:"private"`
        Total       float64 `json:"total"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZImportKey Uses

type ZImportKey struct {
    Result interface{} `json:"result"`
    Error  Error       `json:"error"`
    ID     string      `json:"id"`
}

type ZImportViewingKey Uses

type ZImportViewingKey struct {
    Result interface{} `json:"result"`
    Error  Error       `json:"error"`
    ID     string      `json:"id"`
}

type ZImportWallet Uses

type ZImportWallet struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZListAddresses Uses

type ZListAddresses struct {
    Result []string `json:"result"`
    Error  Error    `json:"error"`
    ID     string   `json:"id"`
}

type ZListOperationIDs Uses

type ZListOperationIDs struct {
    Result []string `json:"result"`
    Error  Error    `json:"error"`
    ID     string   `json:"id"`
}

type ZListReceivedByAddress Uses

type ZListReceivedByAddress struct {
    Result []struct {
        Txid   string  `json:"txid"`
        Amount float64 `json:"amount"`
        Memo   string  `json:"memo"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZListUnspent Uses

type ZListUnspent struct {
    Result []struct {
        Txid          string  `json:"txid"`
        Jsindex       int     `json:"jsindex"`
        Jsoutindex    int     `json:"jsoutindex"`
        Outindex      int     `json:"outindex"`
        Confirmations int     `json:"confirmations"`
        Spendable     bool    `json:"spendable"`
        Address       string  `json:"address"`
        Amount        float64 `json:"amount"`
        Memo          string  `json:"memo"`
        Change        bool    `json:"change"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZMergeToAddress Uses

type ZMergeToAddress struct {
    Result struct {
        RemainingUTXOs            int     `json:"remainingUTXOs"`
        RemainingTransparentValue float64 `json:"remainingTransparentValue"`
        RemainingNotes            int     `json:"remainingNotes"`
        RemainingShieldedValue    float64 `json:"remainingShieldedValue"`
        MergingUTXOs              int     `json:"mergingUTXOs"`
        MergingTransparentValue   float64 `json:"mergingTransparentValue"`
        MergingNotes              int     `json:"mergingNotes"`
        MergingShieldedValue      float64 `json:"mergingShieldedValue"`
        Opid                      string  `json:"opid"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZSendMany Uses

type ZSendMany struct {
    Result string `json:"result"`
    Error  Error  `json:"error"`
    ID     string `json:"id"`
}

type ZShieldCoinbase Uses

type ZShieldCoinbase struct {
    Result struct {
        RemainingUTXOs int     `json:"remainingUTXOs"`
        RemainingValue float64 `json:"remainingValue"`
        ShieldingUTXOs int     `json:"shieldingUTXOs"`
        ShieldingValue float64 `json:"shieldingValue"`
        Opid           string  `json:"opid"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

type ZValidateAddress Uses

type ZValidateAddress struct {
    Result struct {
        Isvalid                    bool   `json:"isvalid"`
        Address                    string `json:"address"`
        Type                       string `json:"type"`
        Diversifier                string `json:"diversifier"`
        Diversifiedtransmissionkey string `json:"diversifiedtransmissionkey"`
        Ismine                     bool   `json:"ismine"`
    }   `json:"result"`
    Error Error  `json:"error"`
    ID    string `json:"id"`
}

Directories

PathSynopsis
btcecPackage btcec implements support for the elliptic curves needed for bitcoin.
chaincfgPackage chaincfg defines chain configuration parameters.
chaincfg/chainhashPackage chainhash provides abstracted hash functionality.
examples
examples/ccfaucet
examples/ccrogue
kmdutil
kmdutil/base58Package base58 provides an API for working with modified base58 and Base58Check encodings.
kmdutil/bech32Package bech32 provides a Go implementation of the bech32 format specified in BIP 173.
wirePackage wire implements the bitcoin wire protocol.

Package kmdgo imports 12 packages (graph) and is imported by 3 packages. Updated 2020-07-15. Refresh now. Tools for package owners.