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 ¶
- func DecodeTx(hexstr string) (*types.Transaction, error)
- type ChannelClient
- func (c *ChannelClient) CreateNoBalanceTxs(in *types.NoBalanceTxs) (*types.Transaction, error)
- func (c *ChannelClient) CreateRawTransaction(param *types.CreateTx) ([]byte, error)
- func (c *ChannelClient) CreateRawTxGroup(param *types.CreateTransactionGroup) ([]byte, error)
- func (c *ChannelClient) DecodeRawTransaction(param *types.ReqDecodeRawTransaction) (*types.Transaction, error)
- func (c *ChannelClient) GetAddrOverview(parm *types.ReqAddr) (*types.AddrOverview, error)
- func (c *ChannelClient) GetAddressDrivers() *types.AddressDrivers
- func (c *ChannelClient) GetAllExecBalance(in *types.ReqAllExecBalance) (*types.AllExecBalance, error)
- func (c *ChannelClient) GetBalance(in *types.ReqBalance) ([]*types.Account, error)
- func (c *ChannelClient) GetCryptoList() *types.CryptoList
- func (c *ChannelClient) GetExecBalance(in *types.ReqGetExecBalance) (*types.ReplyGetExecBalance, error)
- func (c *ChannelClient) GetTimeStatus() (*types.TimeStatus, error)
- func (c *ChannelClient) GetTotalCoins(in *types.ReqGetTotalCoins) (*types.ReplyGetTotalCoins, error)
- func (c *ChannelClient) GetWalletRecoverAddr(req *types.ReqGetWalletRecoverAddr) (*types.ReplyString, error)
- func (c *ChannelClient) Init(q queue.Client, api client.QueueProtocolAPI)
- func (c *ChannelClient) ReWriteRawTx(param *types.ReWriteRawTx) ([]byte, error)
- func (c *ChannelClient) SignWalletRecoverTx(req *types.ReqSignWalletRecoverTx) (*types.ReplySignRawTx, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (c *ChannelClient) GetExecBalance(in *types.ReqGetExecBalance) (*types.ReplyGetExecBalance, error)
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 ¶
func (c *ChannelClient) GetTotalCoins(in *types.ReqGetTotalCoins) (*types.ReplyGetTotalCoins, error)
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 ¶
func (c *ChannelClient) Init(q queue.Client, api client.QueueProtocolAPI)
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