Documentation ¶
Index ¶
- Variables
- func JSONOpString(v []types.Operation) (string, error)
- func JSONTrxString(v *transactions.SignedTransaction) (string, error)
- func SetAsset(amount float64, symbol string) *types.Asset
- type BResp
- type Client
- func (client *Client) Close() error
- func (client *Client) GetTrx(strx []types.Operation) (*types.Transaction, error)
- func (client *Client) PerMvest() (float64, error)
- func (client *Client) SendTrx(username string, strx []types.Operation) (*BResp, error)
- func (client *Client) SetKeys(keys *Keys)
- func (client *Client) SigningKeys(trx types.Operation) ([][]byte, error)
- type Keys
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInitializeTransport = errors.New("Failed to initialize transport.")
)
View Source
var ( //OpTypeKey include a description of the operation and the key needed to sign it OpTypeKey = make(map[types.OpType][]string) )
Functions ¶
func JSONOpString ¶
JSONOpString generate Operations to String
func JSONTrxString ¶
func JSONTrxString(v *transactions.SignedTransaction) (string, error)
JSONTrxString generate Trx to String
Types ¶
type Client ¶
type Client struct { AsyncProtocol bool // Database represents database_api. API *api.API // Current keys for operations CurrentKeys *Keys // contains filtered or unexported fields }
Client can be used to access HIVE remote APIs. There is a public field for every HIVE API available, e.g. Client.Database corresponds to database_api.
func NewClient ¶
NewClient creates a new RPC client that use the given CallCloser internally. Initialize only server present API. Absent API initialized as nil value.
func (*Client) Close ¶
Close should be used to close the client when no longer needed. It simply calls Close() on the underlying CallCloser.
Click to show internal directories.
Click to hide internal directories.