client

package
v1.68.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package client ... Copyright Fuzamei Corp. 2018 All Rights Reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Package rpc chain33 RPC模块包含JSONRpc以及grpc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTx

func DecodeTx(hexstr string) (*types.Transaction, error)

DecodeTx decode hextx

Types

type ChannelClient

type ChannelClient struct {
	client.QueueProtocolAPI
	// contains filtered or unexported fields
}

ChannelClient ...

func (*ChannelClient) CreateNoBalanceTxs

func (c *ChannelClient) CreateNoBalanceTxs(in *types.NoBalanceTxs) (*types.Transaction, error)

CreateNoBalanceTxs create the multiple transaction with no balance 实际使用的时候要注意,一般情况下,不要传递 private key 到服务器端,除非是本地localhost 的服务。

func (*ChannelClient) CreateRawTransaction

func (c *ChannelClient) CreateRawTransaction(param *types.CreateTx) ([]byte, error)

CreateRawTransaction create rawtransaction

func (*ChannelClient) CreateRawTxGroup

func (c *ChannelClient) CreateRawTxGroup(param *types.CreateTransactionGroup) ([]byte, error)

CreateRawTxGroup create rawtransaction for group

func (*ChannelClient) DecodeRawTransaction

func (c *ChannelClient) DecodeRawTransaction(param *types.ReqDecodeRawTransaction) (*types.Transaction, error)

DecodeRawTransaction decode rawtransaction

func (*ChannelClient) GetAddrOverview

func (c *ChannelClient) GetAddrOverview(parm *types.ReqAddr) (*types.AddrOverview, error)

GetAddrOverview get overview of address

func (*ChannelClient) GetAddressDrivers

func (c *ChannelClient) GetAddressDrivers() *types.AddressDrivers

GetAddressDrivers 获取已注册地址插件

func (*ChannelClient) GetAllExecBalance

func (c *ChannelClient) GetAllExecBalance(in *types.ReqAllExecBalance) (*types.AllExecBalance, error)

GetAllExecBalance get balance of exec

func (*ChannelClient) GetBalance

func (c *ChannelClient) GetBalance(in *types.ReqBalance) ([]*types.Account, error)

GetBalance get balance

func (*ChannelClient) GetCryptoList

func (c *ChannelClient) GetCryptoList() *types.CryptoList

GetCryptoList 获取加密算法列表

func (*ChannelClient) GetExecBalance

GetExecBalance get balance with exec by channelclient

func (*ChannelClient) GetTimeStatus

func (c *ChannelClient) GetTimeStatus() (*types.TimeStatus, error)

GetTimeStatus get status of time

func (*ChannelClient) GetTotalCoins

GetTotalCoins get total of coins

func (*ChannelClient) GetWalletRecoverAddr

func (c *ChannelClient) GetWalletRecoverAddr(req *types.ReqGetWalletRecoverAddr) (*types.ReplyString, error)

GetWalletRecoverAddr get wallet recover chain33 address

func (*ChannelClient) Init

Init channel client

func (*ChannelClient) ReWriteRawTx

func (c *ChannelClient) ReWriteRawTx(param *types.ReWriteRawTx) ([]byte, error)

ReWriteRawTx rewrite tx

func (*ChannelClient) SignWalletRecoverTx

func (c *ChannelClient) SignWalletRecoverTx(req *types.ReqSignWalletRecoverTx) (*types.ReplySignRawTx, error)

SignWalletRecoverTx sign wallet recover transaction

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL