Versions in this module Expand all Collapse all v1 v1.1.2 Oct 4, 2022 v1.1.1 Aug 20, 2022 Changes in this version + type AddressValue struct + A string + V int64 + type LastNode struct + Count int + IP string + Node string + Type string + type NodeParams struct + Address string + Blockheightcheck string + Geo string + Host string + Latency string + Requestsperminute string + Success string + Type string + Ver string + type NodeTestParam struct + Closed string + IP string + Mhaddr string + QPS int64 + Rps int64 + Success string + Timeouts string + Ver string v1.1.0 Aug 17, 2022 Changes in this version + type BlockType int + const FullDump + const HashesOnly + const NameOnly + type BlockType1 struct + CountTxs int + FileName string + Hash string + Number int + PrevHash string + Sign string + Signatures []struct{ ... } + Size int + Timestamp int + TxHash string + Txs []string + Type string v1.0.3 Feb 27, 2022 Changes in this version type NodeTrustData + func (ntd *NodeTrustData) Delegated() (delegatedTo int64, delegatedFrom int64) v1.0.2 Dec 26, 2021 v1.0.1 Nov 14, 2021 Changes in this version type Balance + func (b *Balance) CurrentBalance() int64 + func (b *Balance) DelegatedAmount() int64 + func (b *Balance) DelegatedFunds() int64 + func (b *Balance) FullBalance() int64 + func (b *Balance) Funded() int64 + func (b *Balance) IsNode() bool + func (b *Balance) SeedCapital() int64 v1.0.0 Nov 7, 2021 Changes in this version + func GetCommonBalance() (int64, error) + func GetTotalBlocks() (int64, error) + func Params(params ...interface{}) interface + type AbstractMethod struct + Jsonrpc string + Method string + Params interface{} + type Address string + type AddressDelegations struct + Address string + States []struct{ ... } + func GetAddressDelegations(address string, startTx, countTx int64) (*AddressDelegations, error) + type Balance struct + Address string + BlockNumber int64 + CountDelegatedOps int64 + CountForgedOps int64 + CountReceived int64 + CountSpent int64 + CountTxs int64 + CurrentBlock int64 + Delegate int64 + Delegated int64 + Forged int64 + Hash string + Received int64 + Reserved int64 + Spent int64 + Undelegate int64 + Undelegated int64 + func FetchBalance(address string) (*Balance, error) + func FetchBalances(addresses ...string) ([]*Balance, error) + type BalanceArgs struct + Address string + type BalancesArgs struct + Addresses []string + type Block struct + CountTxs int64 + FileName string + Hash string + Number int64 + PrevHash string + Sign string + Signatures []struct{ ... } + Size int64 + TimeStamp int64 + TxHash string + Txs []*TransactionInfo + Type string + func GetBlockByHash(blockHash string, startIndex, numTx, blockType int) (*Block, error) + func GetBlockByNumber(blockNumber, blockType int64) (*Block, error) + func GetBlockByNumberFilter(blockNumber, startTx, numTx, blockType int64) (*Block, error) + func GetBlocks(startBlock, numBlocks int64) ([]*Block, error) + type BlockByHashArgs struct + BeginTx int64 + CountTxs int64 + Hash string + Type int8 + type BlockByNumberArgs struct + BeginTx int64 + CountTxs int64 + Number int64 + Type int8 + type BlocksArgs struct + BeginBlock int64 + CountBlocks int64 + type CommonBalance struct + Balance int64 + type CountBlocks struct + BeginBlock int64 + CountBlocks int64 + type CountBlocksArgs struct + type DumpBlock struct + Dump string + func GetDumpBlockByHash(blockHash string, isHex bool) (*DumpBlock, error) + func GetDumpBlockByNumber(blockNumber int64, isHex bool) (*DumpBlock, error) + type DumpBlockByHashArgs struct + Hash string + IsHex bool + type DumpBlockByNumberArgs struct + IsHex bool + Number int64 + type ForginSumArgs struct + BlockIndent int + type ForgingSum struct + Blocknumber int + Sums []struct{ ... } + func GetForgingSum(blockIndent int) (*ForgingSum, error) + func GetForgingSumAll() (*ForgingSum, error) + type HTTPError struct + Code int + func (e *HTTPError) Error() string + type HistoryArgs struct + Address string + BeginTx int64 + CountTxs int64 + Filters HistoryFilter + type HistoryFilter struct + IsDelegate bool + IsForging bool + IsInput bool + IsOutput bool + IsSuccess bool + IsTest bool + type Key interface + Address func() Address + Private func() PrivateKey + Public func() PublicKey + SetAddress func(address string) + Sign func(data []byte) (string, error) + Verify func(data []byte, sign string) (bool, error) + func CreateKey(private string) (Key, error) + func NewKey() (Key, error) + type LastNodeCount struct + Day int + Lastblockday int + Nodes []struct{ ... } + func GetLastNodeCount(counts int) (*LastNodeCount, error) + type LastTxsArgs struct + type MetaKey struct + Key Key + func InitWallet(walletAddress, privateKey string) (*MetaKey, error) + func (mk *MetaKey) SignTransaction(data []byte) (string, error) + func (mk *MetaKey) Transfer(toAddress string, sendAmount float64) (string, error) + type MetaTx struct + Data string + Fee int64 + Nonce int64 + To string + Value int64 + type MetaTxArg struct + Data string + Fee string + Nonce string + Pubkey string + Sign string + To string + Value string + type MetaTxResp struct + Error string + Params string + Result string + type Node struct + Address string + City string + CountryLong string + CountryShort string + Geo string + IP string + IsOnline bool + LastChecked time.Time + LastUpdated time.Time + Latitude float64 + Longitude float64 + Name string + NodeType string + QPS string + ROI string + RPS string + Region string + Status bool + Trust string + type NodeArgs struct + Address string + BeginTx int64 + CountTests int + CountTxs int64 + type NodeData struct + Address string + AvgRps int64 + Balance string + Bench string + BenchCnt string + BenchSuccess float32 + Fake bool + Host string + IsInternal bool + LastDelegatedAmount string + LastRewardAmount string + LastTestTs int64 + MaxBenchCnt string + Name string + Online int + OnlineStat string + Rate string + Roi string + Sort string + Status string + StatusParams string + Trust string + Ts int + Type []string + Version string + type NodeList struct + Data []NodeData + type NodeRaiting struct + Address string + Day int + Lastblockday int + Raiting int + func GetNodeRaiting(address string, countTests int) (*NodeRaiting, error) + type NodeRegistration struct + Jsonrpc string + Method string + Params struct{ ... } + type NodeStats struct + Address string + AvgRps string + Geo string + IP string + IsLatency bool + LastBlockTimestamp int + State string + Success bool + Timestamp int + Type string + func GetNodeStats(address string) (*NodeStats, error) + func (ns *NodeStats) GetTest() (*NodeStatsState, error) + type NodeStatsState struct + ID string + Jsonrpc string + Method string + Params struct{ ... } + type NodeTest struct + Method string + Params struct{ ... } + TimeStamp int64 + type NodeTrust struct + Address string + Data string + Lastblocktimestamp int64 + Timestamp int64 + Trust int64 + func GetLastNodeStatTrust(address string) (*NodeTrust, error) + func (nt *NodeTrust) GetTrustData() (*NodeTrustData, error) + type NodeTrustData struct + DelegateTo []struct{ ... } + DelegatedFrom []struct{ ... } + State int + Trust int + type PrivateKey string + type PublicKey string + type RPCClient interface + Call func(method string, params ...interface{}) (*RPCResponse, error) + CallBatch func(requests RPCRequests) (RPCResponses, error) + CallBatchRaw func(requests RPCRequests) (RPCResponses, error) + CallFor func(out interface{}, method string, params ...interface{}) error + CallRaw func(request *RPCRequest) (*RPCResponse, error) + CallWID func(method string, params ...interface{}) (*RPCResponse, error) + func NewClient(endpoint string) RPCClient + func NewClientWithOpts(endpoint string, opts *RPCClientOpts) RPCClient + type RPCClientOpts struct + CustomHeaders map[string]string + HTTPClient *http.Client + type RPCError struct + Code int + CountBlocks int64 + Data interface{} + KnownBlocks int64 + KnwonBlock int64 + Message string + func (e *RPCError) Error() string + type RPCRequest struct + ID int + JSONRPC string + Method string + Params interface{} + func NewRequest(method string, params ...interface{}) *RPCRequest + type RPCRequests []*RPCRequest + type RPCResponse struct + Data interface{} + Error *RPCError + ID int + JSONRPC string + Result interface{} + Version string + func (RPCResponse *RPCResponse) GetBool() (bool, error) + func (RPCResponse *RPCResponse) GetFloat() (float64, error) + func (RPCResponse *RPCResponse) GetInt() (int64, error) + func (RPCResponse *RPCResponse) GetObject(toType interface{}) error + func (RPCResponse *RPCResponse) GetString() (string, error) + type RPCResponses []*RPCResponse + func (res RPCResponses) AsMap() map[int]*RPCResponse + func (res RPCResponses) GetByID(id int) *RPCResponse + func (res RPCResponses) HasError() bool + type Status struct + GitHash string + ID int + Result string + Version string + type TotalSupply struct + CirculatingSupply string + CirculatingSupplyCmc string + Decimals int + MaxSupply string + Name string + TotalSupply string + TotalSupplyDecimals string + func MetahashSupply() (*TotalSupply, error) + type Transaction struct + CountBlocks int64 + KnownBlocks int64 + Transaction TransactionInfo + func GetTransaction(txHash string) (*Transaction, error) + type TransactionArgs struct + Hash string + type TransactionInfo struct + BlockNumber int64 + Data string + Delegate int64 + DelegateHash string + DelegateInfo struct{ ... } + Fee int64 + From string + IntStatus int64 + IsDelegate bool + Nonce int64 + PublicKey string + RealFee int64 + Signature string + Status string + TimeStamp int64 + To string + Transaction string + Type string + Value int64 + func FetchHistory(address string) ([]*TransactionInfo, error) + func FetchHistoryFilter(address string, countTx int64, filter *HistoryFilter) ([]*TransactionInfo, error) + func FetchHistoryRange(address string, startIndex, numTrx int64) ([]*TransactionInfo, error) + func GetLastTransactions() ([]*TransactionInfo, error) + type Varint struct + func NewVarint() *Varint + func (vt *Varint) Append(number *big.Int) error + func (vt *Varint) AppendBytes(bytes []byte) + func (vt *Varint) AppendString(str string) error + func (vt *Varint) GetBytes() []byte