Documentation ¶
Index ¶
- type RpcServ
- func (t *RpcServ) ConfirmBlockChainStatus(gctx context.Context, req *pb.BCStatus) (*pb.BCTipStatus, error)
- func (t *RpcServ) DposCandidates(gctx context.Context, req *pb.DposCandidatesRequest) (*pb.DposCandidatesResponse, error)
- func (t *RpcServ) DposCheckResults(gctx context.Context, req *pb.DposCheckResultsRequest) (*pb.DposCheckResultsResponse, error)
- func (t *RpcServ) DposNominateRecords(gctx context.Context, req *pb.DposNominateRecordsRequest) (*pb.DposNominateRecordsResponse, error)
- func (t *RpcServ) DposNomineeRecords(gctx context.Context, req *pb.DposNomineeRecordsRequest) (*pb.DposNomineeRecordsResponse, error)
- func (t *RpcServ) DposStatus(gctx context.Context, req *pb.DposStatusRequest) (*pb.DposStatusResponse, error)
- func (t *RpcServ) DposVoteRecords(gctx context.Context, req *pb.DposVoteRecordsRequest) (*pb.DposVoteRecordsResponse, error)
- func (t *RpcServ) DposVotedRecords(gctx context.Context, req *pb.DposVotedRecordsRequest) (*pb.DposVotedRecordsResponse, error)
- func (t *RpcServ) GetAccountByAK(gctx context.Context, req *pb.AK2AccountRequest) (*pb.AK2AccountResponse, error)
- func (t *RpcServ) GetAccountContracts(gctx context.Context, req *pb.GetAccountContractsRequest) (*pb.GetAccountContractsResponse, error)
- func (t *RpcServ) GetAddressContracts(gctx context.Context, req *pb.AddressContractsRequest) (*pb.AddressContractsResponse, error)
- func (t *RpcServ) GetBalance(gctx context.Context, req *pb.AddressStatus) (*pb.AddressStatus, error)
- func (t *RpcServ) GetBalanceDetail(gctx context.Context, req *pb.AddressBalanceStatus) (*pb.AddressBalanceStatus, error)
- func (t *RpcServ) GetBlock(gctx context.Context, req *pb.BlockID) (*pb.Block, error)
- func (t *RpcServ) GetBlockByHeight(gctx context.Context, req *pb.BlockHeight) (*pb.Block, error)
- func (t *RpcServ) GetBlockChainStatus(gctx context.Context, req *pb.BCStatus) (*pb.BCStatus, error)
- func (t *RpcServ) GetBlockChains(gctx context.Context, req *pb.CommonIn) (*pb.BlockChains, error)
- func (t *RpcServ) GetConsensusStatus(gctx context.Context, req *pb.ConsensusStatRequest) (*pb.ConsensusStatus, error)
- func (t *RpcServ) GetFrozenBalance(gctx context.Context, req *pb.AddressStatus) (*pb.AddressStatus, error)
- func (t *RpcServ) GetNetURL(gctx context.Context, req *pb.CommonIn) (*pb.RawUrl, error)
- func (t *RpcServ) GetSystemStatus(gctx context.Context, req *pb.CommonIn) (*pb.SystemsStatusReply, error)
- func (t *RpcServ) PostTx(gctx context.Context, req *pb.TxStatus) (*pb.CommonReply, error)
- func (t *RpcServ) PreExec(gctx context.Context, req *pb.InvokeRPCRequest) (*pb.InvokeRPCResponse, error)
- func (t *RpcServ) PreExecWithSelectUTXO(gctx context.Context, req *pb.PreExecWithSelectUTXORequest) (*pb.PreExecWithSelectUTXOResponse, error)
- func (t *RpcServ) QueryACL(gctx context.Context, req *pb.AclStatus) (*pb.AclStatus, error)
- func (t *RpcServ) QueryContractStatData(gctx context.Context, req *pb.ContractStatDataRequest) (*pb.ContractStatDataResponse, error)
- func (t *RpcServ) QueryTx(gctx context.Context, req *pb.TxStatus) (*pb.TxStatus, error)
- func (t *RpcServ) QueryUtxoRecord(gctx context.Context, req *pb.UtxoRecordDetail) (*pb.UtxoRecordDetail, error)
- func (t *RpcServ) SelectUTXO(gctx context.Context, req *pb.UtxoInput) (*pb.UtxoOutput, error)
- func (t *RpcServ) SelectUTXOBySize(gctx context.Context, req *pb.UtxoInput) (*pb.UtxoOutput, error)
- func (t *RpcServ) UnaryInterceptor() grpc.UnaryServerInterceptor
- type RpcServMG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RpcServ ¶
type RpcServ struct {
// contains filtered or unexported fields
}
func (*RpcServ) ConfirmBlockChainStatus ¶
func (t *RpcServ) ConfirmBlockChainStatus(gctx context.Context, req *pb.BCStatus) (*pb.BCTipStatus, error)
ConfirmBlockChainStatus confirm is_trunk
func (*RpcServ) DposCandidates ¶
func (t *RpcServ) DposCandidates(gctx context.Context, req *pb.DposCandidatesRequest) (*pb.DposCandidatesResponse, error)
DposCandidates get all candidates of the tdpos consensus
func (*RpcServ) DposCheckResults ¶
func (t *RpcServ) DposCheckResults(gctx context.Context, req *pb.DposCheckResultsRequest) (*pb.DposCheckResultsResponse, error)
DposCheckResults get check results of a specific term
func (*RpcServ) DposNominateRecords ¶
func (t *RpcServ) DposNominateRecords(gctx context.Context, req *pb.DposNominateRecordsRequest) (*pb.DposNominateRecordsResponse, error)
DposNominateRecords get all records nominated by an user
func (*RpcServ) DposNomineeRecords ¶
func (t *RpcServ) DposNomineeRecords(gctx context.Context, req *pb.DposNomineeRecordsRequest) (*pb.DposNomineeRecordsResponse, error)
DposNomineeRecords get nominated record of a candidate
func (*RpcServ) DposStatus ¶
func (t *RpcServ) DposStatus(gctx context.Context, req *pb.DposStatusRequest) (*pb.DposStatusResponse, error)
DposStatus get dpos status
func (*RpcServ) DposVoteRecords ¶
func (t *RpcServ) DposVoteRecords(gctx context.Context, req *pb.DposVoteRecordsRequest) (*pb.DposVoteRecordsResponse, error)
DposVoteRecords get all vote records voted by an user
func (*RpcServ) DposVotedRecords ¶
func (t *RpcServ) DposVotedRecords(gctx context.Context, req *pb.DposVotedRecordsRequest) (*pb.DposVotedRecordsResponse, error)
DposVotedRecords get all vote records of a candidate
func (*RpcServ) GetAccountByAK ¶
func (t *RpcServ) GetAccountByAK(gctx context.Context, req *pb.AK2AccountRequest) (*pb.AK2AccountResponse, error)
GetAccountByAK get account list with contain ak
func (*RpcServ) GetAccountContracts ¶
func (t *RpcServ) GetAccountContracts(gctx context.Context, req *pb.GetAccountContractsRequest) (*pb.GetAccountContractsResponse, error)
GetAccountContracts get account request
func (*RpcServ) GetAddressContracts ¶
func (t *RpcServ) GetAddressContracts(gctx context.Context, req *pb.AddressContractsRequest) (*pb.AddressContractsResponse, error)
GetAddressContracts get contracts of accounts contain a specific address
func (*RpcServ) GetBalance ¶
func (t *RpcServ) GetBalance(gctx context.Context, req *pb.AddressStatus) (*pb.AddressStatus, error)
GetBalance get balance for account or addr
func (*RpcServ) GetBalanceDetail ¶
func (t *RpcServ) GetBalanceDetail(gctx context.Context, req *pb.AddressBalanceStatus) (*pb.AddressBalanceStatus, error)
GetBalanceDetail get balance frozened for account or addr
func (*RpcServ) GetBlockByHeight ¶
GetBlockByHeight get trunk block by height
func (*RpcServ) GetBlockChainStatus ¶
GetBlockChainStatus get systemstatus
func (*RpcServ) GetBlockChains ¶
GetBlockChains get BlockChains
func (*RpcServ) GetConsensusStatus ¶
func (t *RpcServ) GetConsensusStatus(gctx context.Context, req *pb.ConsensusStatRequest) (*pb.ConsensusStatus, error)
func (*RpcServ) GetFrozenBalance ¶
func (t *RpcServ) GetFrozenBalance(gctx context.Context, req *pb.AddressStatus) (*pb.AddressStatus, error)
GetFrozenBalance get balance frozened for account or addr
func (*RpcServ) GetSystemStatus ¶
func (t *RpcServ) GetSystemStatus(gctx context.Context, req *pb.CommonIn) (*pb.SystemsStatusReply, error)
GetSystemStatus get systemstatus
func (*RpcServ) PreExec ¶
func (t *RpcServ) PreExec(gctx context.Context, req *pb.InvokeRPCRequest) (*pb.InvokeRPCResponse, error)
PreExec smart contract preExec process
func (*RpcServ) PreExecWithSelectUTXO ¶
func (t *RpcServ) PreExecWithSelectUTXO(gctx context.Context, req *pb.PreExecWithSelectUTXORequest) (*pb.PreExecWithSelectUTXOResponse, error)
PreExecWithSelectUTXO preExec + selectUtxo
func (*RpcServ) QueryContractStatData ¶
func (t *RpcServ) QueryContractStatData(gctx context.Context, req *pb.ContractStatDataRequest) (*pb.ContractStatDataResponse, error)
QueryContractStatData query statistic info about contract
func (*RpcServ) QueryUtxoRecord ¶
func (t *RpcServ) QueryUtxoRecord(gctx context.Context, req *pb.UtxoRecordDetail) (*pb.UtxoRecordDetail, error)
QueryUtxoRecord query utxo records
func (*RpcServ) SelectUTXO ¶
SelectUTXO select utxo inputs depending on amount
func (*RpcServ) SelectUTXOBySize ¶
SelectUTXOBySize select utxo inputs depending on size
func (*RpcServ) UnaryInterceptor ¶
func (t *RpcServ) UnaryInterceptor() grpc.UnaryServerInterceptor
UnaryInterceptor provides a hook to intercept the execution of a unary RPC on the server.
type RpcServMG ¶
type RpcServMG struct {
// contains filtered or unexported fields
}
rpc server启停控制管理