Documentation ¶
Overview ¶
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pactus is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBlockchainHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBlockchainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlockchainClient) error
- func RegisterBlockchainHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBlockchainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlockchainServer) error
- func RegisterBlockchainServer(s grpc.ServiceRegistrar, srv BlockchainServer)
- func RegisterNetworkHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNetworkHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkClient) error
- func RegisterNetworkHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNetworkHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkServer) error
- func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer)
- func RegisterTransactionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTransactionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionClient) error
- func RegisterTransactionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionServer) error
- func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
- func RegisterWalletHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error
- func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServer) error
- func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer)
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AccountInfo) GetAddress() string
- func (x *AccountInfo) GetBalance() int64
- func (x *AccountInfo) GetData() []byte
- func (x *AccountInfo) GetHash() []byte
- func (x *AccountInfo) GetNumber() int32
- func (*AccountInfo) ProtoMessage()
- func (x *AccountInfo) ProtoReflect() protoreflect.Message
- func (x *AccountInfo) Reset()
- func (x *AccountInfo) String() string
- type BlockHeaderInfo
- func (*BlockHeaderInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BlockHeaderInfo) GetPrevBlockHash() []byte
- func (x *BlockHeaderInfo) GetProposerAddress() string
- func (x *BlockHeaderInfo) GetSortitionSeed() []byte
- func (x *BlockHeaderInfo) GetStateRoot() []byte
- func (x *BlockHeaderInfo) GetVersion() int32
- func (*BlockHeaderInfo) ProtoMessage()
- func (x *BlockHeaderInfo) ProtoReflect() protoreflect.Message
- func (x *BlockHeaderInfo) Reset()
- func (x *BlockHeaderInfo) String() string
- type BlockVerbosity
- func (BlockVerbosity) Descriptor() protoreflect.EnumDescriptor
- func (x BlockVerbosity) Enum() *BlockVerbosity
- func (BlockVerbosity) EnumDescriptor() ([]byte, []int)deprecated
- func (x BlockVerbosity) Number() protoreflect.EnumNumber
- func (x BlockVerbosity) String() string
- func (BlockVerbosity) Type() protoreflect.EnumType
- type BlockchainClient
- type BlockchainServer
- type BroadcastTransactionRequest
- func (*BroadcastTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastTransactionRequest) GetSignedRawTransaction() []byte
- func (*BroadcastTransactionRequest) ProtoMessage()
- func (x *BroadcastTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *BroadcastTransactionRequest) Reset()
- func (x *BroadcastTransactionRequest) String() string
- type BroadcastTransactionResponse
- func (*BroadcastTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastTransactionResponse) GetId() []byte
- func (*BroadcastTransactionResponse) ProtoMessage()
- func (x *BroadcastTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *BroadcastTransactionResponse) Reset()
- func (x *BroadcastTransactionResponse) String() string
- type CalculateFeeRequest
- func (*CalculateFeeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateFeeRequest) GetAmount() int64
- func (x *CalculateFeeRequest) GetPayloadType() PayloadType
- func (*CalculateFeeRequest) ProtoMessage()
- func (x *CalculateFeeRequest) ProtoReflect() protoreflect.Message
- func (x *CalculateFeeRequest) Reset()
- func (x *CalculateFeeRequest) String() string
- type CalculateFeeResponse
- func (*CalculateFeeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateFeeResponse) GetFee() int64
- func (*CalculateFeeResponse) ProtoMessage()
- func (x *CalculateFeeResponse) ProtoReflect() protoreflect.Message
- func (x *CalculateFeeResponse) Reset()
- func (x *CalculateFeeResponse) String() string
- type CertificateInfo
- func (*CertificateInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CertificateInfo) GetAbsentees() []int32
- func (x *CertificateInfo) GetCommitters() []int32
- func (x *CertificateInfo) GetHash() []byte
- func (x *CertificateInfo) GetRound() int32
- func (x *CertificateInfo) GetSignature() []byte
- func (*CertificateInfo) ProtoMessage()
- func (x *CertificateInfo) ProtoReflect() protoreflect.Message
- func (x *CertificateInfo) Reset()
- func (x *CertificateInfo) String() string
- type ConsensusInfo
- func (*ConsensusInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ConsensusInfo) GetActive() bool
- func (x *ConsensusInfo) GetAddress() string
- func (x *ConsensusInfo) GetHeight() uint32
- func (x *ConsensusInfo) GetRound() int32
- func (x *ConsensusInfo) GetVotes() []*VoteInfo
- func (*ConsensusInfo) ProtoMessage()
- func (x *ConsensusInfo) ProtoReflect() protoreflect.Message
- func (x *ConsensusInfo) Reset()
- func (x *ConsensusInfo) String() string
- type CreateWalletRequest
- func (*CreateWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWalletRequest) GetLanguage() string
- func (x *CreateWalletRequest) GetMnemonic() string
- func (x *CreateWalletRequest) GetPassword() string
- func (x *CreateWalletRequest) GetWalletName() string
- func (*CreateWalletRequest) ProtoMessage()
- func (x *CreateWalletRequest) ProtoReflect() protoreflect.Message
- func (x *CreateWalletRequest) Reset()
- func (x *CreateWalletRequest) String() string
- type CreateWalletResponse
- func (*CreateWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWalletResponse) GetWalletName() string
- func (*CreateWalletResponse) ProtoMessage()
- func (x *CreateWalletResponse) ProtoReflect() protoreflect.Message
- func (x *CreateWalletResponse) Reset()
- func (x *CreateWalletResponse) String() string
- type GetAccountRequest
- type GetAccountResponse
- func (*GetAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountResponse) GetAccount() *AccountInfo
- func (*GetAccountResponse) ProtoMessage()
- func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountResponse) Reset()
- func (x *GetAccountResponse) String() string
- type GetBlockHashRequest
- func (*GetBlockHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHashRequest) GetHeight() uint32
- func (*GetBlockHashRequest) ProtoMessage()
- func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockHashRequest) Reset()
- func (x *GetBlockHashRequest) String() string
- type GetBlockHashResponse
- func (*GetBlockHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHashResponse) GetHash() []byte
- func (*GetBlockHashResponse) ProtoMessage()
- func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockHashResponse) Reset()
- func (x *GetBlockHashResponse) String() string
- type GetBlockHeightRequest
- func (*GetBlockHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHeightRequest) GetHash() []byte
- func (*GetBlockHeightRequest) ProtoMessage()
- func (x *GetBlockHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockHeightRequest) Reset()
- func (x *GetBlockHeightRequest) String() string
- type GetBlockHeightResponse
- func (*GetBlockHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockHeightResponse) GetHeight() uint32
- func (*GetBlockHeightResponse) ProtoMessage()
- func (x *GetBlockHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockHeightResponse) Reset()
- func (x *GetBlockHeightResponse) String() string
- type GetBlockRequest
- func (*GetBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockRequest) GetHeight() uint32
- func (x *GetBlockRequest) GetVerbosity() BlockVerbosity
- func (*GetBlockRequest) ProtoMessage()
- func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockRequest) Reset()
- func (x *GetBlockRequest) String() string
- type GetBlockResponse
- func (*GetBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockResponse) GetBlockTime() uint32
- func (x *GetBlockResponse) GetData() []byte
- func (x *GetBlockResponse) GetHash() []byte
- func (x *GetBlockResponse) GetHeader() *BlockHeaderInfo
- func (x *GetBlockResponse) GetHeight() uint32
- func (x *GetBlockResponse) GetPrevCert() *CertificateInfo
- func (x *GetBlockResponse) GetTxs() []*TransactionInfo
- func (*GetBlockResponse) ProtoMessage()
- func (x *GetBlockResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockResponse) Reset()
- func (x *GetBlockResponse) String() string
- type GetBlockchainInfoRequest
- type GetBlockchainInfoResponse
- func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockchainInfoResponse) GetCommitteePower() int64
- func (x *GetBlockchainInfoResponse) GetCommitteeValidators() []*ValidatorInfo
- func (x *GetBlockchainInfoResponse) GetLastBlockHash() []byte
- func (x *GetBlockchainInfoResponse) GetLastBlockHeight() uint32
- func (x *GetBlockchainInfoResponse) GetTotalAccounts() int32
- func (x *GetBlockchainInfoResponse) GetTotalPower() int64
- func (x *GetBlockchainInfoResponse) GetTotalValidators() int32
- func (*GetBlockchainInfoResponse) ProtoMessage()
- func (x *GetBlockchainInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetBlockchainInfoResponse) Reset()
- func (x *GetBlockchainInfoResponse) String() string
- type GetConsensusInfoRequest
- type GetConsensusInfoResponse
- func (*GetConsensusInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConsensusInfoResponse) GetInstances() []*ConsensusInfo
- func (*GetConsensusInfoResponse) ProtoMessage()
- func (x *GetConsensusInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetConsensusInfoResponse) Reset()
- func (x *GetConsensusInfoResponse) String() string
- type GetNetworkInfoRequest
- type GetNetworkInfoResponse
- func (*GetNetworkInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNetworkInfoResponse) GetConnectedPeers() []*PeerInfo
- func (x *GetNetworkInfoResponse) GetConnectedPeersCount() uint32
- func (x *GetNetworkInfoResponse) GetNetworkName() string
- func (x *GetNetworkInfoResponse) GetReceivedBytes() map[uint32]uint64
- func (x *GetNetworkInfoResponse) GetSentBytes() map[uint32]uint64
- func (x *GetNetworkInfoResponse) GetTotalReceivedBytes() uint32
- func (x *GetNetworkInfoResponse) GetTotalSentBytes() uint32
- func (*GetNetworkInfoResponse) ProtoMessage()
- func (x *GetNetworkInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetNetworkInfoResponse) Reset()
- func (x *GetNetworkInfoResponse) String() string
- type GetNodeInfoRequest
- type GetNodeInfoResponse
- func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNodeInfoResponse) GetAddrs() []string
- func (x *GetNodeInfoResponse) GetAgent() string
- func (x *GetNodeInfoResponse) GetMoniker() string
- func (x *GetNodeInfoResponse) GetPeerId() []byte
- func (x *GetNodeInfoResponse) GetProtocols() []string
- func (x *GetNodeInfoResponse) GetReachability() string
- func (x *GetNodeInfoResponse) GetServices() []int32
- func (x *GetNodeInfoResponse) GetServicesNames() []string
- func (x *GetNodeInfoResponse) GetStartedAt() uint64
- func (*GetNodeInfoResponse) ProtoMessage()
- func (x *GetNodeInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetNodeInfoResponse) Reset()
- func (x *GetNodeInfoResponse) String() string
- type GetPublicKeyRequest
- func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicKeyRequest) GetAddress() string
- func (*GetPublicKeyRequest) ProtoMessage()
- func (x *GetPublicKeyRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublicKeyRequest) Reset()
- func (x *GetPublicKeyRequest) String() string
- type GetPublicKeyResponse
- func (*GetPublicKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicKeyResponse) GetPublicKey() string
- func (*GetPublicKeyResponse) ProtoMessage()
- func (x *GetPublicKeyResponse) ProtoReflect() protoreflect.Message
- func (x *GetPublicKeyResponse) Reset()
- func (x *GetPublicKeyResponse) String() string
- type GetRawBondTransactionRequest
- func (*GetRawBondTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRawBondTransactionRequest) GetFee() int64
- func (x *GetRawBondTransactionRequest) GetLockTime() uint32
- func (x *GetRawBondTransactionRequest) GetMemo() string
- func (x *GetRawBondTransactionRequest) GetPublicKey() string
- func (x *GetRawBondTransactionRequest) GetReceiver() string
- func (x *GetRawBondTransactionRequest) GetSender() string
- func (x *GetRawBondTransactionRequest) GetStake() int64
- func (*GetRawBondTransactionRequest) ProtoMessage()
- func (x *GetRawBondTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetRawBondTransactionRequest) Reset()
- func (x *GetRawBondTransactionRequest) String() string
- type GetRawTransactionResponse
- func (*GetRawTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRawTransactionResponse) GetRawTransaction() []byte
- func (*GetRawTransactionResponse) ProtoMessage()
- func (x *GetRawTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *GetRawTransactionResponse) Reset()
- func (x *GetRawTransactionResponse) String() string
- type GetRawTransferTransactionRequest
- func (*GetRawTransferTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRawTransferTransactionRequest) GetAmount() int64
- func (x *GetRawTransferTransactionRequest) GetFee() int64
- func (x *GetRawTransferTransactionRequest) GetLockTime() uint32
- func (x *GetRawTransferTransactionRequest) GetMemo() string
- func (x *GetRawTransferTransactionRequest) GetReceiver() string
- func (x *GetRawTransferTransactionRequest) GetSender() string
- func (*GetRawTransferTransactionRequest) ProtoMessage()
- func (x *GetRawTransferTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetRawTransferTransactionRequest) Reset()
- func (x *GetRawTransferTransactionRequest) String() string
- type GetRawUnBondTransactionRequest
- func (*GetRawUnBondTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRawUnBondTransactionRequest) GetLockTime() uint32
- func (x *GetRawUnBondTransactionRequest) GetMemo() string
- func (x *GetRawUnBondTransactionRequest) GetValidatorAddress() string
- func (*GetRawUnBondTransactionRequest) ProtoMessage()
- func (x *GetRawUnBondTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetRawUnBondTransactionRequest) Reset()
- func (x *GetRawUnBondTransactionRequest) String() string
- type GetRawWithdrawTransactionRequest
- func (*GetRawWithdrawTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRawWithdrawTransactionRequest) GetAccountAddress() string
- func (x *GetRawWithdrawTransactionRequest) GetAmount() int64
- func (x *GetRawWithdrawTransactionRequest) GetFee() int64
- func (x *GetRawWithdrawTransactionRequest) GetLockTime() uint32
- func (x *GetRawWithdrawTransactionRequest) GetMemo() string
- func (x *GetRawWithdrawTransactionRequest) GetValidatorAddress() string
- func (*GetRawWithdrawTransactionRequest) ProtoMessage()
- func (x *GetRawWithdrawTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetRawWithdrawTransactionRequest) Reset()
- func (x *GetRawWithdrawTransactionRequest) String() string
- type GetTransactionRequest
- func (*GetTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionRequest) GetId() []byte
- func (x *GetTransactionRequest) GetVerbosity() TransactionVerbosity
- func (*GetTransactionRequest) ProtoMessage()
- func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *GetTransactionRequest) Reset()
- func (x *GetTransactionRequest) String() string
- type GetTransactionResponse
- func (*GetTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTransactionResponse) GetBlockHeight() uint32
- func (x *GetTransactionResponse) GetBlockTime() uint32
- func (x *GetTransactionResponse) GetTransaction() *TransactionInfo
- func (*GetTransactionResponse) ProtoMessage()
- func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *GetTransactionResponse) Reset()
- func (x *GetTransactionResponse) String() string
- type GetValidatorAddressRequest
- func (*GetValidatorAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorAddressRequest) GetPublicKey() string
- func (*GetValidatorAddressRequest) ProtoMessage()
- func (x *GetValidatorAddressRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorAddressRequest) Reset()
- func (x *GetValidatorAddressRequest) String() string
- type GetValidatorAddressResponse
- func (*GetValidatorAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorAddressResponse) GetAddress() string
- func (*GetValidatorAddressResponse) ProtoMessage()
- func (x *GetValidatorAddressResponse) ProtoReflect() protoreflect.Message
- func (x *GetValidatorAddressResponse) Reset()
- func (x *GetValidatorAddressResponse) String() string
- type GetValidatorAddressesRequest
- func (*GetValidatorAddressesRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetValidatorAddressesRequest) ProtoMessage()
- func (x *GetValidatorAddressesRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorAddressesRequest) Reset()
- func (x *GetValidatorAddressesRequest) String() string
- type GetValidatorAddressesResponse
- func (*GetValidatorAddressesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorAddressesResponse) GetAddresses() []string
- func (*GetValidatorAddressesResponse) ProtoMessage()
- func (x *GetValidatorAddressesResponse) ProtoReflect() protoreflect.Message
- func (x *GetValidatorAddressesResponse) Reset()
- func (x *GetValidatorAddressesResponse) String() string
- type GetValidatorByNumberRequest
- func (*GetValidatorByNumberRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorByNumberRequest) GetNumber() int32
- func (*GetValidatorByNumberRequest) ProtoMessage()
- func (x *GetValidatorByNumberRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorByNumberRequest) Reset()
- func (x *GetValidatorByNumberRequest) String() string
- type GetValidatorRequest
- func (*GetValidatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorRequest) GetAddress() string
- func (*GetValidatorRequest) ProtoMessage()
- func (x *GetValidatorRequest) ProtoReflect() protoreflect.Message
- func (x *GetValidatorRequest) Reset()
- func (x *GetValidatorRequest) String() string
- type GetValidatorResponse
- func (*GetValidatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetValidatorResponse) GetValidator() *ValidatorInfo
- func (*GetValidatorResponse) ProtoMessage()
- func (x *GetValidatorResponse) ProtoReflect() protoreflect.Message
- func (x *GetValidatorResponse) Reset()
- func (x *GetValidatorResponse) String() string
- type LoadWalletRequest
- func (*LoadWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoadWalletRequest) GetWalletName() string
- func (*LoadWalletRequest) ProtoMessage()
- func (x *LoadWalletRequest) ProtoReflect() protoreflect.Message
- func (x *LoadWalletRequest) Reset()
- func (x *LoadWalletRequest) String() string
- type LoadWalletResponse
- func (*LoadWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoadWalletResponse) GetWalletName() string
- func (*LoadWalletResponse) ProtoMessage()
- func (x *LoadWalletResponse) ProtoReflect() protoreflect.Message
- func (x *LoadWalletResponse) Reset()
- func (x *LoadWalletResponse) String() string
- type LockWalletRequest
- func (*LockWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LockWalletRequest) GetWalletName() string
- func (*LockWalletRequest) ProtoMessage()
- func (x *LockWalletRequest) ProtoReflect() protoreflect.Message
- func (x *LockWalletRequest) Reset()
- func (x *LockWalletRequest) String() string
- type LockWalletResponse
- func (*LockWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LockWalletResponse) GetWalletName() string
- func (*LockWalletResponse) ProtoMessage()
- func (x *LockWalletResponse) ProtoReflect() protoreflect.Message
- func (x *LockWalletResponse) Reset()
- func (x *LockWalletResponse) String() string
- type NetworkClient
- type NetworkServer
- type PayloadBond
- func (*PayloadBond) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadBond) GetReceiver() string
- func (x *PayloadBond) GetSender() string
- func (x *PayloadBond) GetStake() int64
- func (*PayloadBond) ProtoMessage()
- func (x *PayloadBond) ProtoReflect() protoreflect.Message
- func (x *PayloadBond) Reset()
- func (x *PayloadBond) String() string
- type PayloadSortition
- func (*PayloadSortition) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadSortition) GetAddress() string
- func (x *PayloadSortition) GetProof() []byte
- func (*PayloadSortition) ProtoMessage()
- func (x *PayloadSortition) ProtoReflect() protoreflect.Message
- func (x *PayloadSortition) Reset()
- func (x *PayloadSortition) String() string
- type PayloadTransfer
- func (*PayloadTransfer) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadTransfer) GetAmount() int64
- func (x *PayloadTransfer) GetReceiver() string
- func (x *PayloadTransfer) GetSender() string
- func (*PayloadTransfer) ProtoMessage()
- func (x *PayloadTransfer) ProtoReflect() protoreflect.Message
- func (x *PayloadTransfer) Reset()
- func (x *PayloadTransfer) String() string
- type PayloadType
- func (PayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x PayloadType) Enum() *PayloadType
- func (PayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PayloadType) Number() protoreflect.EnumNumber
- func (x PayloadType) String() string
- func (PayloadType) Type() protoreflect.EnumType
- type PayloadUnbond
- type PayloadWithdraw
- func (*PayloadWithdraw) Descriptor() ([]byte, []int)deprecated
- func (x *PayloadWithdraw) GetAmount() int64
- func (x *PayloadWithdraw) GetFrom() string
- func (x *PayloadWithdraw) GetTo() string
- func (*PayloadWithdraw) ProtoMessage()
- func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message
- func (x *PayloadWithdraw) Reset()
- func (x *PayloadWithdraw) String() string
- type PeerInfo
- func (*PeerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PeerInfo) GetAddress() string
- func (x *PeerInfo) GetAgent() string
- func (x *PeerInfo) GetCompletedSessions() int32
- func (x *PeerInfo) GetConsensusAddress() []string
- func (x *PeerInfo) GetConsensusKeys() []string
- func (x *PeerInfo) GetDirection() string
- func (x *PeerInfo) GetHeight() uint32
- func (x *PeerInfo) GetInvalidMessages() int32
- func (x *PeerInfo) GetLastBlockHash() []byte
- func (x *PeerInfo) GetLastReceived() int64
- func (x *PeerInfo) GetLastSent() int64
- func (x *PeerInfo) GetMoniker() string
- func (x *PeerInfo) GetPeerId() []byte
- func (x *PeerInfo) GetProtocols() []string
- func (x *PeerInfo) GetReceivedBytes() map[int32]int64
- func (x *PeerInfo) GetReceivedMessages() int32
- func (x *PeerInfo) GetSentBytes() map[int32]int64
- func (x *PeerInfo) GetServices() uint32
- func (x *PeerInfo) GetStatus() int32
- func (x *PeerInfo) GetTotalSessions() int32
- func (*PeerInfo) ProtoMessage()
- func (x *PeerInfo) ProtoReflect() protoreflect.Message
- func (x *PeerInfo) Reset()
- func (x *PeerInfo) String() string
- type SignRawTransactionRequest
- func (*SignRawTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignRawTransactionRequest) GetPassword() string
- func (x *SignRawTransactionRequest) GetRawTransaction() []byte
- func (x *SignRawTransactionRequest) GetWalletName() string
- func (*SignRawTransactionRequest) ProtoMessage()
- func (x *SignRawTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *SignRawTransactionRequest) Reset()
- func (x *SignRawTransactionRequest) String() string
- type SignRawTransactionResponse
- func (*SignRawTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignRawTransactionResponse) GetSignedRawTransaction() []byte
- func (x *SignRawTransactionResponse) GetTransactionId() []byte
- func (*SignRawTransactionResponse) ProtoMessage()
- func (x *SignRawTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *SignRawTransactionResponse) Reset()
- func (x *SignRawTransactionResponse) String() string
- type TransactionClient
- type TransactionInfo
- func (*TransactionInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionInfo) GetBond() *PayloadBond
- func (x *TransactionInfo) GetData() []byte
- func (x *TransactionInfo) GetFee() int64
- func (x *TransactionInfo) GetId() []byte
- func (x *TransactionInfo) GetLockTime() uint32
- func (x *TransactionInfo) GetMemo() string
- func (m *TransactionInfo) GetPayload() isTransactionInfo_Payload
- func (x *TransactionInfo) GetPayloadType() PayloadType
- func (x *TransactionInfo) GetPublicKey() string
- func (x *TransactionInfo) GetSignature() []byte
- func (x *TransactionInfo) GetSortition() *PayloadSortition
- func (x *TransactionInfo) GetTransfer() *PayloadTransfer
- func (x *TransactionInfo) GetUnbond() *PayloadUnbond
- func (x *TransactionInfo) GetValue() int64
- func (x *TransactionInfo) GetVersion() int32
- func (x *TransactionInfo) GetWithdraw() *PayloadWithdraw
- func (*TransactionInfo) ProtoMessage()
- func (x *TransactionInfo) ProtoReflect() protoreflect.Message
- func (x *TransactionInfo) Reset()
- func (x *TransactionInfo) String() string
- type TransactionInfo_Bond
- type TransactionInfo_Sortition
- type TransactionInfo_Transfer
- type TransactionInfo_Unbond
- type TransactionInfo_Withdraw
- type TransactionServer
- type TransactionVerbosity
- func (TransactionVerbosity) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionVerbosity) Enum() *TransactionVerbosity
- func (TransactionVerbosity) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionVerbosity) Number() protoreflect.EnumNumber
- func (x TransactionVerbosity) String() string
- func (TransactionVerbosity) Type() protoreflect.EnumType
- type UnimplementedBlockchainServer
- func (UnimplementedBlockchainServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
- func (UnimplementedBlockchainServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
- func (UnimplementedBlockchainServer) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error)
- func (UnimplementedBlockchainServer) GetBlockHeight(context.Context, *GetBlockHeightRequest) (*GetBlockHeightResponse, error)
- func (UnimplementedBlockchainServer) GetBlockchainInfo(context.Context, *GetBlockchainInfoRequest) (*GetBlockchainInfoResponse, error)
- func (UnimplementedBlockchainServer) GetConsensusInfo(context.Context, *GetConsensusInfoRequest) (*GetConsensusInfoResponse, error)
- func (UnimplementedBlockchainServer) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyResponse, error)
- func (UnimplementedBlockchainServer) GetValidator(context.Context, *GetValidatorRequest) (*GetValidatorResponse, error)
- func (UnimplementedBlockchainServer) GetValidatorAddresses(context.Context, *GetValidatorAddressesRequest) (*GetValidatorAddressesResponse, error)
- func (UnimplementedBlockchainServer) GetValidatorByNumber(context.Context, *GetValidatorByNumberRequest) (*GetValidatorResponse, error)
- type UnimplementedNetworkServer
- type UnimplementedTransactionServer
- func (UnimplementedTransactionServer) BroadcastTransaction(context.Context, *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error)
- func (UnimplementedTransactionServer) CalculateFee(context.Context, *CalculateFeeRequest) (*CalculateFeeResponse, error)
- func (UnimplementedTransactionServer) GetRawBondTransaction(context.Context, *GetRawBondTransactionRequest) (*GetRawTransactionResponse, error)
- func (UnimplementedTransactionServer) GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error)
- func (UnimplementedTransactionServer) GetRawUnBondTransaction(context.Context, *GetRawUnBondTransactionRequest) (*GetRawTransactionResponse, error)
- func (UnimplementedTransactionServer) GetRawWithdrawTransaction(context.Context, *GetRawWithdrawTransactionRequest) (*GetRawTransactionResponse, error)
- func (UnimplementedTransactionServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error)
- type UnimplementedWalletServer
- func (UnimplementedWalletServer) CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
- func (UnimplementedWalletServer) GetValidatorAddress(context.Context, *GetValidatorAddressRequest) (*GetValidatorAddressResponse, error)
- func (UnimplementedWalletServer) LoadWallet(context.Context, *LoadWalletRequest) (*LoadWalletResponse, error)
- func (UnimplementedWalletServer) LockWallet(context.Context, *LockWalletRequest) (*LockWalletResponse, error)
- func (UnimplementedWalletServer) SignRawTransaction(context.Context, *SignRawTransactionRequest) (*SignRawTransactionResponse, error)
- func (UnimplementedWalletServer) UnloadWallet(context.Context, *UnloadWalletRequest) (*UnloadWalletResponse, error)
- func (UnimplementedWalletServer) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error)
- type UnloadWalletRequest
- func (*UnloadWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnloadWalletRequest) GetWalletName() string
- func (*UnloadWalletRequest) ProtoMessage()
- func (x *UnloadWalletRequest) ProtoReflect() protoreflect.Message
- func (x *UnloadWalletRequest) Reset()
- func (x *UnloadWalletRequest) String() string
- type UnloadWalletResponse
- func (*UnloadWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnloadWalletResponse) GetWalletName() string
- func (*UnloadWalletResponse) ProtoMessage()
- func (x *UnloadWalletResponse) ProtoReflect() protoreflect.Message
- func (x *UnloadWalletResponse) Reset()
- func (x *UnloadWalletResponse) String() string
- type UnlockWalletRequest
- func (*UnlockWalletRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockWalletRequest) GetPassword() string
- func (x *UnlockWalletRequest) GetTimeout() int32
- func (x *UnlockWalletRequest) GetWalletName() string
- func (*UnlockWalletRequest) ProtoMessage()
- func (x *UnlockWalletRequest) ProtoReflect() protoreflect.Message
- func (x *UnlockWalletRequest) Reset()
- func (x *UnlockWalletRequest) String() string
- type UnlockWalletResponse
- func (*UnlockWalletResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnlockWalletResponse) GetWalletName() string
- func (*UnlockWalletResponse) ProtoMessage()
- func (x *UnlockWalletResponse) ProtoReflect() protoreflect.Message
- func (x *UnlockWalletResponse) Reset()
- func (x *UnlockWalletResponse) String() string
- type UnsafeBlockchainServer
- type UnsafeNetworkServer
- type UnsafeTransactionServer
- type UnsafeWalletServer
- type ValidatorInfo
- func (*ValidatorInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatorInfo) GetAddress() string
- func (x *ValidatorInfo) GetAvailabilityScore() float64
- func (x *ValidatorInfo) GetData() []byte
- func (x *ValidatorInfo) GetHash() []byte
- func (x *ValidatorInfo) GetLastBondingHeight() uint32
- func (x *ValidatorInfo) GetLastSortitionHeight() uint32
- func (x *ValidatorInfo) GetNumber() int32
- func (x *ValidatorInfo) GetPublicKey() string
- func (x *ValidatorInfo) GetStake() int64
- func (x *ValidatorInfo) GetUnbondingHeight() uint32
- func (*ValidatorInfo) ProtoMessage()
- func (x *ValidatorInfo) ProtoReflect() protoreflect.Message
- func (x *ValidatorInfo) Reset()
- func (x *ValidatorInfo) String() string
- type VoteInfo
- func (*VoteInfo) Descriptor() ([]byte, []int)deprecated
- func (x *VoteInfo) GetBlockHash() []byte
- func (x *VoteInfo) GetCpRound() int32
- func (x *VoteInfo) GetCpValue() int32
- func (x *VoteInfo) GetRound() int32
- func (x *VoteInfo) GetType() VoteType
- func (x *VoteInfo) GetVoter() string
- func (*VoteInfo) ProtoMessage()
- func (x *VoteInfo) ProtoReflect() protoreflect.Message
- func (x *VoteInfo) Reset()
- func (x *VoteInfo) String() string
- type VoteType
- type WalletClient
- type WalletServer
Constants ¶
This section is empty.
Variables ¶
var ( BlockVerbosity_name = map[int32]string{ 0: "BLOCK_DATA", 1: "BLOCK_INFO", 2: "BLOCK_TRANSACTIONS", } BlockVerbosity_value = map[string]int32{ "BLOCK_DATA": 0, "BLOCK_INFO": 1, "BLOCK_TRANSACTIONS": 2, } )
Enum value maps for BlockVerbosity.
var ( VoteType_name = map[int32]string{ 0: "VOTE_UNKNOWN", 1: "VOTE_PREPARE", 2: "VOTE_PRECOMMIT", 3: "VOTE_CHANGE_PROPOSER", } VoteType_value = map[string]int32{ "VOTE_UNKNOWN": 0, "VOTE_PREPARE": 1, "VOTE_PRECOMMIT": 2, "VOTE_CHANGE_PROPOSER": 3, } )
Enum value maps for VoteType.
var ( PayloadType_name = map[int32]string{ 0: "UNKNOWN", 1: "TRANSFER_PAYLOAD", 2: "BOND_PAYLOAD", 3: "SORTITION_PAYLOAD", 4: "UNBOND_PAYLOAD", 5: "WITHDRAW_PAYLOAD", } PayloadType_value = map[string]int32{ "UNKNOWN": 0, "TRANSFER_PAYLOAD": 1, "BOND_PAYLOAD": 2, "SORTITION_PAYLOAD": 3, "UNBOND_PAYLOAD": 4, "WITHDRAW_PAYLOAD": 5, } )
Enum value maps for PayloadType.
var ( TransactionVerbosity_name = map[int32]string{ 0: "TRANSACTION_DATA", 1: "TRANSACTION_INFO", } TransactionVerbosity_value = map[string]int32{ "TRANSACTION_DATA": 0, "TRANSACTION_INFO": 1, } )
Enum value maps for TransactionVerbosity.
var Blockchain_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Blockchain", HandlerType: (*BlockchainServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBlock", Handler: _Blockchain_GetBlock_Handler, }, { MethodName: "GetBlockHash", Handler: _Blockchain_GetBlockHash_Handler, }, { MethodName: "GetBlockHeight", Handler: _Blockchain_GetBlockHeight_Handler, }, { MethodName: "GetBlockchainInfo", Handler: _Blockchain_GetBlockchainInfo_Handler, }, { MethodName: "GetConsensusInfo", Handler: _Blockchain_GetConsensusInfo_Handler, }, { MethodName: "GetAccount", Handler: _Blockchain_GetAccount_Handler, }, { MethodName: "GetValidator", Handler: _Blockchain_GetValidator_Handler, }, { MethodName: "GetValidatorByNumber", Handler: _Blockchain_GetValidatorByNumber_Handler, }, { MethodName: "GetValidatorAddresses", Handler: _Blockchain_GetValidatorAddresses_Handler, }, { MethodName: "GetPublicKey", Handler: _Blockchain_GetPublicKey_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "blockchain.proto", }
Blockchain_ServiceDesc is the grpc.ServiceDesc for Blockchain service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_blockchain_proto protoreflect.FileDescriptor
var File_network_proto protoreflect.FileDescriptor
var File_transaction_proto protoreflect.FileDescriptor
var File_wallet_proto protoreflect.FileDescriptor
var Network_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Network", HandlerType: (*NetworkServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetNetworkInfo", Handler: _Network_GetNetworkInfo_Handler, }, { MethodName: "GetNodeInfo", Handler: _Network_GetNodeInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network.proto", }
Network_ServiceDesc is the grpc.ServiceDesc for Network service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Transaction_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Transaction", HandlerType: (*TransactionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTransaction", Handler: _Transaction_GetTransaction_Handler, }, { MethodName: "CalculateFee", Handler: _Transaction_CalculateFee_Handler, }, { MethodName: "BroadcastTransaction", Handler: _Transaction_BroadcastTransaction_Handler, }, { MethodName: "GetRawTransferTransaction", Handler: _Transaction_GetRawTransferTransaction_Handler, }, { MethodName: "GetRawBondTransaction", Handler: _Transaction_GetRawBondTransaction_Handler, }, { MethodName: "GetRawUnBondTransaction", Handler: _Transaction_GetRawUnBondTransaction_Handler, }, { MethodName: "GetRawWithdrawTransaction", Handler: _Transaction_GetRawWithdrawTransaction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "transaction.proto", }
Transaction_ServiceDesc is the grpc.ServiceDesc for Transaction service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Wallet_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pactus.Wallet", HandlerType: (*WalletServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateWallet", Handler: _Wallet_CreateWallet_Handler, }, { MethodName: "LoadWallet", Handler: _Wallet_LoadWallet_Handler, }, { MethodName: "UnloadWallet", Handler: _Wallet_UnloadWallet_Handler, }, { MethodName: "LockWallet", Handler: _Wallet_LockWallet_Handler, }, { MethodName: "UnlockWallet", Handler: _Wallet_UnlockWallet_Handler, }, { MethodName: "SignRawTransaction", Handler: _Wallet_SignRawTransaction_Handler, }, { MethodName: "GetValidatorAddress", Handler: _Wallet_GetValidatorAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wallet.proto", }
Wallet_ServiceDesc is the grpc.ServiceDesc for Wallet service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBlockchainHandler ¶
func RegisterBlockchainHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBlockchainHandler registers the http handlers for service Blockchain to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBlockchainHandlerClient ¶
func RegisterBlockchainHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BlockchainClient) error
RegisterBlockchainHandlerClient registers the http handlers for service Blockchain to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BlockchainClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BlockchainClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BlockchainClient" to call the correct interceptors.
func RegisterBlockchainHandlerFromEndpoint ¶
func RegisterBlockchainHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBlockchainHandlerFromEndpoint is same as RegisterBlockchainHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBlockchainHandlerServer ¶
func RegisterBlockchainHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BlockchainServer) error
RegisterBlockchainHandlerServer registers the http handlers for service Blockchain to "mux". UnaryRPC :call BlockchainServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBlockchainHandlerFromEndpoint instead.
func RegisterBlockchainServer ¶
func RegisterBlockchainServer(s grpc.ServiceRegistrar, srv BlockchainServer)
func RegisterNetworkHandler ¶
func RegisterNetworkHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNetworkHandler registers the http handlers for service Network to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNetworkHandlerClient ¶
func RegisterNetworkHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkClient) error
RegisterNetworkHandlerClient registers the http handlers for service Network to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NetworkClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NetworkClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NetworkClient" to call the correct interceptors.
func RegisterNetworkHandlerFromEndpoint ¶
func RegisterNetworkHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNetworkHandlerFromEndpoint is same as RegisterNetworkHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNetworkHandlerServer ¶
func RegisterNetworkHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkServer) error
RegisterNetworkHandlerServer registers the http handlers for service Network to "mux". UnaryRPC :call NetworkServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNetworkHandlerFromEndpoint instead.
func RegisterNetworkServer ¶
func RegisterNetworkServer(s grpc.ServiceRegistrar, srv NetworkServer)
func RegisterTransactionHandler ¶
func RegisterTransactionHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterTransactionHandler registers the http handlers for service Transaction to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTransactionHandlerClient ¶
func RegisterTransactionHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionClient) error
RegisterTransactionHandlerClient registers the http handlers for service Transaction to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TransactionClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TransactionClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TransactionClient" to call the correct interceptors.
func RegisterTransactionHandlerFromEndpoint ¶
func RegisterTransactionHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterTransactionHandlerFromEndpoint is same as RegisterTransactionHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTransactionHandlerServer ¶
func RegisterTransactionHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionServer) error
RegisterTransactionHandlerServer registers the http handlers for service Transaction to "mux". UnaryRPC :call TransactionServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTransactionHandlerFromEndpoint instead.
func RegisterTransactionServer ¶
func RegisterTransactionServer(s grpc.ServiceRegistrar, srv TransactionServer)
func RegisterWalletHandler ¶
RegisterWalletHandler registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterWalletHandlerClient ¶
func RegisterWalletHandlerClient(ctx context.Context, mux *runtime.ServeMux, client WalletClient) error
RegisterWalletHandlerClient registers the http handlers for service Wallet to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "WalletClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "WalletClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "WalletClient" to call the correct interceptors.
func RegisterWalletHandlerFromEndpoint ¶
func RegisterWalletHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterWalletHandlerFromEndpoint is same as RegisterWalletHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterWalletHandlerServer ¶
func RegisterWalletHandlerServer(ctx context.Context, mux *runtime.ServeMux, server WalletServer) error
RegisterWalletHandlerServer registers the http handlers for service Wallet to "mux". UnaryRPC :call WalletServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterWalletHandlerFromEndpoint instead.
func RegisterWalletServer ¶
func RegisterWalletServer(s grpc.ServiceRegistrar, srv WalletServer)
Types ¶
type AccountInfo ¶
type AccountInfo struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"` Balance int64 `protobuf:"varint,4,opt,name=balance,proto3" json:"balance,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*AccountInfo) Descriptor
deprecated
func (*AccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) GetAddress ¶
func (x *AccountInfo) GetAddress() string
func (*AccountInfo) GetBalance ¶
func (x *AccountInfo) GetBalance() int64
func (*AccountInfo) GetData ¶
func (x *AccountInfo) GetData() []byte
func (*AccountInfo) GetHash ¶
func (x *AccountInfo) GetHash() []byte
func (*AccountInfo) GetNumber ¶
func (x *AccountInfo) GetNumber() int32
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) ProtoReflect ¶
func (x *AccountInfo) ProtoReflect() protoreflect.Message
func (*AccountInfo) Reset ¶
func (x *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (x *AccountInfo) String() string
type BlockHeaderInfo ¶
type BlockHeaderInfo struct { Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` PrevBlockHash []byte `protobuf:"bytes,2,opt,name=prev_block_hash,json=prevBlockHash,proto3" json:"prev_block_hash,omitempty"` StateRoot []byte `protobuf:"bytes,3,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` SortitionSeed []byte `protobuf:"bytes,4,opt,name=sortition_seed,json=sortitionSeed,proto3" json:"sortition_seed,omitempty"` ProposerAddress string `protobuf:"bytes,5,opt,name=proposer_address,json=proposerAddress,proto3" json:"proposer_address,omitempty"` // contains filtered or unexported fields }
func (*BlockHeaderInfo) Descriptor
deprecated
func (*BlockHeaderInfo) Descriptor() ([]byte, []int)
Deprecated: Use BlockHeaderInfo.ProtoReflect.Descriptor instead.
func (*BlockHeaderInfo) GetPrevBlockHash ¶
func (x *BlockHeaderInfo) GetPrevBlockHash() []byte
func (*BlockHeaderInfo) GetProposerAddress ¶
func (x *BlockHeaderInfo) GetProposerAddress() string
func (*BlockHeaderInfo) GetSortitionSeed ¶
func (x *BlockHeaderInfo) GetSortitionSeed() []byte
func (*BlockHeaderInfo) GetStateRoot ¶
func (x *BlockHeaderInfo) GetStateRoot() []byte
func (*BlockHeaderInfo) GetVersion ¶
func (x *BlockHeaderInfo) GetVersion() int32
func (*BlockHeaderInfo) ProtoMessage ¶
func (*BlockHeaderInfo) ProtoMessage()
func (*BlockHeaderInfo) ProtoReflect ¶
func (x *BlockHeaderInfo) ProtoReflect() protoreflect.Message
func (*BlockHeaderInfo) Reset ¶
func (x *BlockHeaderInfo) Reset()
func (*BlockHeaderInfo) String ¶
func (x *BlockHeaderInfo) String() string
type BlockVerbosity ¶
type BlockVerbosity int32
const ( BlockVerbosity_BLOCK_DATA BlockVerbosity = 0 BlockVerbosity_BLOCK_INFO BlockVerbosity = 1 BlockVerbosity_BLOCK_TRANSACTIONS BlockVerbosity = 2 )
func (BlockVerbosity) Descriptor ¶
func (BlockVerbosity) Descriptor() protoreflect.EnumDescriptor
func (BlockVerbosity) Enum ¶
func (x BlockVerbosity) Enum() *BlockVerbosity
func (BlockVerbosity) EnumDescriptor
deprecated
func (BlockVerbosity) EnumDescriptor() ([]byte, []int)
Deprecated: Use BlockVerbosity.Descriptor instead.
func (BlockVerbosity) Number ¶
func (x BlockVerbosity) Number() protoreflect.EnumNumber
func (BlockVerbosity) String ¶
func (x BlockVerbosity) String() string
func (BlockVerbosity) Type ¶
func (BlockVerbosity) Type() protoreflect.EnumType
type BlockchainClient ¶
type BlockchainClient interface { GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) GetBlockHash(ctx context.Context, in *GetBlockHashRequest, opts ...grpc.CallOption) (*GetBlockHashResponse, error) GetBlockHeight(ctx context.Context, in *GetBlockHeightRequest, opts ...grpc.CallOption) (*GetBlockHeightResponse, error) GetBlockchainInfo(ctx context.Context, in *GetBlockchainInfoRequest, opts ...grpc.CallOption) (*GetBlockchainInfoResponse, error) GetConsensusInfo(ctx context.Context, in *GetConsensusInfoRequest, opts ...grpc.CallOption) (*GetConsensusInfoResponse, error) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) GetValidator(ctx context.Context, in *GetValidatorRequest, opts ...grpc.CallOption) (*GetValidatorResponse, error) GetValidatorByNumber(ctx context.Context, in *GetValidatorByNumberRequest, opts ...grpc.CallOption) (*GetValidatorResponse, error) GetValidatorAddresses(ctx context.Context, in *GetValidatorAddressesRequest, opts ...grpc.CallOption) (*GetValidatorAddressesResponse, error) GetPublicKey(ctx context.Context, in *GetPublicKeyRequest, opts ...grpc.CallOption) (*GetPublicKeyResponse, error) }
BlockchainClient is the client API for Blockchain service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBlockchainClient ¶
func NewBlockchainClient(cc grpc.ClientConnInterface) BlockchainClient
type BlockchainServer ¶
type BlockchainServer interface { GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error) GetBlockHeight(context.Context, *GetBlockHeightRequest) (*GetBlockHeightResponse, error) GetBlockchainInfo(context.Context, *GetBlockchainInfoRequest) (*GetBlockchainInfoResponse, error) GetConsensusInfo(context.Context, *GetConsensusInfoRequest) (*GetConsensusInfoResponse, error) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error) GetValidator(context.Context, *GetValidatorRequest) (*GetValidatorResponse, error) GetValidatorByNumber(context.Context, *GetValidatorByNumberRequest) (*GetValidatorResponse, error) GetValidatorAddresses(context.Context, *GetValidatorAddressesRequest) (*GetValidatorAddressesResponse, error) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyResponse, error) }
BlockchainServer is the server API for Blockchain service. All implementations should embed UnimplementedBlockchainServer for forward compatibility
type BroadcastTransactionRequest ¶ added in v1.0.0
type BroadcastTransactionRequest struct { SignedRawTransaction []byte `protobuf:"bytes,1,opt,name=signed_raw_transaction,json=signedRawTransaction,proto3" json:"signed_raw_transaction,omitempty"` // contains filtered or unexported fields }
func (*BroadcastTransactionRequest) Descriptor
deprecated
added in
v1.0.0
func (*BroadcastTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastTransactionRequest.ProtoReflect.Descriptor instead.
func (*BroadcastTransactionRequest) GetSignedRawTransaction ¶ added in v1.0.0
func (x *BroadcastTransactionRequest) GetSignedRawTransaction() []byte
func (*BroadcastTransactionRequest) ProtoMessage ¶ added in v1.0.0
func (*BroadcastTransactionRequest) ProtoMessage()
func (*BroadcastTransactionRequest) ProtoReflect ¶ added in v1.0.0
func (x *BroadcastTransactionRequest) ProtoReflect() protoreflect.Message
func (*BroadcastTransactionRequest) Reset ¶ added in v1.0.0
func (x *BroadcastTransactionRequest) Reset()
func (*BroadcastTransactionRequest) String ¶ added in v1.0.0
func (x *BroadcastTransactionRequest) String() string
type BroadcastTransactionResponse ¶ added in v1.0.0
type BroadcastTransactionResponse struct { Id []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*BroadcastTransactionResponse) Descriptor
deprecated
added in
v1.0.0
func (*BroadcastTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastTransactionResponse.ProtoReflect.Descriptor instead.
func (*BroadcastTransactionResponse) GetId ¶ added in v1.0.0
func (x *BroadcastTransactionResponse) GetId() []byte
func (*BroadcastTransactionResponse) ProtoMessage ¶ added in v1.0.0
func (*BroadcastTransactionResponse) ProtoMessage()
func (*BroadcastTransactionResponse) ProtoReflect ¶ added in v1.0.0
func (x *BroadcastTransactionResponse) ProtoReflect() protoreflect.Message
func (*BroadcastTransactionResponse) Reset ¶ added in v1.0.0
func (x *BroadcastTransactionResponse) Reset()
func (*BroadcastTransactionResponse) String ¶ added in v1.0.0
func (x *BroadcastTransactionResponse) String() string
type CalculateFeeRequest ¶ added in v0.15.0
type CalculateFeeRequest struct { Amount int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` PayloadType PayloadType `protobuf:"varint,2,opt,name=payloadType,proto3,enum=pactus.PayloadType" json:"payloadType,omitempty"` // contains filtered or unexported fields }
func (*CalculateFeeRequest) Descriptor
deprecated
added in
v0.15.0
func (*CalculateFeeRequest) Descriptor() ([]byte, []int)
Deprecated: Use CalculateFeeRequest.ProtoReflect.Descriptor instead.
func (*CalculateFeeRequest) GetAmount ¶ added in v0.15.0
func (x *CalculateFeeRequest) GetAmount() int64
func (*CalculateFeeRequest) GetPayloadType ¶ added in v0.15.0
func (x *CalculateFeeRequest) GetPayloadType() PayloadType
func (*CalculateFeeRequest) ProtoMessage ¶ added in v0.15.0
func (*CalculateFeeRequest) ProtoMessage()
func (*CalculateFeeRequest) ProtoReflect ¶ added in v0.15.0
func (x *CalculateFeeRequest) ProtoReflect() protoreflect.Message
func (*CalculateFeeRequest) Reset ¶ added in v0.15.0
func (x *CalculateFeeRequest) Reset()
func (*CalculateFeeRequest) String ¶ added in v0.15.0
func (x *CalculateFeeRequest) String() string
type CalculateFeeResponse ¶ added in v0.15.0
type CalculateFeeResponse struct { Fee int64 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"` // contains filtered or unexported fields }
func (*CalculateFeeResponse) Descriptor
deprecated
added in
v0.15.0
func (*CalculateFeeResponse) Descriptor() ([]byte, []int)
Deprecated: Use CalculateFeeResponse.ProtoReflect.Descriptor instead.
func (*CalculateFeeResponse) GetFee ¶ added in v0.15.0
func (x *CalculateFeeResponse) GetFee() int64
func (*CalculateFeeResponse) ProtoMessage ¶ added in v0.15.0
func (*CalculateFeeResponse) ProtoMessage()
func (*CalculateFeeResponse) ProtoReflect ¶ added in v0.15.0
func (x *CalculateFeeResponse) ProtoReflect() protoreflect.Message
func (*CalculateFeeResponse) Reset ¶ added in v0.15.0
func (x *CalculateFeeResponse) Reset()
func (*CalculateFeeResponse) String ¶ added in v0.15.0
func (x *CalculateFeeResponse) String() string
type CertificateInfo ¶
type CertificateInfo struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Committers []int32 `protobuf:"varint,3,rep,packed,name=committers,proto3" json:"committers,omitempty"` Absentees []int32 `protobuf:"varint,4,rep,packed,name=absentees,proto3" json:"absentees,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*CertificateInfo) Descriptor
deprecated
func (*CertificateInfo) Descriptor() ([]byte, []int)
Deprecated: Use CertificateInfo.ProtoReflect.Descriptor instead.
func (*CertificateInfo) GetAbsentees ¶
func (x *CertificateInfo) GetAbsentees() []int32
func (*CertificateInfo) GetCommitters ¶
func (x *CertificateInfo) GetCommitters() []int32
func (*CertificateInfo) GetHash ¶
func (x *CertificateInfo) GetHash() []byte
func (*CertificateInfo) GetRound ¶
func (x *CertificateInfo) GetRound() int32
func (*CertificateInfo) GetSignature ¶
func (x *CertificateInfo) GetSignature() []byte
func (*CertificateInfo) ProtoMessage ¶
func (*CertificateInfo) ProtoMessage()
func (*CertificateInfo) ProtoReflect ¶
func (x *CertificateInfo) ProtoReflect() protoreflect.Message
func (*CertificateInfo) Reset ¶
func (x *CertificateInfo) Reset()
func (*CertificateInfo) String ¶
func (x *CertificateInfo) String() string
type ConsensusInfo ¶ added in v0.10.0
type ConsensusInfo struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Active bool `protobuf:"varint,2,opt,name=Active,proto3" json:"Active,omitempty"` Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Round int32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` Votes []*VoteInfo `protobuf:"bytes,5,rep,name=votes,proto3" json:"votes,omitempty"` // contains filtered or unexported fields }
func (*ConsensusInfo) Descriptor
deprecated
added in
v0.10.0
func (*ConsensusInfo) Descriptor() ([]byte, []int)
Deprecated: Use ConsensusInfo.ProtoReflect.Descriptor instead.
func (*ConsensusInfo) GetActive ¶ added in v0.10.0
func (x *ConsensusInfo) GetActive() bool
func (*ConsensusInfo) GetAddress ¶ added in v0.10.0
func (x *ConsensusInfo) GetAddress() string
func (*ConsensusInfo) GetHeight ¶ added in v0.10.0
func (x *ConsensusInfo) GetHeight() uint32
func (*ConsensusInfo) GetRound ¶ added in v0.10.0
func (x *ConsensusInfo) GetRound() int32
func (*ConsensusInfo) GetVotes ¶ added in v0.10.0
func (x *ConsensusInfo) GetVotes() []*VoteInfo
func (*ConsensusInfo) ProtoMessage ¶ added in v0.10.0
func (*ConsensusInfo) ProtoMessage()
func (*ConsensusInfo) ProtoReflect ¶ added in v0.10.0
func (x *ConsensusInfo) ProtoReflect() protoreflect.Message
func (*ConsensusInfo) Reset ¶ added in v0.10.0
func (x *ConsensusInfo) Reset()
func (*ConsensusInfo) String ¶ added in v0.10.0
func (x *ConsensusInfo) String() string
type CreateWalletRequest ¶
type CreateWalletRequest struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` Mnemonic string `protobuf:"bytes,2,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"` Language string `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateWalletRequest) Descriptor
deprecated
func (*CreateWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletRequest.ProtoReflect.Descriptor instead.
func (*CreateWalletRequest) GetLanguage ¶
func (x *CreateWalletRequest) GetLanguage() string
func (*CreateWalletRequest) GetMnemonic ¶
func (x *CreateWalletRequest) GetMnemonic() string
func (*CreateWalletRequest) GetPassword ¶
func (x *CreateWalletRequest) GetPassword() string
func (*CreateWalletRequest) GetWalletName ¶ added in v1.0.0
func (x *CreateWalletRequest) GetWalletName() string
func (*CreateWalletRequest) ProtoMessage ¶
func (*CreateWalletRequest) ProtoMessage()
func (*CreateWalletRequest) ProtoReflect ¶
func (x *CreateWalletRequest) ProtoReflect() protoreflect.Message
func (*CreateWalletRequest) Reset ¶
func (x *CreateWalletRequest) Reset()
func (*CreateWalletRequest) String ¶
func (x *CreateWalletRequest) String() string
type CreateWalletResponse ¶
type CreateWalletResponse struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*CreateWalletResponse) Descriptor
deprecated
func (*CreateWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateWalletResponse.ProtoReflect.Descriptor instead.
func (*CreateWalletResponse) GetWalletName ¶ added in v1.0.0
func (x *CreateWalletResponse) GetWalletName() string
func (*CreateWalletResponse) ProtoMessage ¶
func (*CreateWalletResponse) ProtoMessage()
func (*CreateWalletResponse) ProtoReflect ¶
func (x *CreateWalletResponse) ProtoReflect() protoreflect.Message
func (*CreateWalletResponse) Reset ¶
func (x *CreateWalletResponse) Reset()
func (*CreateWalletResponse) String ¶
func (x *CreateWalletResponse) String() string
type GetAccountRequest ¶
type GetAccountRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetAccountRequest) Descriptor
deprecated
func (*GetAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
func (*GetAccountRequest) GetAddress ¶
func (x *GetAccountRequest) GetAddress() string
func (*GetAccountRequest) ProtoMessage ¶
func (*GetAccountRequest) ProtoMessage()
func (*GetAccountRequest) ProtoReflect ¶
func (x *GetAccountRequest) ProtoReflect() protoreflect.Message
func (*GetAccountRequest) Reset ¶
func (x *GetAccountRequest) Reset()
func (*GetAccountRequest) String ¶
func (x *GetAccountRequest) String() string
type GetAccountResponse ¶
type GetAccountResponse struct { Account *AccountInfo `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetAccountResponse) Descriptor
deprecated
func (*GetAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountResponse.ProtoReflect.Descriptor instead.
func (*GetAccountResponse) GetAccount ¶
func (x *GetAccountResponse) GetAccount() *AccountInfo
func (*GetAccountResponse) ProtoMessage ¶
func (*GetAccountResponse) ProtoMessage()
func (*GetAccountResponse) ProtoReflect ¶
func (x *GetAccountResponse) ProtoReflect() protoreflect.Message
func (*GetAccountResponse) Reset ¶
func (x *GetAccountResponse) Reset()
func (*GetAccountResponse) String ¶
func (x *GetAccountResponse) String() string
type GetBlockHashRequest ¶
type GetBlockHashRequest struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHashRequest) Descriptor
deprecated
func (*GetBlockHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHashRequest.ProtoReflect.Descriptor instead.
func (*GetBlockHashRequest) GetHeight ¶
func (x *GetBlockHashRequest) GetHeight() uint32
func (*GetBlockHashRequest) ProtoMessage ¶
func (*GetBlockHashRequest) ProtoMessage()
func (*GetBlockHashRequest) ProtoReflect ¶
func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message
func (*GetBlockHashRequest) Reset ¶
func (x *GetBlockHashRequest) Reset()
func (*GetBlockHashRequest) String ¶
func (x *GetBlockHashRequest) String() string
type GetBlockHashResponse ¶
type GetBlockHashResponse struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHashResponse) Descriptor
deprecated
func (*GetBlockHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHashResponse.ProtoReflect.Descriptor instead.
func (*GetBlockHashResponse) GetHash ¶
func (x *GetBlockHashResponse) GetHash() []byte
func (*GetBlockHashResponse) ProtoMessage ¶
func (*GetBlockHashResponse) ProtoMessage()
func (*GetBlockHashResponse) ProtoReflect ¶
func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message
func (*GetBlockHashResponse) Reset ¶
func (x *GetBlockHashResponse) Reset()
func (*GetBlockHashResponse) String ¶
func (x *GetBlockHashResponse) String() string
type GetBlockHeightRequest ¶
type GetBlockHeightRequest struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHeightRequest) Descriptor
deprecated
func (*GetBlockHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHeightRequest.ProtoReflect.Descriptor instead.
func (*GetBlockHeightRequest) GetHash ¶
func (x *GetBlockHeightRequest) GetHash() []byte
func (*GetBlockHeightRequest) ProtoMessage ¶
func (*GetBlockHeightRequest) ProtoMessage()
func (*GetBlockHeightRequest) ProtoReflect ¶
func (x *GetBlockHeightRequest) ProtoReflect() protoreflect.Message
func (*GetBlockHeightRequest) Reset ¶
func (x *GetBlockHeightRequest) Reset()
func (*GetBlockHeightRequest) String ¶
func (x *GetBlockHeightRequest) String() string
type GetBlockHeightResponse ¶
type GetBlockHeightResponse struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetBlockHeightResponse) Descriptor
deprecated
func (*GetBlockHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockHeightResponse.ProtoReflect.Descriptor instead.
func (*GetBlockHeightResponse) GetHeight ¶
func (x *GetBlockHeightResponse) GetHeight() uint32
func (*GetBlockHeightResponse) ProtoMessage ¶
func (*GetBlockHeightResponse) ProtoMessage()
func (*GetBlockHeightResponse) ProtoReflect ¶
func (x *GetBlockHeightResponse) ProtoReflect() protoreflect.Message
func (*GetBlockHeightResponse) Reset ¶
func (x *GetBlockHeightResponse) Reset()
func (*GetBlockHeightResponse) String ¶
func (x *GetBlockHeightResponse) String() string
type GetBlockRequest ¶
type GetBlockRequest struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Verbosity BlockVerbosity `protobuf:"varint,2,opt,name=verbosity,proto3,enum=pactus.BlockVerbosity" json:"verbosity,omitempty"` // contains filtered or unexported fields }
func (*GetBlockRequest) Descriptor
deprecated
func (*GetBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockRequest.ProtoReflect.Descriptor instead.
func (*GetBlockRequest) GetHeight ¶
func (x *GetBlockRequest) GetHeight() uint32
func (*GetBlockRequest) GetVerbosity ¶
func (x *GetBlockRequest) GetVerbosity() BlockVerbosity
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) ProtoReflect ¶
func (x *GetBlockRequest) ProtoReflect() protoreflect.Message
func (*GetBlockRequest) Reset ¶
func (x *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (x *GetBlockRequest) String() string
type GetBlockResponse ¶
type GetBlockResponse struct { Height uint32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` BlockTime uint32 `protobuf:"varint,4,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` Header *BlockHeaderInfo `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"` PrevCert *CertificateInfo `protobuf:"bytes,6,opt,name=prev_cert,json=prevCert,proto3" json:"prev_cert,omitempty"` Txs []*TransactionInfo `protobuf:"bytes,7,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*GetBlockResponse) Descriptor
deprecated
func (*GetBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockResponse.ProtoReflect.Descriptor instead.
func (*GetBlockResponse) GetBlockTime ¶
func (x *GetBlockResponse) GetBlockTime() uint32
func (*GetBlockResponse) GetData ¶
func (x *GetBlockResponse) GetData() []byte
func (*GetBlockResponse) GetHash ¶
func (x *GetBlockResponse) GetHash() []byte
func (*GetBlockResponse) GetHeader ¶
func (x *GetBlockResponse) GetHeader() *BlockHeaderInfo
func (*GetBlockResponse) GetHeight ¶
func (x *GetBlockResponse) GetHeight() uint32
func (*GetBlockResponse) GetPrevCert ¶
func (x *GetBlockResponse) GetPrevCert() *CertificateInfo
func (*GetBlockResponse) GetTxs ¶
func (x *GetBlockResponse) GetTxs() []*TransactionInfo
func (*GetBlockResponse) ProtoMessage ¶
func (*GetBlockResponse) ProtoMessage()
func (*GetBlockResponse) ProtoReflect ¶
func (x *GetBlockResponse) ProtoReflect() protoreflect.Message
func (*GetBlockResponse) Reset ¶
func (x *GetBlockResponse) Reset()
func (*GetBlockResponse) String ¶
func (x *GetBlockResponse) String() string
type GetBlockchainInfoRequest ¶
type GetBlockchainInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetBlockchainInfoRequest) Descriptor
deprecated
func (*GetBlockchainInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockchainInfoRequest.ProtoReflect.Descriptor instead.
func (*GetBlockchainInfoRequest) ProtoMessage ¶
func (*GetBlockchainInfoRequest) ProtoMessage()
func (*GetBlockchainInfoRequest) ProtoReflect ¶
func (x *GetBlockchainInfoRequest) ProtoReflect() protoreflect.Message
func (*GetBlockchainInfoRequest) Reset ¶
func (x *GetBlockchainInfoRequest) Reset()
func (*GetBlockchainInfoRequest) String ¶
func (x *GetBlockchainInfoRequest) String() string
type GetBlockchainInfoResponse ¶
type GetBlockchainInfoResponse struct { LastBlockHeight uint32 `protobuf:"varint,1,opt,name=last_block_height,json=lastBlockHeight,proto3" json:"last_block_height,omitempty"` LastBlockHash []byte `protobuf:"bytes,2,opt,name=last_block_hash,json=lastBlockHash,proto3" json:"last_block_hash,omitempty"` TotalAccounts int32 `protobuf:"varint,3,opt,name=total_accounts,json=totalAccounts,proto3" json:"total_accounts,omitempty"` TotalValidators int32 `protobuf:"varint,4,opt,name=total_validators,json=totalValidators,proto3" json:"total_validators,omitempty"` TotalPower int64 `protobuf:"varint,5,opt,name=total_power,json=totalPower,proto3" json:"total_power,omitempty"` CommitteePower int64 `protobuf:"varint,6,opt,name=committee_power,json=committeePower,proto3" json:"committee_power,omitempty"` CommitteeValidators []*ValidatorInfo `protobuf:"bytes,7,rep,name=committee_validators,json=committeeValidators,proto3" json:"committee_validators,omitempty"` // contains filtered or unexported fields }
func (*GetBlockchainInfoResponse) Descriptor
deprecated
func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockchainInfoResponse.ProtoReflect.Descriptor instead.
func (*GetBlockchainInfoResponse) GetCommitteePower ¶
func (x *GetBlockchainInfoResponse) GetCommitteePower() int64
func (*GetBlockchainInfoResponse) GetCommitteeValidators ¶
func (x *GetBlockchainInfoResponse) GetCommitteeValidators() []*ValidatorInfo
func (*GetBlockchainInfoResponse) GetLastBlockHash ¶
func (x *GetBlockchainInfoResponse) GetLastBlockHash() []byte
func (*GetBlockchainInfoResponse) GetLastBlockHeight ¶
func (x *GetBlockchainInfoResponse) GetLastBlockHeight() uint32
func (*GetBlockchainInfoResponse) GetTotalAccounts ¶ added in v0.10.0
func (x *GetBlockchainInfoResponse) GetTotalAccounts() int32
func (*GetBlockchainInfoResponse) GetTotalPower ¶
func (x *GetBlockchainInfoResponse) GetTotalPower() int64
func (*GetBlockchainInfoResponse) GetTotalValidators ¶ added in v0.10.0
func (x *GetBlockchainInfoResponse) GetTotalValidators() int32
func (*GetBlockchainInfoResponse) ProtoMessage ¶
func (*GetBlockchainInfoResponse) ProtoMessage()
func (*GetBlockchainInfoResponse) ProtoReflect ¶
func (x *GetBlockchainInfoResponse) ProtoReflect() protoreflect.Message
func (*GetBlockchainInfoResponse) Reset ¶
func (x *GetBlockchainInfoResponse) Reset()
func (*GetBlockchainInfoResponse) String ¶
func (x *GetBlockchainInfoResponse) String() string
type GetConsensusInfoRequest ¶
type GetConsensusInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetConsensusInfoRequest) Descriptor
deprecated
func (*GetConsensusInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConsensusInfoRequest.ProtoReflect.Descriptor instead.
func (*GetConsensusInfoRequest) ProtoMessage ¶
func (*GetConsensusInfoRequest) ProtoMessage()
func (*GetConsensusInfoRequest) ProtoReflect ¶
func (x *GetConsensusInfoRequest) ProtoReflect() protoreflect.Message
func (*GetConsensusInfoRequest) Reset ¶
func (x *GetConsensusInfoRequest) Reset()
func (*GetConsensusInfoRequest) String ¶
func (x *GetConsensusInfoRequest) String() string
type GetConsensusInfoResponse ¶
type GetConsensusInfoResponse struct { Instances []*ConsensusInfo `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"` // contains filtered or unexported fields }
func (*GetConsensusInfoResponse) Descriptor
deprecated
func (*GetConsensusInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConsensusInfoResponse.ProtoReflect.Descriptor instead.
func (*GetConsensusInfoResponse) GetInstances ¶ added in v0.10.0
func (x *GetConsensusInfoResponse) GetInstances() []*ConsensusInfo
func (*GetConsensusInfoResponse) ProtoMessage ¶
func (*GetConsensusInfoResponse) ProtoMessage()
func (*GetConsensusInfoResponse) ProtoReflect ¶
func (x *GetConsensusInfoResponse) ProtoReflect() protoreflect.Message
func (*GetConsensusInfoResponse) Reset ¶
func (x *GetConsensusInfoResponse) Reset()
func (*GetConsensusInfoResponse) String ¶
func (x *GetConsensusInfoResponse) String() string
type GetNetworkInfoRequest ¶
type GetNetworkInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetNetworkInfoRequest) Descriptor
deprecated
func (*GetNetworkInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkInfoRequest.ProtoReflect.Descriptor instead.
func (*GetNetworkInfoRequest) ProtoMessage ¶
func (*GetNetworkInfoRequest) ProtoMessage()
func (*GetNetworkInfoRequest) ProtoReflect ¶
func (x *GetNetworkInfoRequest) ProtoReflect() protoreflect.Message
func (*GetNetworkInfoRequest) Reset ¶
func (x *GetNetworkInfoRequest) Reset()
func (*GetNetworkInfoRequest) String ¶
func (x *GetNetworkInfoRequest) String() string
type GetNetworkInfoResponse ¶
type GetNetworkInfoResponse struct { NetworkName string `protobuf:"bytes,1,opt,name=network_name,json=networkName,proto3" json:"network_name,omitempty"` TotalSentBytes uint32 `protobuf:"varint,2,opt,name=total_sent_bytes,json=totalSentBytes,proto3" json:"total_sent_bytes,omitempty"` TotalReceivedBytes uint32 `protobuf:"varint,3,opt,name=total_received_bytes,json=totalReceivedBytes,proto3" json:"total_received_bytes,omitempty"` ConnectedPeersCount uint32 `protobuf:"varint,4,opt,name=connected_peers_count,json=connectedPeersCount,proto3" json:"connected_peers_count,omitempty"` ConnectedPeers []*PeerInfo `protobuf:"bytes,5,rep,name=connected_peers,json=connectedPeers,proto3" json:"connected_peers,omitempty"` SentBytes map[uint32]uint64 `` /* 178-byte string literal not displayed */ ReceivedBytes map[uint32]uint64 `` /* 190-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetNetworkInfoResponse) Descriptor
deprecated
func (*GetNetworkInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNetworkInfoResponse.ProtoReflect.Descriptor instead.
func (*GetNetworkInfoResponse) GetConnectedPeers ¶ added in v0.19.0
func (x *GetNetworkInfoResponse) GetConnectedPeers() []*PeerInfo
func (*GetNetworkInfoResponse) GetConnectedPeersCount ¶ added in v0.19.0
func (x *GetNetworkInfoResponse) GetConnectedPeersCount() uint32
func (*GetNetworkInfoResponse) GetNetworkName ¶ added in v0.19.0
func (x *GetNetworkInfoResponse) GetNetworkName() string
func (*GetNetworkInfoResponse) GetReceivedBytes ¶ added in v0.15.0
func (x *GetNetworkInfoResponse) GetReceivedBytes() map[uint32]uint64
func (*GetNetworkInfoResponse) GetSentBytes ¶ added in v0.15.0
func (x *GetNetworkInfoResponse) GetSentBytes() map[uint32]uint64
func (*GetNetworkInfoResponse) GetTotalReceivedBytes ¶ added in v0.13.0
func (x *GetNetworkInfoResponse) GetTotalReceivedBytes() uint32
func (*GetNetworkInfoResponse) GetTotalSentBytes ¶ added in v0.13.0
func (x *GetNetworkInfoResponse) GetTotalSentBytes() uint32
func (*GetNetworkInfoResponse) ProtoMessage ¶
func (*GetNetworkInfoResponse) ProtoMessage()
func (*GetNetworkInfoResponse) ProtoReflect ¶
func (x *GetNetworkInfoResponse) ProtoReflect() protoreflect.Message
func (*GetNetworkInfoResponse) Reset ¶
func (x *GetNetworkInfoResponse) Reset()
func (*GetNetworkInfoResponse) String ¶
func (x *GetNetworkInfoResponse) String() string
type GetNodeInfoRequest ¶ added in v0.13.0
type GetNodeInfoRequest struct {
// contains filtered or unexported fields
}
func (*GetNodeInfoRequest) Descriptor
deprecated
added in
v0.13.0
func (*GetNodeInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeInfoRequest.ProtoReflect.Descriptor instead.
func (*GetNodeInfoRequest) ProtoMessage ¶ added in v0.13.0
func (*GetNodeInfoRequest) ProtoMessage()
func (*GetNodeInfoRequest) ProtoReflect ¶ added in v0.13.0
func (x *GetNodeInfoRequest) ProtoReflect() protoreflect.Message
func (*GetNodeInfoRequest) Reset ¶ added in v0.13.0
func (x *GetNodeInfoRequest) Reset()
func (*GetNodeInfoRequest) String ¶ added in v0.13.0
func (x *GetNodeInfoRequest) String() string
type GetNodeInfoResponse ¶ added in v0.13.0
type GetNodeInfoResponse struct { Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"` Agent string `protobuf:"bytes,2,opt,name=agent,proto3" json:"agent,omitempty"` PeerId []byte `protobuf:"bytes,3,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` StartedAt uint64 `protobuf:"varint,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` Reachability string `protobuf:"bytes,5,opt,name=reachability,proto3" json:"reachability,omitempty"` Services []int32 `protobuf:"varint,6,rep,packed,name=services,proto3" json:"services,omitempty"` ServicesNames []string `protobuf:"bytes,7,rep,name=services_names,json=servicesNames,proto3" json:"services_names,omitempty"` Addrs []string `protobuf:"bytes,8,rep,name=addrs,proto3" json:"addrs,omitempty"` Protocols []string `protobuf:"bytes,9,rep,name=protocols,proto3" json:"protocols,omitempty"` // contains filtered or unexported fields }
func (*GetNodeInfoResponse) Descriptor
deprecated
added in
v0.13.0
func (*GetNodeInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNodeInfoResponse.ProtoReflect.Descriptor instead.
func (*GetNodeInfoResponse) GetAddrs ¶ added in v0.18.0
func (x *GetNodeInfoResponse) GetAddrs() []string
func (*GetNodeInfoResponse) GetAgent ¶ added in v0.13.0
func (x *GetNodeInfoResponse) GetAgent() string
func (*GetNodeInfoResponse) GetMoniker ¶ added in v0.13.0
func (x *GetNodeInfoResponse) GetMoniker() string
func (*GetNodeInfoResponse) GetPeerId ¶ added in v0.13.0
func (x *GetNodeInfoResponse) GetPeerId() []byte
func (*GetNodeInfoResponse) GetProtocols ¶ added in v0.19.0
func (x *GetNodeInfoResponse) GetProtocols() []string
func (*GetNodeInfoResponse) GetReachability ¶ added in v0.18.0
func (x *GetNodeInfoResponse) GetReachability() string
func (*GetNodeInfoResponse) GetServices ¶ added in v0.19.0
func (x *GetNodeInfoResponse) GetServices() []int32
func (*GetNodeInfoResponse) GetServicesNames ¶ added in v0.19.0
func (x *GetNodeInfoResponse) GetServicesNames() []string
func (*GetNodeInfoResponse) GetStartedAt ¶ added in v0.19.0
func (x *GetNodeInfoResponse) GetStartedAt() uint64
func (*GetNodeInfoResponse) ProtoMessage ¶ added in v0.13.0
func (*GetNodeInfoResponse) ProtoMessage()
func (*GetNodeInfoResponse) ProtoReflect ¶ added in v0.13.0
func (x *GetNodeInfoResponse) ProtoReflect() protoreflect.Message
func (*GetNodeInfoResponse) Reset ¶ added in v0.13.0
func (x *GetNodeInfoResponse) Reset()
func (*GetNodeInfoResponse) String ¶ added in v0.13.0
func (x *GetNodeInfoResponse) String() string
type GetPublicKeyRequest ¶ added in v0.15.0
type GetPublicKeyRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetPublicKeyRequest) Descriptor
deprecated
added in
v0.15.0
func (*GetPublicKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicKeyRequest.ProtoReflect.Descriptor instead.
func (*GetPublicKeyRequest) GetAddress ¶ added in v0.15.0
func (x *GetPublicKeyRequest) GetAddress() string
func (*GetPublicKeyRequest) ProtoMessage ¶ added in v0.15.0
func (*GetPublicKeyRequest) ProtoMessage()
func (*GetPublicKeyRequest) ProtoReflect ¶ added in v0.15.0
func (x *GetPublicKeyRequest) ProtoReflect() protoreflect.Message
func (*GetPublicKeyRequest) Reset ¶ added in v0.15.0
func (x *GetPublicKeyRequest) Reset()
func (*GetPublicKeyRequest) String ¶ added in v0.15.0
func (x *GetPublicKeyRequest) String() string
type GetPublicKeyResponse ¶ added in v0.15.0
type GetPublicKeyResponse struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
func (*GetPublicKeyResponse) Descriptor
deprecated
added in
v0.15.0
func (*GetPublicKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicKeyResponse.ProtoReflect.Descriptor instead.
func (*GetPublicKeyResponse) GetPublicKey ¶ added in v0.15.0
func (x *GetPublicKeyResponse) GetPublicKey() string
func (*GetPublicKeyResponse) ProtoMessage ¶ added in v0.15.0
func (*GetPublicKeyResponse) ProtoMessage()
func (*GetPublicKeyResponse) ProtoReflect ¶ added in v0.15.0
func (x *GetPublicKeyResponse) ProtoReflect() protoreflect.Message
func (*GetPublicKeyResponse) Reset ¶ added in v0.15.0
func (x *GetPublicKeyResponse) Reset()
func (*GetPublicKeyResponse) String ¶ added in v0.15.0
func (x *GetPublicKeyResponse) String() string
type GetRawBondTransactionRequest ¶ added in v0.18.0
type GetRawBondTransactionRequest struct { LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` Stake int64 `protobuf:"varint,4,opt,name=stake,proto3" json:"stake,omitempty"` PublicKey string `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Fee int64 `protobuf:"varint,6,opt,name=fee,proto3" json:"fee,omitempty"` Memo string `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
func (*GetRawBondTransactionRequest) Descriptor
deprecated
added in
v0.18.0
func (*GetRawBondTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRawBondTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawBondTransactionRequest) GetFee ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetFee() int64
func (*GetRawBondTransactionRequest) GetLockTime ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetLockTime() uint32
func (*GetRawBondTransactionRequest) GetMemo ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetMemo() string
func (*GetRawBondTransactionRequest) GetPublicKey ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetPublicKey() string
func (*GetRawBondTransactionRequest) GetReceiver ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetReceiver() string
func (*GetRawBondTransactionRequest) GetSender ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetSender() string
func (*GetRawBondTransactionRequest) GetStake ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) GetStake() int64
func (*GetRawBondTransactionRequest) ProtoMessage ¶ added in v0.18.0
func (*GetRawBondTransactionRequest) ProtoMessage()
func (*GetRawBondTransactionRequest) ProtoReflect ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetRawBondTransactionRequest) Reset ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) Reset()
func (*GetRawBondTransactionRequest) String ¶ added in v0.18.0
func (x *GetRawBondTransactionRequest) String() string
type GetRawTransactionResponse ¶ added in v0.18.0
type GetRawTransactionResponse struct { RawTransaction []byte `protobuf:"bytes,1,opt,name=raw_transaction,json=rawTransaction,proto3" json:"raw_transaction,omitempty"` // contains filtered or unexported fields }
func (*GetRawTransactionResponse) Descriptor
deprecated
added in
v0.18.0
func (*GetRawTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRawTransactionResponse.ProtoReflect.Descriptor instead.
func (*GetRawTransactionResponse) GetRawTransaction ¶ added in v0.18.0
func (x *GetRawTransactionResponse) GetRawTransaction() []byte
func (*GetRawTransactionResponse) ProtoMessage ¶ added in v0.18.0
func (*GetRawTransactionResponse) ProtoMessage()
func (*GetRawTransactionResponse) ProtoReflect ¶ added in v0.18.0
func (x *GetRawTransactionResponse) ProtoReflect() protoreflect.Message
func (*GetRawTransactionResponse) Reset ¶ added in v0.18.0
func (x *GetRawTransactionResponse) Reset()
func (*GetRawTransactionResponse) String ¶ added in v0.18.0
func (x *GetRawTransactionResponse) String() string
type GetRawTransferTransactionRequest ¶ added in v0.18.0
type GetRawTransferTransactionRequest struct { LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` Fee int64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"` Memo string `protobuf:"bytes,6,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
func (*GetRawTransferTransactionRequest) Descriptor
deprecated
added in
v0.18.0
func (*GetRawTransferTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRawTransferTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawTransferTransactionRequest) GetAmount ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) GetAmount() int64
func (*GetRawTransferTransactionRequest) GetFee ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) GetFee() int64
func (*GetRawTransferTransactionRequest) GetLockTime ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) GetLockTime() uint32
func (*GetRawTransferTransactionRequest) GetMemo ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) GetMemo() string
func (*GetRawTransferTransactionRequest) GetReceiver ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) GetReceiver() string
func (*GetRawTransferTransactionRequest) GetSender ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) GetSender() string
func (*GetRawTransferTransactionRequest) ProtoMessage ¶ added in v0.18.0
func (*GetRawTransferTransactionRequest) ProtoMessage()
func (*GetRawTransferTransactionRequest) ProtoReflect ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetRawTransferTransactionRequest) Reset ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) Reset()
func (*GetRawTransferTransactionRequest) String ¶ added in v0.18.0
func (x *GetRawTransferTransactionRequest) String() string
type GetRawUnBondTransactionRequest ¶ added in v0.18.0
type GetRawUnBondTransactionRequest struct { LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` ValidatorAddress string `protobuf:"bytes,3,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
func (*GetRawUnBondTransactionRequest) Descriptor
deprecated
added in
v0.18.0
func (*GetRawUnBondTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRawUnBondTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawUnBondTransactionRequest) GetLockTime ¶ added in v0.18.0
func (x *GetRawUnBondTransactionRequest) GetLockTime() uint32
func (*GetRawUnBondTransactionRequest) GetMemo ¶ added in v0.18.0
func (x *GetRawUnBondTransactionRequest) GetMemo() string
func (*GetRawUnBondTransactionRequest) GetValidatorAddress ¶ added in v0.18.0
func (x *GetRawUnBondTransactionRequest) GetValidatorAddress() string
func (*GetRawUnBondTransactionRequest) ProtoMessage ¶ added in v0.18.0
func (*GetRawUnBondTransactionRequest) ProtoMessage()
func (*GetRawUnBondTransactionRequest) ProtoReflect ¶ added in v0.18.0
func (x *GetRawUnBondTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetRawUnBondTransactionRequest) Reset ¶ added in v0.18.0
func (x *GetRawUnBondTransactionRequest) Reset()
func (*GetRawUnBondTransactionRequest) String ¶ added in v0.18.0
func (x *GetRawUnBondTransactionRequest) String() string
type GetRawWithdrawTransactionRequest ¶ added in v0.18.0
type GetRawWithdrawTransactionRequest struct { LockTime uint32 `protobuf:"varint,1,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"` AccountAddress string `protobuf:"bytes,3,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` Fee int64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Memo string `protobuf:"bytes,6,opt,name=memo,proto3" json:"memo,omitempty"` // contains filtered or unexported fields }
func (*GetRawWithdrawTransactionRequest) Descriptor
deprecated
added in
v0.18.0
func (*GetRawWithdrawTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRawWithdrawTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetRawWithdrawTransactionRequest) GetAccountAddress ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) GetAccountAddress() string
func (*GetRawWithdrawTransactionRequest) GetAmount ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) GetAmount() int64
func (*GetRawWithdrawTransactionRequest) GetFee ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) GetFee() int64
func (*GetRawWithdrawTransactionRequest) GetLockTime ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) GetLockTime() uint32
func (*GetRawWithdrawTransactionRequest) GetMemo ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) GetMemo() string
func (*GetRawWithdrawTransactionRequest) GetValidatorAddress ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) GetValidatorAddress() string
func (*GetRawWithdrawTransactionRequest) ProtoMessage ¶ added in v0.18.0
func (*GetRawWithdrawTransactionRequest) ProtoMessage()
func (*GetRawWithdrawTransactionRequest) ProtoReflect ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetRawWithdrawTransactionRequest) Reset ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) Reset()
func (*GetRawWithdrawTransactionRequest) String ¶ added in v0.18.0
func (x *GetRawWithdrawTransactionRequest) String() string
type GetTransactionRequest ¶
type GetTransactionRequest struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Verbosity TransactionVerbosity `protobuf:"varint,2,opt,name=verbosity,proto3,enum=pactus.TransactionVerbosity" json:"verbosity,omitempty"` // contains filtered or unexported fields }
func (*GetTransactionRequest) Descriptor
deprecated
func (*GetTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionRequest.ProtoReflect.Descriptor instead.
func (*GetTransactionRequest) GetId ¶
func (x *GetTransactionRequest) GetId() []byte
func (*GetTransactionRequest) GetVerbosity ¶
func (x *GetTransactionRequest) GetVerbosity() TransactionVerbosity
func (*GetTransactionRequest) ProtoMessage ¶
func (*GetTransactionRequest) ProtoMessage()
func (*GetTransactionRequest) ProtoReflect ¶
func (x *GetTransactionRequest) ProtoReflect() protoreflect.Message
func (*GetTransactionRequest) Reset ¶
func (x *GetTransactionRequest) Reset()
func (*GetTransactionRequest) String ¶
func (x *GetTransactionRequest) String() string
type GetTransactionResponse ¶
type GetTransactionResponse struct { BlockHeight uint32 `protobuf:"varint,12,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` BlockTime uint32 `protobuf:"varint,13,opt,name=block_time,json=blockTime,proto3" json:"block_time,omitempty"` Transaction *TransactionInfo `protobuf:"bytes,3,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
func (*GetTransactionResponse) Descriptor
deprecated
func (*GetTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTransactionResponse.ProtoReflect.Descriptor instead.
func (*GetTransactionResponse) GetBlockHeight ¶
func (x *GetTransactionResponse) GetBlockHeight() uint32
func (*GetTransactionResponse) GetBlockTime ¶
func (x *GetTransactionResponse) GetBlockTime() uint32
func (*GetTransactionResponse) GetTransaction ¶
func (x *GetTransactionResponse) GetTransaction() *TransactionInfo
func (*GetTransactionResponse) ProtoMessage ¶
func (*GetTransactionResponse) ProtoMessage()
func (*GetTransactionResponse) ProtoReflect ¶
func (x *GetTransactionResponse) ProtoReflect() protoreflect.Message
func (*GetTransactionResponse) Reset ¶
func (x *GetTransactionResponse) Reset()
func (*GetTransactionResponse) String ¶
func (x *GetTransactionResponse) String() string
type GetValidatorAddressRequest ¶ added in v1.0.0
type GetValidatorAddressRequest struct { PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorAddressRequest) Descriptor
deprecated
added in
v1.0.0
func (*GetValidatorAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorAddressRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorAddressRequest) GetPublicKey ¶ added in v1.0.0
func (x *GetValidatorAddressRequest) GetPublicKey() string
func (*GetValidatorAddressRequest) ProtoMessage ¶ added in v1.0.0
func (*GetValidatorAddressRequest) ProtoMessage()
func (*GetValidatorAddressRequest) ProtoReflect ¶ added in v1.0.0
func (x *GetValidatorAddressRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorAddressRequest) Reset ¶ added in v1.0.0
func (x *GetValidatorAddressRequest) Reset()
func (*GetValidatorAddressRequest) String ¶ added in v1.0.0
func (x *GetValidatorAddressRequest) String() string
type GetValidatorAddressResponse ¶ added in v1.0.0
type GetValidatorAddressResponse struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorAddressResponse) Descriptor
deprecated
added in
v1.0.0
func (*GetValidatorAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorAddressResponse.ProtoReflect.Descriptor instead.
func (*GetValidatorAddressResponse) GetAddress ¶ added in v1.0.0
func (x *GetValidatorAddressResponse) GetAddress() string
func (*GetValidatorAddressResponse) ProtoMessage ¶ added in v1.0.0
func (*GetValidatorAddressResponse) ProtoMessage()
func (*GetValidatorAddressResponse) ProtoReflect ¶ added in v1.0.0
func (x *GetValidatorAddressResponse) ProtoReflect() protoreflect.Message
func (*GetValidatorAddressResponse) Reset ¶ added in v1.0.0
func (x *GetValidatorAddressResponse) Reset()
func (*GetValidatorAddressResponse) String ¶ added in v1.0.0
func (x *GetValidatorAddressResponse) String() string
type GetValidatorAddressesRequest ¶ added in v0.12.0
type GetValidatorAddressesRequest struct {
// contains filtered or unexported fields
}
func (*GetValidatorAddressesRequest) Descriptor
deprecated
added in
v0.12.0
func (*GetValidatorAddressesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorAddressesRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorAddressesRequest) ProtoMessage ¶ added in v0.12.0
func (*GetValidatorAddressesRequest) ProtoMessage()
func (*GetValidatorAddressesRequest) ProtoReflect ¶ added in v0.12.0
func (x *GetValidatorAddressesRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorAddressesRequest) Reset ¶ added in v0.12.0
func (x *GetValidatorAddressesRequest) Reset()
func (*GetValidatorAddressesRequest) String ¶ added in v0.12.0
func (x *GetValidatorAddressesRequest) String() string
type GetValidatorAddressesResponse ¶ added in v0.12.0
type GetValidatorAddressesResponse struct { Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorAddressesResponse) Descriptor
deprecated
added in
v0.12.0
func (*GetValidatorAddressesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorAddressesResponse.ProtoReflect.Descriptor instead.
func (*GetValidatorAddressesResponse) GetAddresses ¶ added in v0.12.0
func (x *GetValidatorAddressesResponse) GetAddresses() []string
func (*GetValidatorAddressesResponse) ProtoMessage ¶ added in v0.12.0
func (*GetValidatorAddressesResponse) ProtoMessage()
func (*GetValidatorAddressesResponse) ProtoReflect ¶ added in v0.12.0
func (x *GetValidatorAddressesResponse) ProtoReflect() protoreflect.Message
func (*GetValidatorAddressesResponse) Reset ¶ added in v0.12.0
func (x *GetValidatorAddressesResponse) Reset()
func (*GetValidatorAddressesResponse) String ¶ added in v0.12.0
func (x *GetValidatorAddressesResponse) String() string
type GetValidatorByNumberRequest ¶
type GetValidatorByNumberRequest struct { Number int32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorByNumberRequest) Descriptor
deprecated
func (*GetValidatorByNumberRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorByNumberRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorByNumberRequest) GetNumber ¶
func (x *GetValidatorByNumberRequest) GetNumber() int32
func (*GetValidatorByNumberRequest) ProtoMessage ¶
func (*GetValidatorByNumberRequest) ProtoMessage()
func (*GetValidatorByNumberRequest) ProtoReflect ¶
func (x *GetValidatorByNumberRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorByNumberRequest) Reset ¶
func (x *GetValidatorByNumberRequest) Reset()
func (*GetValidatorByNumberRequest) String ¶
func (x *GetValidatorByNumberRequest) String() string
type GetValidatorRequest ¶
type GetValidatorRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorRequest) Descriptor
deprecated
func (*GetValidatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorRequest.ProtoReflect.Descriptor instead.
func (*GetValidatorRequest) GetAddress ¶
func (x *GetValidatorRequest) GetAddress() string
func (*GetValidatorRequest) ProtoMessage ¶
func (*GetValidatorRequest) ProtoMessage()
func (*GetValidatorRequest) ProtoReflect ¶
func (x *GetValidatorRequest) ProtoReflect() protoreflect.Message
func (*GetValidatorRequest) Reset ¶
func (x *GetValidatorRequest) Reset()
func (*GetValidatorRequest) String ¶
func (x *GetValidatorRequest) String() string
type GetValidatorResponse ¶
type GetValidatorResponse struct { Validator *ValidatorInfo `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*GetValidatorResponse) Descriptor
deprecated
func (*GetValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetValidatorResponse.ProtoReflect.Descriptor instead.
func (*GetValidatorResponse) GetValidator ¶
func (x *GetValidatorResponse) GetValidator() *ValidatorInfo
func (*GetValidatorResponse) ProtoMessage ¶
func (*GetValidatorResponse) ProtoMessage()
func (*GetValidatorResponse) ProtoReflect ¶
func (x *GetValidatorResponse) ProtoReflect() protoreflect.Message
func (*GetValidatorResponse) Reset ¶
func (x *GetValidatorResponse) Reset()
func (*GetValidatorResponse) String ¶
func (x *GetValidatorResponse) String() string
type LoadWalletRequest ¶
type LoadWalletRequest struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*LoadWalletRequest) Descriptor
deprecated
func (*LoadWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoadWalletRequest.ProtoReflect.Descriptor instead.
func (*LoadWalletRequest) GetWalletName ¶ added in v1.0.0
func (x *LoadWalletRequest) GetWalletName() string
func (*LoadWalletRequest) ProtoMessage ¶
func (*LoadWalletRequest) ProtoMessage()
func (*LoadWalletRequest) ProtoReflect ¶
func (x *LoadWalletRequest) ProtoReflect() protoreflect.Message
func (*LoadWalletRequest) Reset ¶
func (x *LoadWalletRequest) Reset()
func (*LoadWalletRequest) String ¶
func (x *LoadWalletRequest) String() string
type LoadWalletResponse ¶
type LoadWalletResponse struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*LoadWalletResponse) Descriptor
deprecated
func (*LoadWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoadWalletResponse.ProtoReflect.Descriptor instead.
func (*LoadWalletResponse) GetWalletName ¶ added in v1.0.0
func (x *LoadWalletResponse) GetWalletName() string
func (*LoadWalletResponse) ProtoMessage ¶
func (*LoadWalletResponse) ProtoMessage()
func (*LoadWalletResponse) ProtoReflect ¶
func (x *LoadWalletResponse) ProtoReflect() protoreflect.Message
func (*LoadWalletResponse) Reset ¶
func (x *LoadWalletResponse) Reset()
func (*LoadWalletResponse) String ¶
func (x *LoadWalletResponse) String() string
type LockWalletRequest ¶
type LockWalletRequest struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*LockWalletRequest) Descriptor
deprecated
func (*LockWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use LockWalletRequest.ProtoReflect.Descriptor instead.
func (*LockWalletRequest) GetWalletName ¶ added in v1.0.0
func (x *LockWalletRequest) GetWalletName() string
func (*LockWalletRequest) ProtoMessage ¶
func (*LockWalletRequest) ProtoMessage()
func (*LockWalletRequest) ProtoReflect ¶
func (x *LockWalletRequest) ProtoReflect() protoreflect.Message
func (*LockWalletRequest) Reset ¶
func (x *LockWalletRequest) Reset()
func (*LockWalletRequest) String ¶
func (x *LockWalletRequest) String() string
type LockWalletResponse ¶
type LockWalletResponse struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*LockWalletResponse) Descriptor
deprecated
func (*LockWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use LockWalletResponse.ProtoReflect.Descriptor instead.
func (*LockWalletResponse) GetWalletName ¶ added in v1.0.0
func (x *LockWalletResponse) GetWalletName() string
func (*LockWalletResponse) ProtoMessage ¶
func (*LockWalletResponse) ProtoMessage()
func (*LockWalletResponse) ProtoReflect ¶
func (x *LockWalletResponse) ProtoReflect() protoreflect.Message
func (*LockWalletResponse) Reset ¶
func (x *LockWalletResponse) Reset()
func (*LockWalletResponse) String ¶
func (x *LockWalletResponse) String() string
type NetworkClient ¶
type NetworkClient interface { GetNetworkInfo(ctx context.Context, in *GetNetworkInfoRequest, opts ...grpc.CallOption) (*GetNetworkInfoResponse, error) GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*GetNodeInfoResponse, error) }
NetworkClient is the client API for Network service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNetworkClient ¶
func NewNetworkClient(cc grpc.ClientConnInterface) NetworkClient
type NetworkServer ¶
type NetworkServer interface { GetNetworkInfo(context.Context, *GetNetworkInfoRequest) (*GetNetworkInfoResponse, error) GetNodeInfo(context.Context, *GetNodeInfoRequest) (*GetNodeInfoResponse, error) }
NetworkServer is the server API for Network service. All implementations should embed UnimplementedNetworkServer for forward compatibility
type PayloadBond ¶
type PayloadBond struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Stake int64 `protobuf:"varint,3,opt,name=stake,proto3" json:"stake,omitempty"` // contains filtered or unexported fields }
func (*PayloadBond) Descriptor
deprecated
func (*PayloadBond) Descriptor() ([]byte, []int)
Deprecated: Use PayloadBond.ProtoReflect.Descriptor instead.
func (*PayloadBond) GetReceiver ¶
func (x *PayloadBond) GetReceiver() string
func (*PayloadBond) GetSender ¶
func (x *PayloadBond) GetSender() string
func (*PayloadBond) GetStake ¶
func (x *PayloadBond) GetStake() int64
func (*PayloadBond) ProtoMessage ¶
func (*PayloadBond) ProtoMessage()
func (*PayloadBond) ProtoReflect ¶
func (x *PayloadBond) ProtoReflect() protoreflect.Message
func (*PayloadBond) Reset ¶
func (x *PayloadBond) Reset()
func (*PayloadBond) String ¶
func (x *PayloadBond) String() string
type PayloadSortition ¶
type PayloadSortition struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Proof []byte `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
func (*PayloadSortition) Descriptor
deprecated
func (*PayloadSortition) Descriptor() ([]byte, []int)
Deprecated: Use PayloadSortition.ProtoReflect.Descriptor instead.
func (*PayloadSortition) GetAddress ¶
func (x *PayloadSortition) GetAddress() string
func (*PayloadSortition) GetProof ¶
func (x *PayloadSortition) GetProof() []byte
func (*PayloadSortition) ProtoMessage ¶
func (*PayloadSortition) ProtoMessage()
func (*PayloadSortition) ProtoReflect ¶
func (x *PayloadSortition) ProtoReflect() protoreflect.Message
func (*PayloadSortition) Reset ¶
func (x *PayloadSortition) Reset()
func (*PayloadSortition) String ¶
func (x *PayloadSortition) String() string
type PayloadTransfer ¶ added in v0.11.0
type PayloadTransfer struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*PayloadTransfer) Descriptor
deprecated
added in
v0.11.0
func (*PayloadTransfer) Descriptor() ([]byte, []int)
Deprecated: Use PayloadTransfer.ProtoReflect.Descriptor instead.
func (*PayloadTransfer) GetAmount ¶ added in v0.11.0
func (x *PayloadTransfer) GetAmount() int64
func (*PayloadTransfer) GetReceiver ¶ added in v0.11.0
func (x *PayloadTransfer) GetReceiver() string
func (*PayloadTransfer) GetSender ¶ added in v0.11.0
func (x *PayloadTransfer) GetSender() string
func (*PayloadTransfer) ProtoMessage ¶ added in v0.11.0
func (*PayloadTransfer) ProtoMessage()
func (*PayloadTransfer) ProtoReflect ¶ added in v0.11.0
func (x *PayloadTransfer) ProtoReflect() protoreflect.Message
func (*PayloadTransfer) Reset ¶ added in v0.11.0
func (x *PayloadTransfer) Reset()
func (*PayloadTransfer) String ¶ added in v0.11.0
func (x *PayloadTransfer) String() string
type PayloadType ¶
type PayloadType int32
const ( PayloadType_UNKNOWN PayloadType = 0 PayloadType_TRANSFER_PAYLOAD PayloadType = 1 PayloadType_BOND_PAYLOAD PayloadType = 2 PayloadType_SORTITION_PAYLOAD PayloadType = 3 PayloadType_UNBOND_PAYLOAD PayloadType = 4 PayloadType_WITHDRAW_PAYLOAD PayloadType = 5 )
func (PayloadType) Descriptor ¶
func (PayloadType) Descriptor() protoreflect.EnumDescriptor
func (PayloadType) Enum ¶
func (x PayloadType) Enum() *PayloadType
func (PayloadType) EnumDescriptor
deprecated
func (PayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PayloadType.Descriptor instead.
func (PayloadType) Number ¶
func (x PayloadType) Number() protoreflect.EnumNumber
func (PayloadType) String ¶
func (x PayloadType) String() string
func (PayloadType) Type ¶
func (PayloadType) Type() protoreflect.EnumType
type PayloadUnbond ¶
type PayloadUnbond struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*PayloadUnbond) Descriptor
deprecated
func (*PayloadUnbond) Descriptor() ([]byte, []int)
Deprecated: Use PayloadUnbond.ProtoReflect.Descriptor instead.
func (*PayloadUnbond) GetValidator ¶
func (x *PayloadUnbond) GetValidator() string
func (*PayloadUnbond) ProtoMessage ¶
func (*PayloadUnbond) ProtoMessage()
func (*PayloadUnbond) ProtoReflect ¶
func (x *PayloadUnbond) ProtoReflect() protoreflect.Message
func (*PayloadUnbond) Reset ¶
func (x *PayloadUnbond) Reset()
func (*PayloadUnbond) String ¶
func (x *PayloadUnbond) String() string
type PayloadWithdraw ¶
type PayloadWithdraw struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*PayloadWithdraw) Descriptor
deprecated
func (*PayloadWithdraw) Descriptor() ([]byte, []int)
Deprecated: Use PayloadWithdraw.ProtoReflect.Descriptor instead.
func (*PayloadWithdraw) GetAmount ¶
func (x *PayloadWithdraw) GetAmount() int64
func (*PayloadWithdraw) GetFrom ¶
func (x *PayloadWithdraw) GetFrom() string
func (*PayloadWithdraw) GetTo ¶
func (x *PayloadWithdraw) GetTo() string
func (*PayloadWithdraw) ProtoMessage ¶
func (*PayloadWithdraw) ProtoMessage()
func (*PayloadWithdraw) ProtoReflect ¶
func (x *PayloadWithdraw) ProtoReflect() protoreflect.Message
func (*PayloadWithdraw) Reset ¶
func (x *PayloadWithdraw) Reset()
func (*PayloadWithdraw) String ¶
func (x *PayloadWithdraw) String() string
type PeerInfo ¶
type PeerInfo struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Moniker string `protobuf:"bytes,2,opt,name=moniker,proto3" json:"moniker,omitempty"` Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"` PeerId []byte `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` ConsensusKeys []string `protobuf:"bytes,5,rep,name=consensus_keys,json=consensusKeys,proto3" json:"consensus_keys,omitempty"` ConsensusAddress []string `protobuf:"bytes,6,rep,name=consensus_address,json=consensusAddress,proto3" json:"consensus_address,omitempty"` Services uint32 `protobuf:"varint,7,opt,name=services,proto3" json:"services,omitempty"` LastBlockHash []byte `protobuf:"bytes,8,opt,name=last_block_hash,json=lastBlockHash,proto3" json:"last_block_hash,omitempty"` Height uint32 `protobuf:"varint,9,opt,name=height,proto3" json:"height,omitempty"` ReceivedMessages int32 `protobuf:"varint,10,opt,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"` InvalidMessages int32 `protobuf:"varint,11,opt,name=invalid_messages,json=invalidMessages,proto3" json:"invalid_messages,omitempty"` LastSent int64 `protobuf:"varint,12,opt,name=last_sent,json=lastSent,proto3" json:"last_sent,omitempty"` LastReceived int64 `protobuf:"varint,13,opt,name=last_received,json=lastReceived,proto3" json:"last_received,omitempty"` SentBytes map[int32]int64 `` /* 179-byte string literal not displayed */ ReceivedBytes map[int32]int64 `` /* 191-byte string literal not displayed */ Address string `protobuf:"bytes,16,opt,name=address,proto3" json:"address,omitempty"` Direction string `protobuf:"bytes,17,opt,name=direction,proto3" json:"direction,omitempty"` Protocols []string `protobuf:"bytes,18,rep,name=protocols,proto3" json:"protocols,omitempty"` TotalSessions int32 `protobuf:"varint,19,opt,name=total_sessions,json=totalSessions,proto3" json:"total_sessions,omitempty"` CompletedSessions int32 `protobuf:"varint,20,opt,name=completed_sessions,json=completedSessions,proto3" json:"completed_sessions,omitempty"` // contains filtered or unexported fields }
func (*PeerInfo) Descriptor
deprecated
func (*PeerInfo) GetAddress ¶ added in v0.17.0
func (*PeerInfo) GetCompletedSessions ¶ added in v0.18.0
func (*PeerInfo) GetConsensusAddress ¶ added in v1.0.0
func (*PeerInfo) GetConsensusKeys ¶ added in v0.13.0
func (*PeerInfo) GetDirection ¶ added in v0.18.0
func (*PeerInfo) GetInvalidMessages ¶
func (*PeerInfo) GetLastBlockHash ¶ added in v0.15.0
func (*PeerInfo) GetLastReceived ¶ added in v0.15.0
func (*PeerInfo) GetLastSent ¶ added in v0.15.0
func (*PeerInfo) GetMoniker ¶
func (*PeerInfo) GetProtocols ¶ added in v0.18.0
func (*PeerInfo) GetReceivedBytes ¶
func (*PeerInfo) GetReceivedMessages ¶
func (*PeerInfo) GetSentBytes ¶ added in v0.15.0
func (*PeerInfo) GetServices ¶ added in v0.15.0
func (*PeerInfo) GetTotalSessions ¶ added in v0.18.0
func (*PeerInfo) ProtoMessage ¶
func (*PeerInfo) ProtoMessage()
func (*PeerInfo) ProtoReflect ¶
func (x *PeerInfo) ProtoReflect() protoreflect.Message
type SignRawTransactionRequest ¶ added in v1.0.0
type SignRawTransactionRequest struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` RawTransaction []byte `protobuf:"bytes,2,opt,name=raw_transaction,json=rawTransaction,proto3" json:"raw_transaction,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignRawTransactionRequest) Descriptor
deprecated
added in
v1.0.0
func (*SignRawTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignRawTransactionRequest.ProtoReflect.Descriptor instead.
func (*SignRawTransactionRequest) GetPassword ¶ added in v1.0.0
func (x *SignRawTransactionRequest) GetPassword() string
func (*SignRawTransactionRequest) GetRawTransaction ¶ added in v1.0.0
func (x *SignRawTransactionRequest) GetRawTransaction() []byte
func (*SignRawTransactionRequest) GetWalletName ¶ added in v1.0.0
func (x *SignRawTransactionRequest) GetWalletName() string
func (*SignRawTransactionRequest) ProtoMessage ¶ added in v1.0.0
func (*SignRawTransactionRequest) ProtoMessage()
func (*SignRawTransactionRequest) ProtoReflect ¶ added in v1.0.0
func (x *SignRawTransactionRequest) ProtoReflect() protoreflect.Message
func (*SignRawTransactionRequest) Reset ¶ added in v1.0.0
func (x *SignRawTransactionRequest) Reset()
func (*SignRawTransactionRequest) String ¶ added in v1.0.0
func (x *SignRawTransactionRequest) String() string
type SignRawTransactionResponse ¶ added in v1.0.0
type SignRawTransactionResponse struct { TransactionId []byte `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` SignedRawTransaction []byte `protobuf:"bytes,2,opt,name=signed_raw_transaction,json=signedRawTransaction,proto3" json:"signed_raw_transaction,omitempty"` // contains filtered or unexported fields }
func (*SignRawTransactionResponse) Descriptor
deprecated
added in
v1.0.0
func (*SignRawTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignRawTransactionResponse.ProtoReflect.Descriptor instead.
func (*SignRawTransactionResponse) GetSignedRawTransaction ¶ added in v1.0.0
func (x *SignRawTransactionResponse) GetSignedRawTransaction() []byte
func (*SignRawTransactionResponse) GetTransactionId ¶ added in v1.0.0
func (x *SignRawTransactionResponse) GetTransactionId() []byte
func (*SignRawTransactionResponse) ProtoMessage ¶ added in v1.0.0
func (*SignRawTransactionResponse) ProtoMessage()
func (*SignRawTransactionResponse) ProtoReflect ¶ added in v1.0.0
func (x *SignRawTransactionResponse) ProtoReflect() protoreflect.Message
func (*SignRawTransactionResponse) Reset ¶ added in v1.0.0
func (x *SignRawTransactionResponse) Reset()
func (*SignRawTransactionResponse) String ¶ added in v1.0.0
func (x *SignRawTransactionResponse) String() string
type TransactionClient ¶
type TransactionClient interface { GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) CalculateFee(ctx context.Context, in *CalculateFeeRequest, opts ...grpc.CallOption) (*CalculateFeeResponse, error) BroadcastTransaction(ctx context.Context, in *BroadcastTransactionRequest, opts ...grpc.CallOption) (*BroadcastTransactionResponse, error) GetRawTransferTransaction(ctx context.Context, in *GetRawTransferTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) GetRawBondTransaction(ctx context.Context, in *GetRawBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) GetRawUnBondTransaction(ctx context.Context, in *GetRawUnBondTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) GetRawWithdrawTransaction(ctx context.Context, in *GetRawWithdrawTransactionRequest, opts ...grpc.CallOption) (*GetRawTransactionResponse, error) }
TransactionClient is the client API for Transaction service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTransactionClient ¶
func NewTransactionClient(cc grpc.ClientConnInterface) TransactionClient
type TransactionInfo ¶
type TransactionInfo struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` LockTime uint32 `protobuf:"varint,4,opt,name=lock_time,json=lockTime,proto3" json:"lock_time,omitempty"` Value int64 `protobuf:"varint,5,opt,name=value,proto3" json:"value,omitempty"` Fee int64 `protobuf:"varint,6,opt,name=fee,proto3" json:"fee,omitempty"` PayloadType PayloadType `protobuf:"varint,7,opt,name=payloadType,proto3,enum=pactus.PayloadType" json:"payloadType,omitempty"` // Types that are assignable to Payload: // // *TransactionInfo_Transfer // *TransactionInfo_Bond // *TransactionInfo_Sortition // *TransactionInfo_Unbond // *TransactionInfo_Withdraw Payload isTransactionInfo_Payload `protobuf_oneof:"payload"` Memo string `protobuf:"bytes,8,opt,name=memo,proto3" json:"memo,omitempty"` PublicKey string `protobuf:"bytes,9,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Signature []byte `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*TransactionInfo) Descriptor
deprecated
func (*TransactionInfo) Descriptor() ([]byte, []int)
Deprecated: Use TransactionInfo.ProtoReflect.Descriptor instead.
func (*TransactionInfo) GetBond ¶
func (x *TransactionInfo) GetBond() *PayloadBond
func (*TransactionInfo) GetData ¶
func (x *TransactionInfo) GetData() []byte
func (*TransactionInfo) GetFee ¶
func (x *TransactionInfo) GetFee() int64
func (*TransactionInfo) GetId ¶
func (x *TransactionInfo) GetId() []byte
func (*TransactionInfo) GetLockTime ¶ added in v0.15.0
func (x *TransactionInfo) GetLockTime() uint32
func (*TransactionInfo) GetMemo ¶
func (x *TransactionInfo) GetMemo() string
func (*TransactionInfo) GetPayload ¶
func (m *TransactionInfo) GetPayload() isTransactionInfo_Payload
func (*TransactionInfo) GetPayloadType ¶
func (x *TransactionInfo) GetPayloadType() PayloadType
func (*TransactionInfo) GetPublicKey ¶
func (x *TransactionInfo) GetPublicKey() string
func (*TransactionInfo) GetSignature ¶
func (x *TransactionInfo) GetSignature() []byte
func (*TransactionInfo) GetSortition ¶
func (x *TransactionInfo) GetSortition() *PayloadSortition
func (*TransactionInfo) GetTransfer ¶ added in v0.11.0
func (x *TransactionInfo) GetTransfer() *PayloadTransfer
func (*TransactionInfo) GetUnbond ¶
func (x *TransactionInfo) GetUnbond() *PayloadUnbond
func (*TransactionInfo) GetValue ¶
func (x *TransactionInfo) GetValue() int64
func (*TransactionInfo) GetVersion ¶
func (x *TransactionInfo) GetVersion() int32
func (*TransactionInfo) GetWithdraw ¶
func (x *TransactionInfo) GetWithdraw() *PayloadWithdraw
func (*TransactionInfo) ProtoMessage ¶
func (*TransactionInfo) ProtoMessage()
func (*TransactionInfo) ProtoReflect ¶
func (x *TransactionInfo) ProtoReflect() protoreflect.Message
func (*TransactionInfo) Reset ¶
func (x *TransactionInfo) Reset()
func (*TransactionInfo) String ¶
func (x *TransactionInfo) String() string
type TransactionInfo_Bond ¶
type TransactionInfo_Bond struct {
Bond *PayloadBond `protobuf:"bytes,31,opt,name=bond,proto3,oneof"`
}
type TransactionInfo_Sortition ¶
type TransactionInfo_Sortition struct {
Sortition *PayloadSortition `protobuf:"bytes,32,opt,name=sortition,proto3,oneof"`
}
type TransactionInfo_Transfer ¶ added in v0.11.0
type TransactionInfo_Transfer struct {
Transfer *PayloadTransfer `protobuf:"bytes,30,opt,name=transfer,proto3,oneof"`
}
type TransactionInfo_Unbond ¶
type TransactionInfo_Unbond struct {
Unbond *PayloadUnbond `protobuf:"bytes,33,opt,name=unbond,proto3,oneof"`
}
type TransactionInfo_Withdraw ¶
type TransactionInfo_Withdraw struct {
Withdraw *PayloadWithdraw `protobuf:"bytes,34,opt,name=withdraw,proto3,oneof"`
}
type TransactionServer ¶
type TransactionServer interface { GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) CalculateFee(context.Context, *CalculateFeeRequest) (*CalculateFeeResponse, error) BroadcastTransaction(context.Context, *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error) GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error) GetRawBondTransaction(context.Context, *GetRawBondTransactionRequest) (*GetRawTransactionResponse, error) GetRawUnBondTransaction(context.Context, *GetRawUnBondTransactionRequest) (*GetRawTransactionResponse, error) GetRawWithdrawTransaction(context.Context, *GetRawWithdrawTransactionRequest) (*GetRawTransactionResponse, error) }
TransactionServer is the server API for Transaction service. All implementations should embed UnimplementedTransactionServer for forward compatibility
type TransactionVerbosity ¶
type TransactionVerbosity int32
const ( TransactionVerbosity_TRANSACTION_DATA TransactionVerbosity = 0 TransactionVerbosity_TRANSACTION_INFO TransactionVerbosity = 1 )
func (TransactionVerbosity) Descriptor ¶
func (TransactionVerbosity) Descriptor() protoreflect.EnumDescriptor
func (TransactionVerbosity) Enum ¶
func (x TransactionVerbosity) Enum() *TransactionVerbosity
func (TransactionVerbosity) EnumDescriptor
deprecated
func (TransactionVerbosity) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionVerbosity.Descriptor instead.
func (TransactionVerbosity) Number ¶
func (x TransactionVerbosity) Number() protoreflect.EnumNumber
func (TransactionVerbosity) String ¶
func (x TransactionVerbosity) String() string
func (TransactionVerbosity) Type ¶
func (TransactionVerbosity) Type() protoreflect.EnumType
type UnimplementedBlockchainServer ¶
type UnimplementedBlockchainServer struct { }
UnimplementedBlockchainServer should be embedded to have forward compatible implementations.
func (UnimplementedBlockchainServer) GetAccount ¶
func (UnimplementedBlockchainServer) GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
func (UnimplementedBlockchainServer) GetBlock ¶
func (UnimplementedBlockchainServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error)
func (UnimplementedBlockchainServer) GetBlockHash ¶
func (UnimplementedBlockchainServer) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error)
func (UnimplementedBlockchainServer) GetBlockHeight ¶
func (UnimplementedBlockchainServer) GetBlockHeight(context.Context, *GetBlockHeightRequest) (*GetBlockHeightResponse, error)
func (UnimplementedBlockchainServer) GetBlockchainInfo ¶
func (UnimplementedBlockchainServer) GetBlockchainInfo(context.Context, *GetBlockchainInfoRequest) (*GetBlockchainInfoResponse, error)
func (UnimplementedBlockchainServer) GetConsensusInfo ¶
func (UnimplementedBlockchainServer) GetConsensusInfo(context.Context, *GetConsensusInfoRequest) (*GetConsensusInfoResponse, error)
func (UnimplementedBlockchainServer) GetPublicKey ¶ added in v0.15.0
func (UnimplementedBlockchainServer) GetPublicKey(context.Context, *GetPublicKeyRequest) (*GetPublicKeyResponse, error)
func (UnimplementedBlockchainServer) GetValidator ¶
func (UnimplementedBlockchainServer) GetValidator(context.Context, *GetValidatorRequest) (*GetValidatorResponse, error)
func (UnimplementedBlockchainServer) GetValidatorAddresses ¶ added in v0.12.0
func (UnimplementedBlockchainServer) GetValidatorAddresses(context.Context, *GetValidatorAddressesRequest) (*GetValidatorAddressesResponse, error)
func (UnimplementedBlockchainServer) GetValidatorByNumber ¶
func (UnimplementedBlockchainServer) GetValidatorByNumber(context.Context, *GetValidatorByNumberRequest) (*GetValidatorResponse, error)
type UnimplementedNetworkServer ¶
type UnimplementedNetworkServer struct { }
UnimplementedNetworkServer should be embedded to have forward compatible implementations.
func (UnimplementedNetworkServer) GetNetworkInfo ¶
func (UnimplementedNetworkServer) GetNetworkInfo(context.Context, *GetNetworkInfoRequest) (*GetNetworkInfoResponse, error)
func (UnimplementedNetworkServer) GetNodeInfo ¶ added in v0.13.0
func (UnimplementedNetworkServer) GetNodeInfo(context.Context, *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
type UnimplementedTransactionServer ¶
type UnimplementedTransactionServer struct { }
UnimplementedTransactionServer should be embedded to have forward compatible implementations.
func (UnimplementedTransactionServer) BroadcastTransaction ¶ added in v1.0.0
func (UnimplementedTransactionServer) BroadcastTransaction(context.Context, *BroadcastTransactionRequest) (*BroadcastTransactionResponse, error)
func (UnimplementedTransactionServer) CalculateFee ¶ added in v0.15.0
func (UnimplementedTransactionServer) CalculateFee(context.Context, *CalculateFeeRequest) (*CalculateFeeResponse, error)
func (UnimplementedTransactionServer) GetRawBondTransaction ¶ added in v0.18.0
func (UnimplementedTransactionServer) GetRawBondTransaction(context.Context, *GetRawBondTransactionRequest) (*GetRawTransactionResponse, error)
func (UnimplementedTransactionServer) GetRawTransferTransaction ¶ added in v0.18.0
func (UnimplementedTransactionServer) GetRawTransferTransaction(context.Context, *GetRawTransferTransactionRequest) (*GetRawTransactionResponse, error)
func (UnimplementedTransactionServer) GetRawUnBondTransaction ¶ added in v0.18.0
func (UnimplementedTransactionServer) GetRawUnBondTransaction(context.Context, *GetRawUnBondTransactionRequest) (*GetRawTransactionResponse, error)
func (UnimplementedTransactionServer) GetRawWithdrawTransaction ¶ added in v0.18.0
func (UnimplementedTransactionServer) GetRawWithdrawTransaction(context.Context, *GetRawWithdrawTransactionRequest) (*GetRawTransactionResponse, error)
func (UnimplementedTransactionServer) GetTransaction ¶
func (UnimplementedTransactionServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error)
type UnimplementedWalletServer ¶
type UnimplementedWalletServer struct { }
UnimplementedWalletServer should be embedded to have forward compatible implementations.
func (UnimplementedWalletServer) CreateWallet ¶
func (UnimplementedWalletServer) CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
func (UnimplementedWalletServer) GetValidatorAddress ¶ added in v1.0.0
func (UnimplementedWalletServer) GetValidatorAddress(context.Context, *GetValidatorAddressRequest) (*GetValidatorAddressResponse, error)
func (UnimplementedWalletServer) LoadWallet ¶
func (UnimplementedWalletServer) LoadWallet(context.Context, *LoadWalletRequest) (*LoadWalletResponse, error)
func (UnimplementedWalletServer) LockWallet ¶
func (UnimplementedWalletServer) LockWallet(context.Context, *LockWalletRequest) (*LockWalletResponse, error)
func (UnimplementedWalletServer) SignRawTransaction ¶ added in v1.0.0
func (UnimplementedWalletServer) SignRawTransaction(context.Context, *SignRawTransactionRequest) (*SignRawTransactionResponse, error)
func (UnimplementedWalletServer) UnloadWallet ¶
func (UnimplementedWalletServer) UnloadWallet(context.Context, *UnloadWalletRequest) (*UnloadWalletResponse, error)
func (UnimplementedWalletServer) UnlockWallet ¶
func (UnimplementedWalletServer) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error)
type UnloadWalletRequest ¶
type UnloadWalletRequest struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*UnloadWalletRequest) Descriptor
deprecated
func (*UnloadWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnloadWalletRequest.ProtoReflect.Descriptor instead.
func (*UnloadWalletRequest) GetWalletName ¶ added in v1.0.0
func (x *UnloadWalletRequest) GetWalletName() string
func (*UnloadWalletRequest) ProtoMessage ¶
func (*UnloadWalletRequest) ProtoMessage()
func (*UnloadWalletRequest) ProtoReflect ¶
func (x *UnloadWalletRequest) ProtoReflect() protoreflect.Message
func (*UnloadWalletRequest) Reset ¶
func (x *UnloadWalletRequest) Reset()
func (*UnloadWalletRequest) String ¶
func (x *UnloadWalletRequest) String() string
type UnloadWalletResponse ¶
type UnloadWalletResponse struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*UnloadWalletResponse) Descriptor
deprecated
func (*UnloadWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnloadWalletResponse.ProtoReflect.Descriptor instead.
func (*UnloadWalletResponse) GetWalletName ¶ added in v1.0.0
func (x *UnloadWalletResponse) GetWalletName() string
func (*UnloadWalletResponse) ProtoMessage ¶
func (*UnloadWalletResponse) ProtoMessage()
func (*UnloadWalletResponse) ProtoReflect ¶
func (x *UnloadWalletResponse) ProtoReflect() protoreflect.Message
func (*UnloadWalletResponse) Reset ¶
func (x *UnloadWalletResponse) Reset()
func (*UnloadWalletResponse) String ¶
func (x *UnloadWalletResponse) String() string
type UnlockWalletRequest ¶
type UnlockWalletRequest struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Timeout int32 `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"` // contains filtered or unexported fields }
func (*UnlockWalletRequest) Descriptor
deprecated
func (*UnlockWalletRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnlockWalletRequest.ProtoReflect.Descriptor instead.
func (*UnlockWalletRequest) GetPassword ¶
func (x *UnlockWalletRequest) GetPassword() string
func (*UnlockWalletRequest) GetTimeout ¶
func (x *UnlockWalletRequest) GetTimeout() int32
func (*UnlockWalletRequest) GetWalletName ¶ added in v1.0.0
func (x *UnlockWalletRequest) GetWalletName() string
func (*UnlockWalletRequest) ProtoMessage ¶
func (*UnlockWalletRequest) ProtoMessage()
func (*UnlockWalletRequest) ProtoReflect ¶
func (x *UnlockWalletRequest) ProtoReflect() protoreflect.Message
func (*UnlockWalletRequest) Reset ¶
func (x *UnlockWalletRequest) Reset()
func (*UnlockWalletRequest) String ¶
func (x *UnlockWalletRequest) String() string
type UnlockWalletResponse ¶
type UnlockWalletResponse struct { WalletName string `protobuf:"bytes,1,opt,name=wallet_name,json=walletName,proto3" json:"wallet_name,omitempty"` // contains filtered or unexported fields }
func (*UnlockWalletResponse) Descriptor
deprecated
func (*UnlockWalletResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnlockWalletResponse.ProtoReflect.Descriptor instead.
func (*UnlockWalletResponse) GetWalletName ¶ added in v1.0.0
func (x *UnlockWalletResponse) GetWalletName() string
func (*UnlockWalletResponse) ProtoMessage ¶
func (*UnlockWalletResponse) ProtoMessage()
func (*UnlockWalletResponse) ProtoReflect ¶
func (x *UnlockWalletResponse) ProtoReflect() protoreflect.Message
func (*UnlockWalletResponse) Reset ¶
func (x *UnlockWalletResponse) Reset()
func (*UnlockWalletResponse) String ¶
func (x *UnlockWalletResponse) String() string
type UnsafeBlockchainServer ¶
type UnsafeBlockchainServer interface {
// contains filtered or unexported methods
}
UnsafeBlockchainServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BlockchainServer will result in compilation errors.
type UnsafeNetworkServer ¶
type UnsafeNetworkServer interface {
// contains filtered or unexported methods
}
UnsafeNetworkServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkServer will result in compilation errors.
type UnsafeTransactionServer ¶
type UnsafeTransactionServer interface {
// contains filtered or unexported methods
}
UnsafeTransactionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TransactionServer will result in compilation errors.
type UnsafeWalletServer ¶
type UnsafeWalletServer interface {
// contains filtered or unexported methods
}
UnsafeWalletServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WalletServer will result in compilation errors.
type ValidatorInfo ¶
type ValidatorInfo struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Number int32 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` Stake int64 `protobuf:"varint,5,opt,name=stake,proto3" json:"stake,omitempty"` LastBondingHeight uint32 `protobuf:"varint,6,opt,name=last_bonding_height,json=lastBondingHeight,proto3" json:"last_bonding_height,omitempty"` LastSortitionHeight uint32 `protobuf:"varint,7,opt,name=last_sortition_height,json=lastSortitionHeight,proto3" json:"last_sortition_height,omitempty"` UnbondingHeight uint32 `protobuf:"varint,8,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty"` Address string `protobuf:"bytes,9,opt,name=address,proto3" json:"address,omitempty"` AvailabilityScore float64 `protobuf:"fixed64,10,opt,name=availability_score,json=availabilityScore,proto3" json:"availability_score,omitempty"` // contains filtered or unexported fields }
func (*ValidatorInfo) Descriptor
deprecated
func (*ValidatorInfo) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorInfo.ProtoReflect.Descriptor instead.
func (*ValidatorInfo) GetAddress ¶
func (x *ValidatorInfo) GetAddress() string
func (*ValidatorInfo) GetAvailabilityScore ¶ added in v0.20.0
func (x *ValidatorInfo) GetAvailabilityScore() float64
func (*ValidatorInfo) GetData ¶
func (x *ValidatorInfo) GetData() []byte
func (*ValidatorInfo) GetHash ¶
func (x *ValidatorInfo) GetHash() []byte
func (*ValidatorInfo) GetLastBondingHeight ¶
func (x *ValidatorInfo) GetLastBondingHeight() uint32
func (*ValidatorInfo) GetLastSortitionHeight ¶ added in v0.15.0
func (x *ValidatorInfo) GetLastSortitionHeight() uint32
func (*ValidatorInfo) GetNumber ¶
func (x *ValidatorInfo) GetNumber() int32
func (*ValidatorInfo) GetPublicKey ¶
func (x *ValidatorInfo) GetPublicKey() string
func (*ValidatorInfo) GetStake ¶
func (x *ValidatorInfo) GetStake() int64
func (*ValidatorInfo) GetUnbondingHeight ¶
func (x *ValidatorInfo) GetUnbondingHeight() uint32
func (*ValidatorInfo) ProtoMessage ¶
func (*ValidatorInfo) ProtoMessage()
func (*ValidatorInfo) ProtoReflect ¶
func (x *ValidatorInfo) ProtoReflect() protoreflect.Message
func (*ValidatorInfo) Reset ¶
func (x *ValidatorInfo) Reset()
func (*ValidatorInfo) String ¶
func (x *ValidatorInfo) String() string
type VoteInfo ¶
type VoteInfo struct { Type VoteType `protobuf:"varint,1,opt,name=type,proto3,enum=pactus.VoteType" json:"type,omitempty"` Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"` BlockHash []byte `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` Round int32 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` CpRound int32 `protobuf:"varint,5,opt,name=cp_round,json=cpRound,proto3" json:"cp_round,omitempty"` CpValue int32 `protobuf:"varint,6,opt,name=cp_value,json=cpValue,proto3" json:"cp_value,omitempty"` // contains filtered or unexported fields }
func (*VoteInfo) Descriptor
deprecated
func (*VoteInfo) GetBlockHash ¶
func (*VoteInfo) GetCpRound ¶ added in v0.19.0
func (*VoteInfo) GetCpValue ¶ added in v0.19.0
func (*VoteInfo) ProtoMessage ¶
func (*VoteInfo) ProtoMessage()
func (*VoteInfo) ProtoReflect ¶
func (x *VoteInfo) ProtoReflect() protoreflect.Message
type VoteType ¶
type VoteType int32
func (VoteType) Descriptor ¶
func (VoteType) Descriptor() protoreflect.EnumDescriptor
func (VoteType) EnumDescriptor
deprecated
func (VoteType) Number ¶
func (x VoteType) Number() protoreflect.EnumNumber
func (VoteType) Type ¶
func (VoteType) Type() protoreflect.EnumType
type WalletClient ¶
type WalletClient interface { CreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error) LoadWallet(ctx context.Context, in *LoadWalletRequest, opts ...grpc.CallOption) (*LoadWalletResponse, error) UnloadWallet(ctx context.Context, in *UnloadWalletRequest, opts ...grpc.CallOption) (*UnloadWalletResponse, error) LockWallet(ctx context.Context, in *LockWalletRequest, opts ...grpc.CallOption) (*LockWalletResponse, error) UnlockWallet(ctx context.Context, in *UnlockWalletRequest, opts ...grpc.CallOption) (*UnlockWalletResponse, error) SignRawTransaction(ctx context.Context, in *SignRawTransactionRequest, opts ...grpc.CallOption) (*SignRawTransactionResponse, error) GetValidatorAddress(ctx context.Context, in *GetValidatorAddressRequest, opts ...grpc.CallOption) (*GetValidatorAddressResponse, error) }
WalletClient is the client API for Wallet service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWalletClient ¶
func NewWalletClient(cc grpc.ClientConnInterface) WalletClient
type WalletServer ¶
type WalletServer interface { CreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error) LoadWallet(context.Context, *LoadWalletRequest) (*LoadWalletResponse, error) UnloadWallet(context.Context, *UnloadWalletRequest) (*UnloadWalletResponse, error) LockWallet(context.Context, *LockWalletRequest) (*LockWalletResponse, error) UnlockWallet(context.Context, *UnlockWalletRequest) (*UnlockWalletResponse, error) SignRawTransaction(context.Context, *SignRawTransactionRequest) (*SignRawTransactionResponse, error) GetValidatorAddress(context.Context, *GetValidatorAddressRequest) (*GetValidatorAddressResponse, error) }
WalletServer is the server API for Wallet service. All implementations should embed UnimplementedWalletServer for forward compatibility