Versions in this module Expand all Collapse all v6 v6.4.0 May 18, 2020 Changes in this version + func InitCfg(cfg *types.RPC) + func InitFilterPrintFuncBlacklist() + func InitGrpcFuncBlacklist(cfg *types.RPC) + func InitGrpcFuncWhitelist(cfg *types.RPC) + func InitIPWhitelist(cfg *types.RPC) + func InitJrpcFuncBlacklist(cfg *types.RPC) + func InitJrpcFuncWhitelist(cfg *types.RPC) + type Chain33 struct + func (c *Chain33) AddSeqCallBack(in *types.BlockSeqCB, result *interface{}) error + func (c *Chain33) CloseQueue(in *types.ReqNil, result *interface{}) error + func (c *Chain33) ConvertExectoAddr(in rpctypes.ExecNameParm, result *string) error + func (c *Chain33) CreateNoBalanceTransaction(in *types.NoBalanceTx, result *string) error + func (c *Chain33) CreateNoBlanaceTxs(in *types.NoBalanceTxs, result *string) error + func (c *Chain33) CreateRawTransaction(in *rpctypes.CreateTx, result *interface{}) error + func (c *Chain33) CreateRawTxGroup(in *types.CreateTransactionGroup, result *interface{}) error + func (c *Chain33) CreateTransaction(in *rpctypes.CreateTxIn, result *interface{}) error + func (c *Chain33) DecodeRawTransaction(in *types.ReqDecodeRawTransaction, result *interface{}) error + func (c *Chain33) DumpPrivkey(in types.ReqString, result *interface{}) error + func (c *Chain33) DumpPrivkeysFile(in types.ReqPrivkeysFile, result *interface{}) error + func (c *Chain33) ExecWallet(in *rpctypes.ChainExecutor, result *interface{}) error + func (c *Chain33) GenSeed(in types.GenSeedLang, result *interface{}) error + func (c *Chain33) GetAccounts(in *types.ReqAccountList, result *interface{}) error + func (c *Chain33) GetAccountsV2(in *types.ReqNil, result *interface{}) error + func (c *Chain33) GetAddrOverview(in types.ReqAddr, result *interface{}) error + func (c *Chain33) GetAllExecBalance(in types.ReqAllExecBalance, result *interface{}) error + func (c *Chain33) GetBalance(in types.ReqBalance, result *interface{}) error + func (c *Chain33) GetBlockByHashes(in rpctypes.ReqHashes, result *interface{}) error + func (c *Chain33) GetBlockHash(in types.ReqInt, result *interface{}) error + func (c *Chain33) GetBlockOverview(in rpctypes.QueryParm, result *interface{}) error + func (c *Chain33) GetBlockSequences(in rpctypes.BlockParam, result *interface{}) error + func (c *Chain33) GetBlocks(in rpctypes.BlockParam, result *interface{}) error + func (c *Chain33) GetCoinSymbol(in types.ReqNil, result *interface{}) error + func (c *Chain33) GetExecBalance(in *types.ReqGetExecBalance, result *interface{}) error + func (c *Chain33) GetFatalFailure(in *types.ReqNil, result *interface{}) error + func (c *Chain33) GetHeaders(in types.ReqBlocks, result *interface{}) error + func (c *Chain33) GetHexTxByHash(in rpctypes.QueryParm, result *interface{}) error + func (c *Chain33) GetLastBlockSequence(in *types.ReqNil, result *interface{}) error + func (c *Chain33) GetLastHeader(in *types.ReqNil, result *interface{}) error + func (c *Chain33) GetLastMemPool(in types.ReqNil, result *interface{}) error + func (c *Chain33) GetMempool(in *types.ReqGetMempool, result *interface{}) error + func (c *Chain33) GetNetInfo(in types.P2PGetNetInfoReq, result *interface{}) error + func (c *Chain33) GetPeerInfo(in types.P2PGetPeerReq, result *interface{}) error + func (c *Chain33) GetProperFee(in types.ReqProperFee, result *interface{}) error + func (c *Chain33) GetSeed(in types.GetSeedByPw, result *interface{}) error + func (c *Chain33) GetSeqCallBackLastNum(in *types.ReqString, result *interface{}) error + func (c *Chain33) GetTimeStatus(in *types.ReqNil, result *interface{}) error + func (c *Chain33) GetTotalCoins(in *types.ReqGetTotalCoins, result *interface{}) error + func (c *Chain33) GetTxByAddr(in types.ReqAddr, result *interface{}) error + func (c *Chain33) GetTxByHashes(in rpctypes.ReqHashes, result *interface{}) error + func (c *Chain33) GetWalletStatus(in types.ReqNil, result *interface{}) error + func (c *Chain33) ImportPrivkey(in types.ReqWalletImportPrivkey, result *interface{}) error + func (c *Chain33) ImportPrivkeysFile(in types.ReqPrivkeysFile, result *interface{}) error + func (c *Chain33) IsNtpClockSync(in *types.ReqNil, result *interface{}) error + func (c *Chain33) IsSync(in *types.ReqNil, result *interface{}) error + func (c *Chain33) ListSeqCallBack(in *types.ReqNil, result *interface{}) error + func (c *Chain33) Lock(in types.ReqNil, result *interface{}) error + func (c *Chain33) MergeBalance(in types.ReqWalletMergeBalance, result *interface{}) error + func (c *Chain33) NewAccount(in types.ReqNewAccount, result *interface{}) error + func (c *Chain33) Query(in rpctypes.Query4Jrpc, result *interface{}) error + func (c *Chain33) QueryTotalFee(in *types.LocalDBGet, result *interface{}) error + func (c *Chain33) QueryTransaction(in rpctypes.QueryParm, result *interface{}) error + func (c *Chain33) ReWriteRawTx(in *rpctypes.ReWriteRawTx, result *interface{}) error + func (c *Chain33) SaveSeed(in types.SaveSeedByPw, result *interface{}) error + func (c *Chain33) SendToAddress(in types.ReqWalletSendToAddress, result *interface{}) error + func (c *Chain33) SendTransaction(in rpctypes.RawParm, result *interface{}) error + func (c *Chain33) SetLabl(in types.ReqWalletSetLabel, result *interface{}) error + func (c *Chain33) SetPasswd(in types.ReqWalletSetPasswd, result *interface{}) error + func (c *Chain33) SetTxFee(in types.ReqWalletSetFee, result *interface{}) error + func (c *Chain33) SignRawTx(in *types.ReqSignRawTx, result *interface{}) error + func (c *Chain33) UnLock(in types.WalletUnLock, result *interface{}) error + func (c *Chain33) Version(in *types.ReqNil, result *interface{}) error + func (c *Chain33) WalletTxList(in rpctypes.ReqWalletTransactionList, result *interface{}) error + type Grpc struct + func (g *Grpc) CloseQueue(ctx context.Context, in *pb.ReqNil) (*pb.Reply, error) + func (g *Grpc) CreateNoBalanceTransaction(ctx context.Context, in *pb.NoBalanceTx) (*pb.ReplySignRawTx, error) + func (g *Grpc) CreateNoBalanceTxs(ctx context.Context, in *pb.NoBalanceTxs) (*pb.ReplySignRawTx, error) + func (g *Grpc) CreateRawTransaction(ctx context.Context, in *pb.CreateTx) (*pb.UnsignTx, error) + func (g *Grpc) CreateRawTxGroup(ctx context.Context, in *pb.CreateTransactionGroup) (*pb.UnsignTx, error) + func (g *Grpc) CreateTransaction(ctx context.Context, in *pb.CreateTxIn) (*pb.UnsignTx, error) + func (g *Grpc) DumpPrivkey(ctx context.Context, in *pb.ReqString) (*pb.ReplyString, error) + func (g *Grpc) DumpPrivkeysFile(ctx context.Context, in *pb.ReqPrivkeysFile) (*pb.Reply, error) + func (g *Grpc) ExecWallet(ctx context.Context, in *pb.ChainExecutor) (*pb.Reply, error) + func (g *Grpc) GenSeed(ctx context.Context, in *pb.GenSeedLang) (*pb.ReplySeed, error) + func (g *Grpc) GetAccounts(ctx context.Context, in *pb.ReqNil) (*pb.WalletAccounts, error) + func (g *Grpc) GetAddrOverview(ctx context.Context, in *pb.ReqAddr) (*pb.AddrOverview, error) + func (g *Grpc) GetAllExecBalance(ctx context.Context, in *pb.ReqAllExecBalance) (*pb.AllExecBalance, error) + func (g *Grpc) GetBalance(ctx context.Context, in *pb.ReqBalance) (*pb.Accounts, error) + func (g *Grpc) GetBlockByHashes(ctx context.Context, in *pb.ReqHashes) (*pb.BlockDetails, error) + func (g *Grpc) GetBlockBySeq(ctx context.Context, in *pb.Int64) (*pb.BlockSeq, error) + func (g *Grpc) GetBlockHash(ctx context.Context, in *pb.ReqInt) (*pb.ReplyHash, error) + func (g *Grpc) GetBlockOverview(ctx context.Context, in *pb.ReqHash) (*pb.BlockOverview, error) + func (g *Grpc) GetBlocks(ctx context.Context, in *pb.ReqBlocks) (*pb.Reply, error) + func (g *Grpc) GetFatalFailure(ctx context.Context, in *pb.ReqNil) (*pb.Int32, error) + func (g *Grpc) GetFork(ctx context.Context, in *pb.ReqKey) (*pb.Int64, error) + func (g *Grpc) GetHeaders(ctx context.Context, in *pb.ReqBlocks) (*pb.Headers, error) + func (g *Grpc) GetHexTxByHash(ctx context.Context, in *pb.ReqHash) (*pb.HexTx, error) + func (g *Grpc) GetLastBlockSequence(ctx context.Context, in *pb.ReqNil) (*pb.Int64, error) + func (g *Grpc) GetLastHeader(ctx context.Context, in *pb.ReqNil) (*pb.Header, error) + func (g *Grpc) GetLastMemPool(ctx context.Context, in *pb.ReqNil) (*pb.ReplyTxList, error) + func (g *Grpc) GetMemPool(ctx context.Context, in *pb.ReqGetMempool) (*pb.ReplyTxList, error) + func (g *Grpc) GetParaTxByHeight(ctx context.Context, in *pb.ReqParaTxByHeight) (*pb.ParaTxDetails, error) + func (g *Grpc) GetParaTxByTitle(ctx context.Context, in *pb.ReqParaTxByTitle) (*pb.ParaTxDetails, error) + func (g *Grpc) GetPeerInfo(ctx context.Context, req *pb.P2PGetPeerReq) (*pb.PeerList, error) + func (g *Grpc) GetProperFee(ctx context.Context, in *pb.ReqProperFee) (*pb.ReplyProperFee, error) + func (g *Grpc) GetSeed(ctx context.Context, in *pb.GetSeedByPw) (*pb.ReplySeed, error) + func (g *Grpc) GetSequenceByHash(ctx context.Context, in *pb.ReqHash) (*pb.Int64, error) + func (g *Grpc) GetTransactionByAddr(ctx context.Context, in *pb.ReqAddr) (*pb.ReplyTxInfos, error) + func (g *Grpc) GetTransactionByHashes(ctx context.Context, in *pb.ReqHashes) (*pb.TransactionDetails, error) + func (g *Grpc) GetWalletStatus(ctx context.Context, in *pb.ReqNil) (*pb.WalletStatus, error) + func (g *Grpc) ImportPrivkey(ctx context.Context, in *pb.ReqWalletImportPrivkey) (*pb.WalletAccount, error) + func (g *Grpc) ImportPrivkeysFile(ctx context.Context, in *pb.ReqPrivkeysFile) (*pb.Reply, error) + func (g *Grpc) IsNtpClockSync(ctx context.Context, in *pb.ReqNil) (*pb.Reply, error) + func (g *Grpc) IsSync(ctx context.Context, in *pb.ReqNil) (*pb.Reply, error) + func (g *Grpc) LoadParaTxByTitle(ctx context.Context, in *pb.ReqHeightByTitle) (*pb.ReplyHeightByTitle, error) + func (g *Grpc) Lock(ctx context.Context, in *pb.ReqNil) (*pb.Reply, error) + func (g *Grpc) MergeBalance(ctx context.Context, in *pb.ReqWalletMergeBalance) (*pb.ReplyHashes, error) + func (g *Grpc) NetInfo(ctx context.Context, in *pb.P2PGetNetInfoReq) (*pb.NodeNetInfo, error) + func (g *Grpc) NewAccount(ctx context.Context, in *pb.ReqNewAccount) (*pb.WalletAccount, error) + func (g *Grpc) QueryChain(ctx context.Context, in *pb.ChainExecutor) (*pb.Reply, error) + func (g *Grpc) QueryConsensus(ctx context.Context, in *pb.ChainExecutor) (*pb.Reply, error) + func (g *Grpc) QueryRandNum(ctx context.Context, in *pb.ReqRandHash) (*pb.ReplyHash, error) + func (g *Grpc) QueryTransaction(ctx context.Context, in *pb.ReqHash) (*pb.TransactionDetail, error) + func (g *Grpc) ReWriteRawTx(ctx context.Context, in *pb.ReWriteRawTx) (*pb.UnsignTx, error) + func (g *Grpc) SaveSeed(ctx context.Context, in *pb.SaveSeedByPw) (*pb.Reply, error) + func (g *Grpc) SendToAddress(ctx context.Context, in *pb.ReqWalletSendToAddress) (*pb.ReplyHash, error) + func (g *Grpc) SendTransaction(ctx context.Context, in *pb.Transaction) (*pb.Reply, error) + func (g *Grpc) SetLabl(ctx context.Context, in *pb.ReqWalletSetLabel) (*pb.WalletAccount, error) + func (g *Grpc) SetPasswd(ctx context.Context, in *pb.ReqWalletSetPasswd) (*pb.Reply, error) + func (g *Grpc) SetTxFee(ctx context.Context, in *pb.ReqWalletSetFee) (*pb.Reply, error) + func (g *Grpc) SignRawTx(ctx context.Context, in *pb.ReqSignRawTx) (*pb.ReplySignRawTx, error) + func (g *Grpc) UnLock(ctx context.Context, in *pb.WalletUnLock) (*pb.Reply, error) + func (g *Grpc) Version(ctx context.Context, in *pb.ReqNil) (*pb.VersionInfo, error) + func (g *Grpc) WalletTransactionList(ctx context.Context, in *pb.ReqWalletTransactionList) (*pb.WalletTxDetails, error) + type Grpcserver struct + func NewGRpcServer(c queue.Client, api client.QueueProtocolAPI) *Grpcserver + func NewGrpcServer() *Grpcserver + func (g *Grpcserver) Listen() (int, error) + func (j *Grpcserver) Close() + type HTTPConn struct + func (c *HTTPConn) Close() error + func (c *HTTPConn) Read(p []byte) (n int, err error) + func (c *HTTPConn) Write(d []byte) (n int, err error) + type JSONRPCServer struct + func NewJSONRPCServer(c queue.Client, api client.QueueProtocolAPI) *JSONRPCServer + func (j *JSONRPCServer) Listen() (int, error) + func (s *JSONRPCServer) Close() + type RPC struct + func New(cfg *types.Chain33Config) *RPC + func (r *RPC) Close() + func (r *RPC) GRPC() *grpc.Server + func (r *RPC) GetQueueClient() queue.Client + func (r *RPC) JRPC() *rpc.Server + func (r *RPC) Listen() (port1 int, port2 int) + func (r *RPC) SetAPI(api client.QueueProtocolAPI) + func (r *RPC) SetQueueClient(c queue.Client) + func (r *RPC) SetQueueClientNoListen(c queue.Client) Other modules containing this package github.com/33cn/chain33