Versions in this module Expand all Collapse all v1 v1.1.21 Jul 5, 2021 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 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) GetAccount(ctx context.Context, in *pb.ReqGetAccount) (*pb.WalletAccount, 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) GetServerTime(ctx context.Context, in *pb.ReqNil) (*pb.ServerTime, 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) SendTransactionSync(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.TuringchainConfig) *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) + type Turingchain struct + func (c *Turingchain) AddPushSubscribe(in *types.PushSubscribeReq, result *interface{}) error + func (c *Turingchain) CloseQueue(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) ConvertExectoAddr(in rpctypes.ExecNameParm, result *string) error + func (c *Turingchain) CreateNoBalanceTransaction(in *types.NoBalanceTx, result *string) error + func (c *Turingchain) CreateNoBlanaceTxs(in *types.NoBalanceTxs, result *string) error + func (c *Turingchain) CreateRawTransaction(in *rpctypes.CreateTx, result *interface{}) error + func (c *Turingchain) CreateRawTxGroup(in *types.CreateTransactionGroup, result *interface{}) error + func (c *Turingchain) CreateTransaction(in *rpctypes.CreateTxIn, result *interface{}) error + func (c *Turingchain) DecodeRawTransaction(in *types.ReqDecodeRawTransaction, result *interface{}) error + func (c *Turingchain) DumpPrivkey(in types.ReqString, result *interface{}) error + func (c *Turingchain) DumpPrivkeysFile(in types.ReqPrivkeysFile, result *interface{}) error + func (c *Turingchain) ExecWallet(in *rpctypes.ChainExecutor, result *interface{}) error + func (c *Turingchain) GenSeed(in types.GenSeedLang, result *interface{}) error + func (c *Turingchain) GetAccount(in types.ReqGetAccount, result *interface{}) error + func (c *Turingchain) GetAccounts(in *types.ReqAccountList, result *interface{}) error + func (c *Turingchain) GetAccountsV2(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) GetAddrOverview(in types.ReqAddr, result *interface{}) error + func (c *Turingchain) GetAllExecBalance(in types.ReqAllExecBalance, result *interface{}) error + func (c *Turingchain) GetBalance(in types.ReqBalance, result *interface{}) error + func (c *Turingchain) GetBlockByHashes(in rpctypes.ReqHashes, result *interface{}) error + func (c *Turingchain) GetBlockBySeq(in types.Int64, result *interface{}) error + func (c *Turingchain) GetBlockHash(in types.ReqInt, result *interface{}) error + func (c *Turingchain) GetBlockOverview(in rpctypes.QueryParm, result *interface{}) error + func (c *Turingchain) GetBlockSequences(in rpctypes.BlockParam, result *interface{}) error + func (c *Turingchain) GetBlocks(in rpctypes.BlockParam, result *interface{}) error + func (c *Turingchain) GetCoinSymbol(in types.ReqNil, result *interface{}) error + func (c *Turingchain) GetExecBalance(in *types.ReqGetExecBalance, result *interface{}) error + func (c *Turingchain) GetFatalFailure(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) GetHeaders(in types.ReqBlocks, result *interface{}) error + func (c *Turingchain) GetHexTxByHash(in rpctypes.QueryParm, result *interface{}) error + func (c *Turingchain) GetLastBlockSequence(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) GetLastHeader(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) GetLastMemPool(in types.ReqNil, result *interface{}) error + func (c *Turingchain) GetMempool(in *types.ReqGetMempool, result *interface{}) error + func (c *Turingchain) GetNetInfo(in types.P2PGetNetInfoReq, result *interface{}) error + func (c *Turingchain) GetParaTxByHeight(req types.ReqParaTxByHeight, result *interface{}) error + func (c *Turingchain) GetParaTxByTitle(req types.ReqParaTxByTitle, result *interface{}) error + func (c *Turingchain) GetPeerInfo(in types.P2PGetPeerReq, result *interface{}) error + func (c *Turingchain) GetProperFee(in types.ReqProperFee, result *interface{}) error + func (c *Turingchain) GetPushSeqLastNum(in *types.ReqString, result *interface{}) error + func (c *Turingchain) GetSeed(in types.GetSeedByPw, result *interface{}) error + func (c *Turingchain) GetSequenceByHash(in rpctypes.ReqHashes, result *interface{}) error + func (c *Turingchain) GetServerTime(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) GetTimeStatus(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) GetTotalCoins(in *types.ReqGetTotalCoins, result *interface{}) error + func (c *Turingchain) GetTxByAddr(in types.ReqAddr, result *interface{}) error + func (c *Turingchain) GetTxByHashes(in rpctypes.ReqHashes, result *interface{}) error + func (c *Turingchain) GetWalletStatus(in types.ReqNil, result *interface{}) error + func (c *Turingchain) ImportPrivkey(in types.ReqWalletImportPrivkey, result *interface{}) error + func (c *Turingchain) ImportPrivkeysFile(in types.ReqPrivkeysFile, result *interface{}) error + func (c *Turingchain) IsNtpClockSync(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) IsSync(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) ListPushes(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) LoadParaTxByTitle(req types.ReqHeightByTitle, result *interface{}) error + func (c *Turingchain) Lock(in types.ReqNil, result *interface{}) error + func (c *Turingchain) MergeBalance(in types.ReqWalletMergeBalance, result *interface{}) error + func (c *Turingchain) NetProtocols(in types.ReqNil, result *interface{}) error + func (c *Turingchain) NewAccount(in types.ReqNewAccount, result *interface{}) error + func (c *Turingchain) Query(in rpctypes.Query4Jrpc, result *interface{}) error + func (c *Turingchain) QueryChain(in rpctypes.ChainExecutor, result *interface{}) error + func (c *Turingchain) QueryTotalFee(in *types.LocalDBGet, result *interface{}) error + func (c *Turingchain) QueryTransaction(in rpctypes.QueryParm, result *interface{}) error + func (c *Turingchain) ReWriteRawTx(in *rpctypes.ReWriteRawTx, result *interface{}) error + func (c *Turingchain) SaveSeed(in types.SaveSeedByPw, result *interface{}) error + func (c *Turingchain) SendToAddress(in types.ReqWalletSendToAddress, result *interface{}) error + func (c *Turingchain) SendTransaction(in rpctypes.RawParm, result *interface{}) error + func (c *Turingchain) SendTransactionSync(in rpctypes.RawParm, result *interface{}) error + func (c *Turingchain) SetLabl(in types.ReqWalletSetLabel, result *interface{}) error + func (c *Turingchain) SetPasswd(in types.ReqWalletSetPasswd, result *interface{}) error + func (c *Turingchain) SetTxFee(in types.ReqWalletSetFee, result *interface{}) error + func (c *Turingchain) SignRawTx(in *types.ReqSignRawTx, result *interface{}) error + func (c *Turingchain) UnLock(in types.WalletUnLock, result *interface{}) error + func (c *Turingchain) Version(in *types.ReqNil, result *interface{}) error + func (c *Turingchain) WalletTxList(in rpctypes.ReqWalletTransactionList, result *interface{}) error