Categorygithub.com/xboston/metahash-go
modulepackage
0.0.0-20210720124802-e005bfec89e1
Repository: https://github.com/xboston/metahash-go.git
Documentation: pkg.go.dev

# README

MetaHash API GO library

An unofficial Golang library for #MetaHash blockchain.

metahash-go

Requirements

  • GO go 1.12+

Installation

go get -u github.com/xboston/metahash-go

Information

Refence links:

Methods

  • fetch-balance
  • fetch-balances
  • fetch-history
  • get-tx
  • get-last-txs
  • get-blocks
  • get-block-by-number
  • get-block-by-hash
  • get-dump-block-by-number
  • get-dump-block-by-hash
  • get-count-blocks
  • get-last-node-stat-result
  • get-last-node-stat-trust
  • get-all-last-nodes-count
  • get-nodes-raiting
  • get-address-delegations
  • get-forging-sum-all
  • get-forging-sum
  • get-common-balance
  • status
  • mhc_send
  • getinfo

Extra Methods

Usage

You can find usage examples in the examples folder.

License

This package is released under the MIT license.

# Packages

No description provided by the author

# Functions

FetchBalance gets the balance information of a given address.
FetchBalances gets the balance information of list of addresses.
FetchHistory returns all transactions history of a given address.
FetchHistoryRange returns list of transaction history from a given index.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetForgingSumAll returns sum all types of forging100; // forging transaction101; // wallet reward forging transaction102; // node reward forging transaction103; // coin reward forging transaction104; // random reward forging transaction.
No description provided by the author
No description provided by the author
GetLastTransactions returns the list of last transactions made.
No description provided by the author
No description provided by the author
No description provided by the author
GetTransaction returns the transaction details given the transaction hash.
No description provided by the author
NewClient returns a new RPCClient instance with default configuration.
NewClientWithOpts returns a new RPCClient instance with custom configuration.
NewRequest returns a new RPCRequest that can be created using the same convenient parameter syntax as Call() e.g.
Params is a helper function that uses the same parameter syntax as Call().

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HTTPError represents a error that occurred on HTTP level.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
внутренние структуры-методы.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RPCClientOpts can be provided to NewClientWithOpts() to change configuration of RPCClient.
RPCError represents a JSON-RPC error object if an RPC error occurred.
RPCRequest represents a JSON-RPC request object.
RPCResponse represents a JSON-RPC response object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

RPCClient sends JSON-RPC requests over HTTP to the provided JSON-RPC backend.

# Type aliases

RPCRequests is of type []*RPCRequest.
RPCResponses is of type []*RPCResponse.