Documentation ¶
Overview ¶
Package rpcpb is a generated protocol buffer package.
It is generated from these files:
rpc.proto
It has these top-level messages:
SubscribeRequest SubscribeResponse NonParamsRequest NodeInfoResponse RouteTable GetNebStateResponse AccountsResponse GetAccountStateRequest GetAccountStateResponse CallResponse ByBlockHeightRequest GetDynastyResponse TransactionRequest ContractRequest SendRawTransactionRequest SendTransactionResponse GetBlockByHashRequest GetBlockByHeightRequest GetTransactionByHashRequest GetTransactionByContractRequest BlockResponse TransactionResponse NewAccountRequest NewAccountResponse UnlockAccountRequest UnlockAccountResponse LockAccountRequest LockAccountResponse SignHashRequest SignHashResponse GenerateRandomSeedRequest GenerateRandomSeedResponse SignTransactionPassphraseRequest SignTransactionPassphraseResponse SendTransactionPassphraseRequest GasPriceResponse HashRequest GasResponse EventsResponse Event PprofRequest PprofResponse GetConfigResponse VerifySignatureRequest VerifySignatureResponse GetNRByAddressRequest GetNRHandleRequest GetNRHandleResponse GetNRListByHandleRequest GetNRListResponse NRItem GetDIPListRequest GetDIPListResponse DIPItem
Package rpcpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error
- func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer)
- func RegisterApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiServiceClient) error
- func RegisterApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterApiServiceServer(s *grpc.Server, srv ApiServiceServer)
- type AccountsResponse
- type AdminServiceClient
- type AdminServiceServer
- type ApiServiceClient
- type ApiServiceServer
- type ApiService_SubscribeClient
- type ApiService_SubscribeServer
- type BlockResponse
- func (*BlockResponse) Descriptor() ([]byte, []int)
- func (m *BlockResponse) GetChainId() uint32
- func (m *BlockResponse) GetCoinbase() string
- func (m *BlockResponse) GetConsensusRoot() *consensuspb.ConsensusRoot
- func (m *BlockResponse) GetEventsRoot() string
- func (m *BlockResponse) GetHash() string
- func (m *BlockResponse) GetHeight() uint64
- func (m *BlockResponse) GetIsFinality() bool
- func (m *BlockResponse) GetMiner() string
- func (m *BlockResponse) GetNonce() uint64
- func (m *BlockResponse) GetParentHash() string
- func (m *BlockResponse) GetRandomProof() string
- func (m *BlockResponse) GetRandomSeed() string
- func (m *BlockResponse) GetStateRoot() string
- func (m *BlockResponse) GetTimestamp() int64
- func (m *BlockResponse) GetTransactions() []*TransactionResponse
- func (m *BlockResponse) GetTxsRoot() string
- func (*BlockResponse) ProtoMessage()
- func (m *BlockResponse) Reset()
- func (m *BlockResponse) String() string
- type ByBlockHeightRequest
- type CallResponse
- type ContractRequest
- func (*ContractRequest) Descriptor() ([]byte, []int)
- func (m *ContractRequest) GetArgs() string
- func (m *ContractRequest) GetFunction() string
- func (m *ContractRequest) GetSource() string
- func (m *ContractRequest) GetSourceType() string
- func (*ContractRequest) ProtoMessage()
- func (m *ContractRequest) Reset()
- func (m *ContractRequest) String() string
- type DIPItem
- type Event
- type EventsResponse
- type GasPriceResponse
- type GasResponse
- type GenerateRandomSeedRequest
- func (*GenerateRandomSeedRequest) Descriptor() ([]byte, []int)
- func (m *GenerateRandomSeedRequest) GetAddress() string
- func (m *GenerateRandomSeedRequest) GetAncestorHash() []byte
- func (m *GenerateRandomSeedRequest) GetParentSeed() []byte
- func (*GenerateRandomSeedRequest) ProtoMessage()
- func (m *GenerateRandomSeedRequest) Reset()
- func (m *GenerateRandomSeedRequest) String() string
- type GenerateRandomSeedResponse
- func (*GenerateRandomSeedResponse) Descriptor() ([]byte, []int)
- func (m *GenerateRandomSeedResponse) GetVrfProof() []byte
- func (m *GenerateRandomSeedResponse) GetVrfSeed() []byte
- func (*GenerateRandomSeedResponse) ProtoMessage()
- func (m *GenerateRandomSeedResponse) Reset()
- func (m *GenerateRandomSeedResponse) String() string
- type GetAccountStateRequest
- func (*GetAccountStateRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountStateRequest) GetAddress() string
- func (m *GetAccountStateRequest) GetHeight() uint64
- func (*GetAccountStateRequest) ProtoMessage()
- func (m *GetAccountStateRequest) Reset()
- func (m *GetAccountStateRequest) String() string
- type GetAccountStateResponse
- func (*GetAccountStateResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountStateResponse) GetBalance() string
- func (m *GetAccountStateResponse) GetHeight() uint64
- func (m *GetAccountStateResponse) GetNonce() uint64
- func (m *GetAccountStateResponse) GetPending() uint64
- func (m *GetAccountStateResponse) GetType() uint32
- func (*GetAccountStateResponse) ProtoMessage()
- func (m *GetAccountStateResponse) Reset()
- func (m *GetAccountStateResponse) String() string
- type GetBlockByHashRequest
- func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHashRequest) GetFullFillTransaction() bool
- func (m *GetBlockByHashRequest) GetHash() string
- func (*GetBlockByHashRequest) ProtoMessage()
- func (m *GetBlockByHashRequest) Reset()
- func (m *GetBlockByHashRequest) String() string
- type GetBlockByHeightRequest
- func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
- func (m *GetBlockByHeightRequest) GetFullFillTransaction() bool
- func (m *GetBlockByHeightRequest) GetHeight() uint64
- func (*GetBlockByHeightRequest) ProtoMessage()
- func (m *GetBlockByHeightRequest) Reset()
- func (m *GetBlockByHeightRequest) String() string
- type GetConfigResponse
- type GetDIPListRequest
- type GetDIPListResponse
- func (*GetDIPListResponse) Descriptor() ([]byte, []int)
- func (m *GetDIPListResponse) GetData() []*DIPItem
- func (m *GetDIPListResponse) GetEnd() uint64
- func (m *GetDIPListResponse) GetStart() uint64
- func (m *GetDIPListResponse) GetVersion() uint64
- func (*GetDIPListResponse) ProtoMessage()
- func (m *GetDIPListResponse) Reset()
- func (m *GetDIPListResponse) String() string
- type GetDynastyResponse
- type GetNRByAddressRequest
- type GetNRHandleRequest
- func (*GetNRHandleRequest) Descriptor() ([]byte, []int)
- func (m *GetNRHandleRequest) GetEnd() uint64
- func (m *GetNRHandleRequest) GetStart() uint64
- func (m *GetNRHandleRequest) GetVersion() uint64
- func (*GetNRHandleRequest) ProtoMessage()
- func (m *GetNRHandleRequest) Reset()
- func (m *GetNRHandleRequest) String() string
- type GetNRHandleResponse
- type GetNRListByHandleRequest
- type GetNRListResponse
- func (*GetNRListResponse) Descriptor() ([]byte, []int)
- func (m *GetNRListResponse) GetData() []*NRItem
- func (m *GetNRListResponse) GetEnd() uint64
- func (m *GetNRListResponse) GetStart() uint64
- func (m *GetNRListResponse) GetVersion() uint64
- func (*GetNRListResponse) ProtoMessage()
- func (m *GetNRListResponse) Reset()
- func (m *GetNRListResponse) String() string
- type GetNebStateResponse
- func (*GetNebStateResponse) Descriptor() ([]byte, []int)
- func (m *GetNebStateResponse) GetChainId() uint32
- func (m *GetNebStateResponse) GetHeight() uint64
- func (m *GetNebStateResponse) GetLib() string
- func (m *GetNebStateResponse) GetProtocolVersion() string
- func (m *GetNebStateResponse) GetSynchronized() bool
- func (m *GetNebStateResponse) GetTail() string
- func (m *GetNebStateResponse) GetVersion() string
- func (*GetNebStateResponse) ProtoMessage()
- func (m *GetNebStateResponse) Reset()
- func (m *GetNebStateResponse) String() string
- type GetTransactionByContractRequest
- type GetTransactionByHashRequest
- type HashRequest
- type LockAccountRequest
- type LockAccountResponse
- type NRItem
- type NewAccountRequest
- type NewAccountResponse
- type NodeInfoResponse
- func (*NodeInfoResponse) Descriptor() ([]byte, []int)
- func (m *NodeInfoResponse) GetBucketSize() int32
- func (m *NodeInfoResponse) GetChainId() uint32
- func (m *NodeInfoResponse) GetCoinbase() string
- func (m *NodeInfoResponse) GetId() string
- func (m *NodeInfoResponse) GetPeerCount() uint32
- func (m *NodeInfoResponse) GetProtocolVersion() string
- func (m *NodeInfoResponse) GetRouteTable() []*RouteTable
- func (m *NodeInfoResponse) GetSynchronized() bool
- func (*NodeInfoResponse) ProtoMessage()
- func (m *NodeInfoResponse) Reset()
- func (m *NodeInfoResponse) String() string
- type NonParamsRequest
- type PprofRequest
- type PprofResponse
- type RouteTable
- type SendRawTransactionRequest
- type SendTransactionPassphraseRequest
- func (*SendTransactionPassphraseRequest) Descriptor() ([]byte, []int)
- func (m *SendTransactionPassphraseRequest) GetPassphrase() string
- func (m *SendTransactionPassphraseRequest) GetTransaction() *TransactionRequest
- func (*SendTransactionPassphraseRequest) ProtoMessage()
- func (m *SendTransactionPassphraseRequest) Reset()
- func (m *SendTransactionPassphraseRequest) String() string
- type SendTransactionResponse
- func (*SendTransactionResponse) Descriptor() ([]byte, []int)
- func (m *SendTransactionResponse) GetContractAddress() string
- func (m *SendTransactionResponse) GetTxhash() string
- func (*SendTransactionResponse) ProtoMessage()
- func (m *SendTransactionResponse) Reset()
- func (m *SendTransactionResponse) String() string
- type SignHashRequest
- type SignHashResponse
- type SignTransactionPassphraseRequest
- func (*SignTransactionPassphraseRequest) Descriptor() ([]byte, []int)
- func (m *SignTransactionPassphraseRequest) GetPassphrase() string
- func (m *SignTransactionPassphraseRequest) GetTransaction() *TransactionRequest
- func (*SignTransactionPassphraseRequest) ProtoMessage()
- func (m *SignTransactionPassphraseRequest) Reset()
- func (m *SignTransactionPassphraseRequest) String() string
- type SignTransactionPassphraseResponse
- func (*SignTransactionPassphraseResponse) Descriptor() ([]byte, []int)
- func (m *SignTransactionPassphraseResponse) GetData() []byte
- func (*SignTransactionPassphraseResponse) ProtoMessage()
- func (m *SignTransactionPassphraseResponse) Reset()
- func (m *SignTransactionPassphraseResponse) String() string
- type SubscribeRequest
- type SubscribeResponse
- type TransactionRequest
- func (*TransactionRequest) Descriptor() ([]byte, []int)
- func (m *TransactionRequest) GetBinary() []byte
- func (m *TransactionRequest) GetContract() *ContractRequest
- func (m *TransactionRequest) GetFrom() string
- func (m *TransactionRequest) GetGasLimit() string
- func (m *TransactionRequest) GetGasPrice() string
- func (m *TransactionRequest) GetNonce() uint64
- func (m *TransactionRequest) GetProtocol() []byte
- func (m *TransactionRequest) GetTo() string
- func (m *TransactionRequest) GetType() string
- func (m *TransactionRequest) GetValue() string
- func (*TransactionRequest) ProtoMessage()
- func (m *TransactionRequest) Reset()
- func (m *TransactionRequest) String() string
- type TransactionResponse
- func (*TransactionResponse) Descriptor() ([]byte, []int)
- func (m *TransactionResponse) GetBlockHeight() uint64
- func (m *TransactionResponse) GetChainId() uint32
- func (m *TransactionResponse) GetContractAddress() string
- func (m *TransactionResponse) GetData() []byte
- func (m *TransactionResponse) GetExecuteError() string
- func (m *TransactionResponse) GetExecuteResult() string
- func (m *TransactionResponse) GetFrom() string
- func (m *TransactionResponse) GetGasLimit() string
- func (m *TransactionResponse) GetGasPrice() string
- func (m *TransactionResponse) GetGasUsed() string
- func (m *TransactionResponse) GetHash() string
- func (m *TransactionResponse) GetNonce() uint64
- func (m *TransactionResponse) GetStatus() int32
- func (m *TransactionResponse) GetTimestamp() int64
- func (m *TransactionResponse) GetTo() string
- func (m *TransactionResponse) GetType() string
- func (m *TransactionResponse) GetValue() string
- func (*TransactionResponse) ProtoMessage()
- func (m *TransactionResponse) Reset()
- func (m *TransactionResponse) String() string
- type UnlockAccountRequest
- func (*UnlockAccountRequest) Descriptor() ([]byte, []int)
- func (m *UnlockAccountRequest) GetAddress() string
- func (m *UnlockAccountRequest) GetDuration() uint64
- func (m *UnlockAccountRequest) GetPassphrase() string
- func (*UnlockAccountRequest) ProtoMessage()
- func (m *UnlockAccountRequest) Reset()
- func (m *UnlockAccountRequest) String() string
- type UnlockAccountResponse
- type VerifySignatureRequest
- func (*VerifySignatureRequest) Descriptor() ([]byte, []int)
- func (m *VerifySignatureRequest) GetAddress() string
- func (m *VerifySignatureRequest) GetAlg() uint32
- func (m *VerifySignatureRequest) GetMsg() string
- func (m *VerifySignatureRequest) GetSignature() string
- func (*VerifySignatureRequest) ProtoMessage()
- func (m *VerifySignatureRequest) Reset()
- func (m *VerifySignatureRequest) String() string
- type VerifySignatureResponse
- func (*VerifySignatureResponse) Descriptor() ([]byte, []int)
- func (m *VerifySignatureResponse) GetAddress() string
- func (m *VerifySignatureResponse) GetResult() bool
- func (*VerifySignatureResponse) ProtoMessage()
- func (m *VerifySignatureResponse) Reset()
- func (m *VerifySignatureResponse) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAdminServiceHandler ¶ added in v1.0.0
func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAdminServiceHandlerClient ¶ added in v1.0.0
func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error
RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AdminServiceClient" to call the correct interceptors.
func RegisterAdminServiceHandlerFromEndpoint ¶ added in v1.0.0
func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAdminServiceServer ¶ added in v1.0.0
func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer)
func RegisterApiServiceHandler ¶ added in v1.0.0
func RegisterApiServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterApiServiceHandler registers the http handlers for service ApiService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterApiServiceHandlerClient ¶ added in v1.0.0
func RegisterApiServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApiServiceClient) error
RegisterApiServiceHandler registers the http handlers for service ApiService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApiServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApiServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApiServiceClient" to call the correct interceptors.
func RegisterApiServiceHandlerFromEndpoint ¶ added in v1.0.0
func RegisterApiServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterApiServiceHandlerFromEndpoint is same as RegisterApiServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterApiServiceServer ¶ added in v1.0.0
func RegisterApiServiceServer(s *grpc.Server, srv ApiServiceServer)
Types ¶
type AccountsResponse ¶ added in v0.3.0
type AccountsResponse struct { // Account list Addresses []string `protobuf:"bytes,1,rep,name=addresses" json:"addresses,omitempty"` }
Response message of Accounts rpc.
func (*AccountsResponse) Descriptor ¶ added in v0.3.0
func (*AccountsResponse) Descriptor() ([]byte, []int)
func (*AccountsResponse) GetAddresses ¶ added in v0.3.0
func (m *AccountsResponse) GetAddresses() []string
func (*AccountsResponse) ProtoMessage ¶ added in v0.3.0
func (*AccountsResponse) ProtoMessage()
func (*AccountsResponse) Reset ¶ added in v0.3.0
func (m *AccountsResponse) Reset()
func (*AccountsResponse) String ¶ added in v0.3.0
func (m *AccountsResponse) String() string
type AdminServiceClient ¶ added in v1.0.0
type AdminServiceClient interface { // Accounts return account list. Accounts(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*AccountsResponse, error) // NewAccount create a new account with passphrase NewAccount(ctx context.Context, in *NewAccountRequest, opts ...grpc.CallOption) (*NewAccountResponse, error) // UnlockAccount unlock account with passphrase UnlockAccount(ctx context.Context, in *UnlockAccountRequest, opts ...grpc.CallOption) (*UnlockAccountResponse, error) // LockAccount lock account LockAccount(ctx context.Context, in *LockAccountRequest, opts ...grpc.CallOption) (*LockAccountResponse, error) // Verify, sign, and send the transaction. SendTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) // Sign sign msg SignHash(ctx context.Context, in *SignHashRequest, opts ...grpc.CallOption) (*SignHashResponse, error) GenerateRandomSeed(ctx context.Context, in *GenerateRandomSeedRequest, opts ...grpc.CallOption) (*GenerateRandomSeedResponse, error) // Sign sign transaction SignTransactionWithPassphrase(ctx context.Context, in *SignTransactionPassphraseRequest, opts ...grpc.CallOption) (*SignTransactionPassphraseResponse, error) // SendTransactionWithPassphrase send transaction with passphrase SendTransactionWithPassphrase(ctx context.Context, in *SendTransactionPassphraseRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) StartPprof(ctx context.Context, in *PprofRequest, opts ...grpc.CallOption) (*PprofResponse, error) // Get Config GetConfig(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GetConfigResponse, error) // Return the p2p node info. NodeInfo(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*NodeInfoResponse, error) }
func NewAdminServiceClient ¶ added in v1.0.0
func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient
type AdminServiceServer ¶ added in v1.0.0
type AdminServiceServer interface { // Accounts return account list. Accounts(context.Context, *NonParamsRequest) (*AccountsResponse, error) // NewAccount create a new account with passphrase NewAccount(context.Context, *NewAccountRequest) (*NewAccountResponse, error) // UnlockAccount unlock account with passphrase UnlockAccount(context.Context, *UnlockAccountRequest) (*UnlockAccountResponse, error) // LockAccount lock account LockAccount(context.Context, *LockAccountRequest) (*LockAccountResponse, error) // Verify, sign, and send the transaction. SendTransaction(context.Context, *TransactionRequest) (*SendTransactionResponse, error) // Sign sign msg SignHash(context.Context, *SignHashRequest) (*SignHashResponse, error) GenerateRandomSeed(context.Context, *GenerateRandomSeedRequest) (*GenerateRandomSeedResponse, error) // Sign sign transaction SignTransactionWithPassphrase(context.Context, *SignTransactionPassphraseRequest) (*SignTransactionPassphraseResponse, error) // SendTransactionWithPassphrase send transaction with passphrase SendTransactionWithPassphrase(context.Context, *SendTransactionPassphraseRequest) (*SendTransactionResponse, error) StartPprof(context.Context, *PprofRequest) (*PprofResponse, error) // Get Config GetConfig(context.Context, *NonParamsRequest) (*GetConfigResponse, error) // Return the p2p node info. NodeInfo(context.Context, *NonParamsRequest) (*NodeInfoResponse, error) }
type ApiServiceClient ¶ added in v1.0.0
type ApiServiceClient interface { // Return the state of the neb. GetNebState(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GetNebStateResponse, error) // Return the latest irreversible block. LatestIrreversibleBlock(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*BlockResponse, error) // Return the state of the account. GetAccountState(ctx context.Context, in *GetAccountStateRequest, opts ...grpc.CallOption) (*GetAccountStateResponse, error) // Call transaction Call(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*CallResponse, error) // Submit the signed transaction. SendRawTransaction(ctx context.Context, in *SendRawTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) // Get block info by the block hash. GetBlockByHash(ctx context.Context, in *GetBlockByHashRequest, opts ...grpc.CallOption) (*BlockResponse, error) // Get block info by the block height. GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) // Get transactionReceipt info by tansaction hash. GetTransactionReceipt(ctx context.Context, in *GetTransactionByHashRequest, opts ...grpc.CallOption) (*TransactionResponse, error) // Get transactionReceipt info by tansaction hash. GetTransactionByContract(ctx context.Context, in *GetTransactionByContractRequest, opts ...grpc.CallOption) (*TransactionResponse, error) // Subscribe message Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (ApiService_SubscribeClient, error) // Get GasPrice GetGasPrice(ctx context.Context, in *NonParamsRequest, opts ...grpc.CallOption) (*GasPriceResponse, error) // EstimateGas EstimateGas(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*GasResponse, error) GetEventsByHash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*EventsResponse, error) GetDynasty(ctx context.Context, in *ByBlockHeightRequest, opts ...grpc.CallOption) (*GetDynastyResponse, error) // Verify Signature. VerifySignature(ctx context.Context, in *VerifySignatureRequest, opts ...grpc.CallOption) (*VerifySignatureResponse, error) }
func NewApiServiceClient ¶ added in v1.0.0
func NewApiServiceClient(cc *grpc.ClientConn) ApiServiceClient
type ApiServiceServer ¶ added in v1.0.0
type ApiServiceServer interface { // Return the state of the neb. GetNebState(context.Context, *NonParamsRequest) (*GetNebStateResponse, error) // Return the latest irreversible block. LatestIrreversibleBlock(context.Context, *NonParamsRequest) (*BlockResponse, error) // Return the state of the account. GetAccountState(context.Context, *GetAccountStateRequest) (*GetAccountStateResponse, error) // Call transaction Call(context.Context, *TransactionRequest) (*CallResponse, error) // Submit the signed transaction. SendRawTransaction(context.Context, *SendRawTransactionRequest) (*SendTransactionResponse, error) // Get block info by the block hash. GetBlockByHash(context.Context, *GetBlockByHashRequest) (*BlockResponse, error) // Get block info by the block height. GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*BlockResponse, error) // Get transactionReceipt info by tansaction hash. GetTransactionReceipt(context.Context, *GetTransactionByHashRequest) (*TransactionResponse, error) // Get transactionReceipt info by tansaction hash. GetTransactionByContract(context.Context, *GetTransactionByContractRequest) (*TransactionResponse, error) // Subscribe message Subscribe(*SubscribeRequest, ApiService_SubscribeServer) error // Get GasPrice GetGasPrice(context.Context, *NonParamsRequest) (*GasPriceResponse, error) // EstimateGas EstimateGas(context.Context, *TransactionRequest) (*GasResponse, error) GetEventsByHash(context.Context, *HashRequest) (*EventsResponse, error) GetDynasty(context.Context, *ByBlockHeightRequest) (*GetDynastyResponse, error) // Verify Signature. VerifySignature(context.Context, *VerifySignatureRequest) (*VerifySignatureResponse, error) }
type ApiService_SubscribeClient ¶ added in v1.0.0
type ApiService_SubscribeClient interface { Recv() (*SubscribeResponse, error) grpc.ClientStream }
type ApiService_SubscribeServer ¶ added in v1.0.0
type ApiService_SubscribeServer interface { Send(*SubscribeResponse) error grpc.ServerStream }
type BlockResponse ¶ added in v1.0.0
type BlockResponse struct { // Hex string of block hash. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // Hex string of block parent hash. ParentHash string `protobuf:"bytes,2,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"` // block height Height uint64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // block nonce Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` // Hex string of coinbase address. Coinbase string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // block timestamp. Timestamp int64 `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // block chain id ChainId uint32 `protobuf:"varint,7,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Hex string of state root. StateRoot string `protobuf:"bytes,8,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` // Hex string of txs root. TxsRoot string `protobuf:"bytes,9,opt,name=txs_root,json=txsRoot,proto3" json:"txs_root,omitempty"` // Hex string of event root. EventsRoot string `protobuf:"bytes,10,opt,name=events_root,json=eventsRoot,proto3" json:"events_root,omitempty"` // Hex string of consensus root. ConsensusRoot *consensuspb.ConsensusRoot `protobuf:"bytes,11,opt,name=consensus_root,json=consensusRoot" json:"consensus_root,omitempty"` // Miner Miner string `protobuf:"bytes,12,opt,name=miner,proto3" json:"miner,omitempty"` // Random seed RandomSeed string `protobuf:"bytes,13,opt,name=randomSeed,proto3" json:"randomSeed,omitempty"` // Random proof RandomProof string `protobuf:"bytes,14,opt,name=randomProof,proto3" json:"randomProof,omitempty"` // is finaliy IsFinality bool `protobuf:"varint,15,opt,name=is_finality,json=isFinality,proto3" json:"is_finality,omitempty"` // transaction slice Transactions []*TransactionResponse `protobuf:"bytes,100,rep,name=transactions" json:"transactions,omitempty"` }
Response message of Block.
func (*BlockResponse) Descriptor ¶ added in v1.0.0
func (*BlockResponse) Descriptor() ([]byte, []int)
func (*BlockResponse) GetChainId ¶ added in v1.0.0
func (m *BlockResponse) GetChainId() uint32
func (*BlockResponse) GetCoinbase ¶ added in v1.0.0
func (m *BlockResponse) GetCoinbase() string
func (*BlockResponse) GetConsensusRoot ¶ added in v1.0.0
func (m *BlockResponse) GetConsensusRoot() *consensuspb.ConsensusRoot
func (*BlockResponse) GetEventsRoot ¶ added in v1.0.0
func (m *BlockResponse) GetEventsRoot() string
func (*BlockResponse) GetHash ¶ added in v1.0.0
func (m *BlockResponse) GetHash() string
func (*BlockResponse) GetHeight ¶ added in v1.0.0
func (m *BlockResponse) GetHeight() uint64
func (*BlockResponse) GetIsFinality ¶ added in v1.0.0
func (m *BlockResponse) GetIsFinality() bool
func (*BlockResponse) GetMiner ¶ added in v1.0.0
func (m *BlockResponse) GetMiner() string
func (*BlockResponse) GetNonce ¶ added in v1.0.0
func (m *BlockResponse) GetNonce() uint64
func (*BlockResponse) GetParentHash ¶ added in v1.0.0
func (m *BlockResponse) GetParentHash() string
func (*BlockResponse) GetRandomProof ¶ added in v1.0.5
func (m *BlockResponse) GetRandomProof() string
func (*BlockResponse) GetRandomSeed ¶ added in v1.0.5
func (m *BlockResponse) GetRandomSeed() string
func (*BlockResponse) GetStateRoot ¶ added in v1.0.0
func (m *BlockResponse) GetStateRoot() string
func (*BlockResponse) GetTimestamp ¶ added in v1.0.0
func (m *BlockResponse) GetTimestamp() int64
func (*BlockResponse) GetTransactions ¶ added in v1.0.0
func (m *BlockResponse) GetTransactions() []*TransactionResponse
func (*BlockResponse) GetTxsRoot ¶ added in v1.0.0
func (m *BlockResponse) GetTxsRoot() string
func (*BlockResponse) ProtoMessage ¶ added in v1.0.0
func (*BlockResponse) ProtoMessage()
func (*BlockResponse) Reset ¶ added in v1.0.0
func (m *BlockResponse) Reset()
func (*BlockResponse) String ¶ added in v1.0.0
func (m *BlockResponse) String() string
type ByBlockHeightRequest ¶ added in v1.0.0
type ByBlockHeightRequest struct {
Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}
ByBlockHeightRequest message
func (*ByBlockHeightRequest) Descriptor ¶ added in v1.0.0
func (*ByBlockHeightRequest) Descriptor() ([]byte, []int)
func (*ByBlockHeightRequest) GetHeight ¶ added in v1.0.0
func (m *ByBlockHeightRequest) GetHeight() uint64
func (*ByBlockHeightRequest) ProtoMessage ¶ added in v1.0.0
func (*ByBlockHeightRequest) ProtoMessage()
func (*ByBlockHeightRequest) Reset ¶ added in v1.0.0
func (m *ByBlockHeightRequest) Reset()
func (*ByBlockHeightRequest) String ¶ added in v1.0.0
func (m *ByBlockHeightRequest) String() string
type CallResponse ¶ added in v1.0.0
type CallResponse struct { // result of smart contract method call. Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // execute error ExecuteErr string `protobuf:"bytes,2,opt,name=execute_err,json=executeErr,proto3" json:"execute_err,omitempty"` // estimate gas used EstimateGas string `protobuf:"bytes,3,opt,name=estimate_gas,json=estimateGas,proto3" json:"estimate_gas,omitempty"` }
Response message of Call rpc.
func (*CallResponse) Descriptor ¶ added in v1.0.0
func (*CallResponse) Descriptor() ([]byte, []int)
func (*CallResponse) GetEstimateGas ¶ added in v1.0.0
func (m *CallResponse) GetEstimateGas() string
func (*CallResponse) GetExecuteErr ¶ added in v1.0.0
func (m *CallResponse) GetExecuteErr() string
func (*CallResponse) GetResult ¶ added in v1.0.0
func (m *CallResponse) GetResult() string
func (*CallResponse) ProtoMessage ¶ added in v1.0.0
func (*CallResponse) ProtoMessage()
func (*CallResponse) Reset ¶ added in v1.0.0
func (m *CallResponse) Reset()
func (*CallResponse) String ¶ added in v1.0.0
func (m *CallResponse) String() string
type ContractRequest ¶ added in v1.0.0
type ContractRequest struct { // contract source code. Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` // contract source type, support javascript and typescript SourceType string `protobuf:"bytes,2,opt,name=source_type,json=sourceType,proto3" json:"source_type,omitempty"` // call contract function name Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` // the params of contract. Args string `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"` }
func (*ContractRequest) Descriptor ¶ added in v1.0.0
func (*ContractRequest) Descriptor() ([]byte, []int)
func (*ContractRequest) GetArgs ¶ added in v1.0.0
func (m *ContractRequest) GetArgs() string
func (*ContractRequest) GetFunction ¶ added in v1.0.0
func (m *ContractRequest) GetFunction() string
func (*ContractRequest) GetSource ¶ added in v1.0.0
func (m *ContractRequest) GetSource() string
func (*ContractRequest) GetSourceType ¶ added in v1.0.0
func (m *ContractRequest) GetSourceType() string
func (*ContractRequest) ProtoMessage ¶ added in v1.0.0
func (*ContractRequest) ProtoMessage()
func (*ContractRequest) Reset ¶ added in v1.0.0
func (m *ContractRequest) Reset()
func (*ContractRequest) String ¶ added in v1.0.0
func (m *ContractRequest) String() string
type DIPItem ¶
type DIPItem struct { // dip address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // dip contract address Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` // value of dip reward. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
func (*DIPItem) Descriptor ¶
func (*DIPItem) GetAddress ¶
func (*DIPItem) GetContract ¶
func (*DIPItem) ProtoMessage ¶
func (*DIPItem) ProtoMessage()
type Event ¶ added in v1.0.0
type Event struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*Event) Descriptor ¶ added in v1.0.0
func (*Event) ProtoMessage ¶ added in v1.0.0
func (*Event) ProtoMessage()
type EventsResponse ¶ added in v1.0.0
type EventsResponse struct {
Events []*Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
}
func (*EventsResponse) Descriptor ¶ added in v1.0.0
func (*EventsResponse) Descriptor() ([]byte, []int)
func (*EventsResponse) GetEvents ¶ added in v1.0.0
func (m *EventsResponse) GetEvents() []*Event
func (*EventsResponse) ProtoMessage ¶ added in v1.0.0
func (*EventsResponse) ProtoMessage()
func (*EventsResponse) Reset ¶ added in v1.0.0
func (m *EventsResponse) Reset()
func (*EventsResponse) String ¶ added in v1.0.0
func (m *EventsResponse) String() string
type GasPriceResponse ¶ added in v1.0.0
type GasPriceResponse struct {
GasPrice string `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
}
func (*GasPriceResponse) Descriptor ¶ added in v1.0.0
func (*GasPriceResponse) Descriptor() ([]byte, []int)
func (*GasPriceResponse) GetGasPrice ¶ added in v1.0.0
func (m *GasPriceResponse) GetGasPrice() string
func (*GasPriceResponse) ProtoMessage ¶ added in v1.0.0
func (*GasPriceResponse) ProtoMessage()
func (*GasPriceResponse) Reset ¶ added in v1.0.0
func (m *GasPriceResponse) Reset()
func (*GasPriceResponse) String ¶ added in v1.0.0
func (m *GasPriceResponse) String() string
type GasResponse ¶ added in v1.0.0
type GasResponse struct { Gas string `protobuf:"bytes,1,opt,name=gas,proto3" json:"gas,omitempty"` Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` }
func (*GasResponse) Descriptor ¶ added in v1.0.0
func (*GasResponse) Descriptor() ([]byte, []int)
func (*GasResponse) GetErr ¶ added in v1.0.0
func (m *GasResponse) GetErr() string
func (*GasResponse) GetGas ¶ added in v1.0.0
func (m *GasResponse) GetGas() string
func (*GasResponse) ProtoMessage ¶ added in v1.0.0
func (*GasResponse) ProtoMessage()
func (*GasResponse) Reset ¶ added in v1.0.0
func (m *GasResponse) Reset()
func (*GasResponse) String ¶ added in v1.0.0
func (m *GasResponse) String() string
type GenerateRandomSeedRequest ¶ added in v1.0.2
type GenerateRandomSeedRequest struct { // miner address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // parent seed of new block ParentSeed []byte `protobuf:"bytes,2,opt,name=parent_seed,json=parentSeed,proto3" json:"parent_seed,omitempty"` // hash of new block's ancestor AncestorHash []byte `protobuf:"bytes,3,opt,name=ancestor_hash,json=ancestorHash,proto3" json:"ancestor_hash,omitempty"` }
func (*GenerateRandomSeedRequest) Descriptor ¶ added in v1.0.2
func (*GenerateRandomSeedRequest) Descriptor() ([]byte, []int)
func (*GenerateRandomSeedRequest) GetAddress ¶ added in v1.0.2
func (m *GenerateRandomSeedRequest) GetAddress() string
func (*GenerateRandomSeedRequest) GetAncestorHash ¶ added in v1.0.2
func (m *GenerateRandomSeedRequest) GetAncestorHash() []byte
func (*GenerateRandomSeedRequest) GetParentSeed ¶ added in v1.0.2
func (m *GenerateRandomSeedRequest) GetParentSeed() []byte
func (*GenerateRandomSeedRequest) ProtoMessage ¶ added in v1.0.2
func (*GenerateRandomSeedRequest) ProtoMessage()
func (*GenerateRandomSeedRequest) Reset ¶ added in v1.0.2
func (m *GenerateRandomSeedRequest) Reset()
func (*GenerateRandomSeedRequest) String ¶ added in v1.0.2
func (m *GenerateRandomSeedRequest) String() string
type GenerateRandomSeedResponse ¶ added in v1.0.2
type GenerateRandomSeedResponse struct { VrfSeed []byte `protobuf:"bytes,1,opt,name=vrf_seed,json=vrfSeed,proto3" json:"vrf_seed,omitempty"` VrfProof []byte `protobuf:"bytes,2,opt,name=vrf_proof,json=vrfProof,proto3" json:"vrf_proof,omitempty"` }
func (*GenerateRandomSeedResponse) Descriptor ¶ added in v1.0.2
func (*GenerateRandomSeedResponse) Descriptor() ([]byte, []int)
func (*GenerateRandomSeedResponse) GetVrfProof ¶ added in v1.0.2
func (m *GenerateRandomSeedResponse) GetVrfProof() []byte
func (*GenerateRandomSeedResponse) GetVrfSeed ¶ added in v1.0.2
func (m *GenerateRandomSeedResponse) GetVrfSeed() []byte
func (*GenerateRandomSeedResponse) ProtoMessage ¶ added in v1.0.2
func (*GenerateRandomSeedResponse) ProtoMessage()
func (*GenerateRandomSeedResponse) Reset ¶ added in v1.0.2
func (m *GenerateRandomSeedResponse) Reset()
func (*GenerateRandomSeedResponse) String ¶ added in v1.0.2
func (m *GenerateRandomSeedResponse) String() string
type GetAccountStateRequest ¶
type GetAccountStateRequest struct { // Hex string of the account addresss. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // block account state with height. If not specified, use 0 as tail height. Height uint64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` }
Request message of GetAccountState rpc.
func (*GetAccountStateRequest) Descriptor ¶
func (*GetAccountStateRequest) Descriptor() ([]byte, []int)
func (*GetAccountStateRequest) GetAddress ¶
func (m *GetAccountStateRequest) GetAddress() string
func (*GetAccountStateRequest) GetHeight ¶ added in v1.0.0
func (m *GetAccountStateRequest) GetHeight() uint64
func (*GetAccountStateRequest) ProtoMessage ¶
func (*GetAccountStateRequest) ProtoMessage()
func (*GetAccountStateRequest) Reset ¶
func (m *GetAccountStateRequest) Reset()
func (*GetAccountStateRequest) String ¶
func (m *GetAccountStateRequest) String() string
type GetAccountStateResponse ¶
type GetAccountStateResponse struct { // Current balance in unit of 1/(10^18) nas. Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` // Current transaction count. Nonce uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // Account type Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` // Block height Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // Current sender pending tx count Pending uint64 `protobuf:"varint,5,opt,name=pending,proto3" json:"pending,omitempty"` }
Response message of GetAccountState rpc.
func (*GetAccountStateResponse) Descriptor ¶
func (*GetAccountStateResponse) Descriptor() ([]byte, []int)
func (*GetAccountStateResponse) GetBalance ¶
func (m *GetAccountStateResponse) GetBalance() string
func (*GetAccountStateResponse) GetHeight ¶
func (m *GetAccountStateResponse) GetHeight() uint64
func (*GetAccountStateResponse) GetNonce ¶
func (m *GetAccountStateResponse) GetNonce() uint64
func (*GetAccountStateResponse) GetPending ¶
func (m *GetAccountStateResponse) GetPending() uint64
func (*GetAccountStateResponse) GetType ¶ added in v1.0.0
func (m *GetAccountStateResponse) GetType() uint32
func (*GetAccountStateResponse) ProtoMessage ¶
func (*GetAccountStateResponse) ProtoMessage()
func (*GetAccountStateResponse) Reset ¶
func (m *GetAccountStateResponse) Reset()
func (*GetAccountStateResponse) String ¶
func (m *GetAccountStateResponse) String() string
type GetBlockByHashRequest ¶ added in v0.3.0
type GetBlockByHashRequest struct { // Hex string of block hash. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // If true it returns the full transaction objects, if false only the hashes of the transactions. FullFillTransaction bool `protobuf:"varint,2,opt,name=full_fill_transaction,json=fullFillTransaction,proto3" json:"full_fill_transaction,omitempty"` }
Request message of GetBlockByHash rpc.
func (*GetBlockByHashRequest) Descriptor ¶ added in v0.3.0
func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHashRequest) GetFullFillTransaction ¶ added in v1.0.0
func (m *GetBlockByHashRequest) GetFullFillTransaction() bool
func (*GetBlockByHashRequest) GetHash ¶ added in v0.3.0
func (m *GetBlockByHashRequest) GetHash() string
func (*GetBlockByHashRequest) ProtoMessage ¶ added in v0.3.0
func (*GetBlockByHashRequest) ProtoMessage()
func (*GetBlockByHashRequest) Reset ¶ added in v0.3.0
func (m *GetBlockByHashRequest) Reset()
func (*GetBlockByHashRequest) String ¶ added in v0.3.0
func (m *GetBlockByHashRequest) String() string
type GetBlockByHeightRequest ¶ added in v1.0.0
type GetBlockByHeightRequest struct { // block height. Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // If true it returns the full transaction objects, if false only the hashes of the transactions. FullFillTransaction bool `protobuf:"varint,2,opt,name=full_fill_transaction,json=fullFillTransaction,proto3" json:"full_fill_transaction,omitempty"` }
Request message of GetBlockByHeight rpc.
func (*GetBlockByHeightRequest) Descriptor ¶ added in v1.0.0
func (*GetBlockByHeightRequest) Descriptor() ([]byte, []int)
func (*GetBlockByHeightRequest) GetFullFillTransaction ¶ added in v1.0.0
func (m *GetBlockByHeightRequest) GetFullFillTransaction() bool
func (*GetBlockByHeightRequest) GetHeight ¶ added in v1.0.0
func (m *GetBlockByHeightRequest) GetHeight() uint64
func (*GetBlockByHeightRequest) ProtoMessage ¶ added in v1.0.0
func (*GetBlockByHeightRequest) ProtoMessage()
func (*GetBlockByHeightRequest) Reset ¶ added in v1.0.0
func (m *GetBlockByHeightRequest) Reset()
func (*GetBlockByHeightRequest) String ¶ added in v1.0.0
func (m *GetBlockByHeightRequest) String() string
type GetConfigResponse ¶ added in v1.0.0
type GetConfigResponse struct { // Config Config *nebletpb.Config `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"` }
func (*GetConfigResponse) Descriptor ¶ added in v1.0.0
func (*GetConfigResponse) Descriptor() ([]byte, []int)
func (*GetConfigResponse) GetConfig ¶ added in v1.0.0
func (m *GetConfigResponse) GetConfig() *nebletpb.Config
func (*GetConfigResponse) ProtoMessage ¶ added in v1.0.0
func (*GetConfigResponse) ProtoMessage()
func (*GetConfigResponse) Reset ¶ added in v1.0.0
func (m *GetConfigResponse) Reset()
func (*GetConfigResponse) String ¶ added in v1.0.0
func (m *GetConfigResponse) String() string
type GetDIPListRequest ¶
type GetDIPListRequest struct { // height Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` }
func (*GetDIPListRequest) Descriptor ¶
func (*GetDIPListRequest) Descriptor() ([]byte, []int)
func (*GetDIPListRequest) GetHeight ¶
func (m *GetDIPListRequest) GetHeight() uint64
func (*GetDIPListRequest) ProtoMessage ¶
func (*GetDIPListRequest) ProtoMessage()
func (*GetDIPListRequest) Reset ¶
func (m *GetDIPListRequest) Reset()
func (*GetDIPListRequest) String ¶
func (m *GetDIPListRequest) String() string
type GetDIPListResponse ¶
type GetDIPListResponse struct { // dip algorithm version Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // start block height of dip calculate interval Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` // end block height of dip calculate interval. End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` // dip data list Data []*DIPItem `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"` }
func (*GetDIPListResponse) Descriptor ¶
func (*GetDIPListResponse) Descriptor() ([]byte, []int)
func (*GetDIPListResponse) GetData ¶
func (m *GetDIPListResponse) GetData() []*DIPItem
func (*GetDIPListResponse) GetEnd ¶
func (m *GetDIPListResponse) GetEnd() uint64
func (*GetDIPListResponse) GetStart ¶
func (m *GetDIPListResponse) GetStart() uint64
func (*GetDIPListResponse) GetVersion ¶
func (m *GetDIPListResponse) GetVersion() uint64
func (*GetDIPListResponse) ProtoMessage ¶
func (*GetDIPListResponse) ProtoMessage()
func (*GetDIPListResponse) Reset ¶
func (m *GetDIPListResponse) Reset()
func (*GetDIPListResponse) String ¶
func (m *GetDIPListResponse) String() string
type GetDynastyResponse ¶ added in v1.0.0
type GetDynastyResponse struct {
Miners []string `protobuf:"bytes,1,rep,name=miners" json:"miners,omitempty"`
}
Response message of GetDynastyRequest rpc
func (*GetDynastyResponse) Descriptor ¶ added in v1.0.0
func (*GetDynastyResponse) Descriptor() ([]byte, []int)
func (*GetDynastyResponse) GetMiners ¶ added in v1.0.0
func (m *GetDynastyResponse) GetMiners() []string
func (*GetDynastyResponse) ProtoMessage ¶ added in v1.0.0
func (*GetDynastyResponse) ProtoMessage()
func (*GetDynastyResponse) Reset ¶ added in v1.0.0
func (m *GetDynastyResponse) Reset()
func (*GetDynastyResponse) String ¶ added in v1.0.0
func (m *GetDynastyResponse) String() string
type GetNRByAddressRequest ¶
type GetNRByAddressRequest struct { // nr address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
func (*GetNRByAddressRequest) Descriptor ¶
func (*GetNRByAddressRequest) Descriptor() ([]byte, []int)
func (*GetNRByAddressRequest) GetAddress ¶
func (m *GetNRByAddressRequest) GetAddress() string
func (*GetNRByAddressRequest) ProtoMessage ¶
func (*GetNRByAddressRequest) ProtoMessage()
func (*GetNRByAddressRequest) Reset ¶
func (m *GetNRByAddressRequest) Reset()
func (*GetNRByAddressRequest) String ¶
func (m *GetNRByAddressRequest) String() string
type GetNRHandleRequest ¶
type GetNRHandleRequest struct { // start block height of nr calculate interval Start uint64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` // end block height of nr calculate interval. If not specified, use 0 as tail height. End uint64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"` // nr version Version uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` }
func (*GetNRHandleRequest) Descriptor ¶
func (*GetNRHandleRequest) Descriptor() ([]byte, []int)
func (*GetNRHandleRequest) GetEnd ¶
func (m *GetNRHandleRequest) GetEnd() uint64
func (*GetNRHandleRequest) GetStart ¶
func (m *GetNRHandleRequest) GetStart() uint64
func (*GetNRHandleRequest) GetVersion ¶
func (m *GetNRHandleRequest) GetVersion() uint64
func (*GetNRHandleRequest) ProtoMessage ¶
func (*GetNRHandleRequest) ProtoMessage()
func (*GetNRHandleRequest) Reset ¶
func (m *GetNRHandleRequest) Reset()
func (*GetNRHandleRequest) String ¶
func (m *GetNRHandleRequest) String() string
type GetNRHandleResponse ¶
type GetNRHandleResponse struct {
Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"`
}
func (*GetNRHandleResponse) Descriptor ¶
func (*GetNRHandleResponse) Descriptor() ([]byte, []int)
func (*GetNRHandleResponse) GetHandle ¶
func (m *GetNRHandleResponse) GetHandle() string
func (*GetNRHandleResponse) ProtoMessage ¶
func (*GetNRHandleResponse) ProtoMessage()
func (*GetNRHandleResponse) Reset ¶
func (m *GetNRHandleResponse) Reset()
func (*GetNRHandleResponse) String ¶
func (m *GetNRHandleResponse) String() string
type GetNRListByHandleRequest ¶
type GetNRListByHandleRequest struct { // nr handle Handle string `protobuf:"bytes,1,opt,name=handle,proto3" json:"handle,omitempty"` }
func (*GetNRListByHandleRequest) Descriptor ¶
func (*GetNRListByHandleRequest) Descriptor() ([]byte, []int)
func (*GetNRListByHandleRequest) GetHandle ¶
func (m *GetNRListByHandleRequest) GetHandle() string
func (*GetNRListByHandleRequest) ProtoMessage ¶
func (*GetNRListByHandleRequest) ProtoMessage()
func (*GetNRListByHandleRequest) Reset ¶
func (m *GetNRListByHandleRequest) Reset()
func (*GetNRListByHandleRequest) String ¶
func (m *GetNRListByHandleRequest) String() string
type GetNRListResponse ¶
type GetNRListResponse struct { // nr algorithm version Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // start block height of nr calculate interval Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` // end block height of nr calculate interval. If not specified, use 0 as tail height. End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` // nr data list Data []*NRItem `protobuf:"bytes,4,rep,name=data" json:"data,omitempty"` }
func (*GetNRListResponse) Descriptor ¶
func (*GetNRListResponse) Descriptor() ([]byte, []int)
func (*GetNRListResponse) GetData ¶
func (m *GetNRListResponse) GetData() []*NRItem
func (*GetNRListResponse) GetEnd ¶
func (m *GetNRListResponse) GetEnd() uint64
func (*GetNRListResponse) GetStart ¶
func (m *GetNRListResponse) GetStart() uint64
func (*GetNRListResponse) GetVersion ¶
func (m *GetNRListResponse) GetVersion() uint64
func (*GetNRListResponse) ProtoMessage ¶
func (*GetNRListResponse) ProtoMessage()
func (*GetNRListResponse) Reset ¶
func (m *GetNRListResponse) Reset()
func (*GetNRListResponse) String ¶
func (m *GetNRListResponse) String() string
type GetNebStateResponse ¶ added in v0.3.0
type GetNebStateResponse struct { // Block chain id ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Current neb tail hash Tail string `protobuf:"bytes,2,opt,name=tail,proto3" json:"tail,omitempty"` // Current neb lib hash Lib string `protobuf:"bytes,3,opt,name=lib,proto3" json:"lib,omitempty"` // Current neb tail block height Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` // The current neb protocol version. ProtocolVersion string `protobuf:"bytes,6,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` // The peer sync status. Synchronized bool `protobuf:"varint,7,opt,name=synchronized,proto3" json:"synchronized,omitempty"` // neb version Version string `protobuf:"bytes,8,opt,name=version,proto3" json:"version,omitempty"` }
Response message of GetNebState rpc.
func (*GetNebStateResponse) Descriptor ¶ added in v0.3.0
func (*GetNebStateResponse) Descriptor() ([]byte, []int)
func (*GetNebStateResponse) GetChainId ¶ added in v1.0.0
func (m *GetNebStateResponse) GetChainId() uint32
func (*GetNebStateResponse) GetHeight ¶ added in v1.0.0
func (m *GetNebStateResponse) GetHeight() uint64
func (*GetNebStateResponse) GetLib ¶ added in v1.0.0
func (m *GetNebStateResponse) GetLib() string
func (*GetNebStateResponse) GetProtocolVersion ¶ added in v1.0.0
func (m *GetNebStateResponse) GetProtocolVersion() string
func (*GetNebStateResponse) GetSynchronized ¶ added in v1.0.0
func (m *GetNebStateResponse) GetSynchronized() bool
func (*GetNebStateResponse) GetTail ¶ added in v0.3.0
func (m *GetNebStateResponse) GetTail() string
func (*GetNebStateResponse) GetVersion ¶ added in v1.0.0
func (m *GetNebStateResponse) GetVersion() string
func (*GetNebStateResponse) ProtoMessage ¶ added in v0.3.0
func (*GetNebStateResponse) ProtoMessage()
func (*GetNebStateResponse) Reset ¶ added in v0.3.0
func (m *GetNebStateResponse) Reset()
func (*GetNebStateResponse) String ¶ added in v0.3.0
func (m *GetNebStateResponse) String() string
type GetTransactionByContractRequest ¶ added in v1.0.2
type GetTransactionByContractRequest struct { // string of contract address. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
Request message of GetTransactionByContract rpc.
func (*GetTransactionByContractRequest) Descriptor ¶ added in v1.0.2
func (*GetTransactionByContractRequest) Descriptor() ([]byte, []int)
func (*GetTransactionByContractRequest) GetAddress ¶ added in v1.0.2
func (m *GetTransactionByContractRequest) GetAddress() string
func (*GetTransactionByContractRequest) ProtoMessage ¶ added in v1.0.2
func (*GetTransactionByContractRequest) ProtoMessage()
func (*GetTransactionByContractRequest) Reset ¶ added in v1.0.2
func (m *GetTransactionByContractRequest) Reset()
func (*GetTransactionByContractRequest) String ¶ added in v1.0.2
func (m *GetTransactionByContractRequest) String() string
type GetTransactionByHashRequest ¶ added in v0.3.0
type GetTransactionByHashRequest struct { // Hex string of transaction hash. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` }
Request message of GetTransactionByHash rpc.
func (*GetTransactionByHashRequest) Descriptor ¶ added in v0.3.0
func (*GetTransactionByHashRequest) Descriptor() ([]byte, []int)
func (*GetTransactionByHashRequest) GetHash ¶ added in v0.3.0
func (m *GetTransactionByHashRequest) GetHash() string
func (*GetTransactionByHashRequest) ProtoMessage ¶ added in v0.3.0
func (*GetTransactionByHashRequest) ProtoMessage()
func (*GetTransactionByHashRequest) Reset ¶ added in v0.3.0
func (m *GetTransactionByHashRequest) Reset()
func (*GetTransactionByHashRequest) String ¶ added in v0.3.0
func (m *GetTransactionByHashRequest) String() string
type HashRequest ¶ added in v1.0.0
type HashRequest struct { // Hex string of block/transaction hash. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` }
Request message of GetTransactionByHash rpc.
func (*HashRequest) Descriptor ¶ added in v1.0.0
func (*HashRequest) Descriptor() ([]byte, []int)
func (*HashRequest) GetHash ¶ added in v1.0.0
func (m *HashRequest) GetHash() string
func (*HashRequest) ProtoMessage ¶ added in v1.0.0
func (*HashRequest) ProtoMessage()
func (*HashRequest) Reset ¶ added in v1.0.0
func (m *HashRequest) Reset()
func (*HashRequest) String ¶ added in v1.0.0
func (m *HashRequest) String() string
type LockAccountRequest ¶ added in v0.3.0
type LockAccountRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*LockAccountRequest) Descriptor ¶ added in v0.3.0
func (*LockAccountRequest) Descriptor() ([]byte, []int)
func (*LockAccountRequest) GetAddress ¶ added in v0.3.0
func (m *LockAccountRequest) GetAddress() string
func (*LockAccountRequest) ProtoMessage ¶ added in v0.3.0
func (*LockAccountRequest) ProtoMessage()
func (*LockAccountRequest) Reset ¶ added in v0.3.0
func (m *LockAccountRequest) Reset()
func (*LockAccountRequest) String ¶ added in v0.3.0
func (m *LockAccountRequest) String() string
type LockAccountResponse ¶ added in v0.3.0
type LockAccountResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (*LockAccountResponse) Descriptor ¶ added in v0.3.0
func (*LockAccountResponse) Descriptor() ([]byte, []int)
func (*LockAccountResponse) GetResult ¶ added in v0.3.0
func (m *LockAccountResponse) GetResult() bool
func (*LockAccountResponse) ProtoMessage ¶ added in v0.3.0
func (*LockAccountResponse) ProtoMessage()
func (*LockAccountResponse) Reset ¶ added in v0.3.0
func (m *LockAccountResponse) Reset()
func (*LockAccountResponse) String ¶ added in v0.3.0
func (m *LockAccountResponse) String() string
type NRItem ¶
type NRItem struct { // nr address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // score of nr. Score string `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` Median string `protobuf:"bytes,3,opt,name=median,proto3" json:"median,omitempty"` Weight string `protobuf:"bytes,4,opt,name=weight,proto3" json:"weight,omitempty"` }
func (*NRItem) Descriptor ¶
func (*NRItem) GetAddress ¶
func (*NRItem) ProtoMessage ¶
func (*NRItem) ProtoMessage()
type NewAccountRequest ¶ added in v0.3.0
type NewAccountRequest struct {
Passphrase string `protobuf:"bytes,1,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
}
func (*NewAccountRequest) Descriptor ¶ added in v0.3.0
func (*NewAccountRequest) Descriptor() ([]byte, []int)
func (*NewAccountRequest) GetPassphrase ¶ added in v0.3.0
func (m *NewAccountRequest) GetPassphrase() string
func (*NewAccountRequest) ProtoMessage ¶ added in v0.3.0
func (*NewAccountRequest) ProtoMessage()
func (*NewAccountRequest) Reset ¶ added in v0.3.0
func (m *NewAccountRequest) Reset()
func (*NewAccountRequest) String ¶ added in v0.3.0
func (m *NewAccountRequest) String() string
type NewAccountResponse ¶ added in v0.3.0
type NewAccountResponse struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*NewAccountResponse) Descriptor ¶ added in v0.3.0
func (*NewAccountResponse) Descriptor() ([]byte, []int)
func (*NewAccountResponse) GetAddress ¶ added in v0.3.0
func (m *NewAccountResponse) GetAddress() string
func (*NewAccountResponse) ProtoMessage ¶ added in v0.3.0
func (*NewAccountResponse) ProtoMessage()
func (*NewAccountResponse) Reset ¶ added in v0.3.0
func (m *NewAccountResponse) Reset()
func (*NewAccountResponse) String ¶ added in v0.3.0
func (m *NewAccountResponse) String() string
type NodeInfoResponse ¶ added in v1.0.0
type NodeInfoResponse struct { // the node ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // the block chainID. ChainId uint32 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // coinbase Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // Number of peers currenly connected. PeerCount uint32 `protobuf:"varint,4,opt,name=peer_count,json=peerCount,proto3" json:"peer_count,omitempty"` // the node synchronized status. Synchronized bool `protobuf:"varint,5,opt,name=synchronized,proto3" json:"synchronized,omitempty"` // the node route table bucket size. BucketSize int32 `protobuf:"varint,6,opt,name=bucket_size,json=bucketSize,proto3" json:"bucket_size,omitempty"` // the network protocol version. ProtocolVersion string `protobuf:"bytes,10,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` RouteTable []*RouteTable `protobuf:"bytes,11,rep,name=route_table,json=routeTable" json:"route_table,omitempty"` }
Response message of node info.
func (*NodeInfoResponse) Descriptor ¶ added in v1.0.0
func (*NodeInfoResponse) Descriptor() ([]byte, []int)
func (*NodeInfoResponse) GetBucketSize ¶ added in v1.0.0
func (m *NodeInfoResponse) GetBucketSize() int32
func (*NodeInfoResponse) GetChainId ¶ added in v1.0.0
func (m *NodeInfoResponse) GetChainId() uint32
func (*NodeInfoResponse) GetCoinbase ¶ added in v1.0.0
func (m *NodeInfoResponse) GetCoinbase() string
func (*NodeInfoResponse) GetId ¶ added in v1.0.0
func (m *NodeInfoResponse) GetId() string
func (*NodeInfoResponse) GetPeerCount ¶ added in v1.0.0
func (m *NodeInfoResponse) GetPeerCount() uint32
func (*NodeInfoResponse) GetProtocolVersion ¶ added in v1.0.0
func (m *NodeInfoResponse) GetProtocolVersion() string
func (*NodeInfoResponse) GetRouteTable ¶ added in v1.0.0
func (m *NodeInfoResponse) GetRouteTable() []*RouteTable
func (*NodeInfoResponse) GetSynchronized ¶ added in v1.0.0
func (m *NodeInfoResponse) GetSynchronized() bool
func (*NodeInfoResponse) ProtoMessage ¶ added in v1.0.0
func (*NodeInfoResponse) ProtoMessage()
func (*NodeInfoResponse) Reset ¶ added in v1.0.0
func (m *NodeInfoResponse) Reset()
func (*NodeInfoResponse) String ¶ added in v1.0.0
func (m *NodeInfoResponse) String() string
type NonParamsRequest ¶ added in v1.0.0
type NonParamsRequest struct { }
Request message of non params.
func (*NonParamsRequest) Descriptor ¶ added in v1.0.0
func (*NonParamsRequest) Descriptor() ([]byte, []int)
func (*NonParamsRequest) ProtoMessage ¶ added in v1.0.0
func (*NonParamsRequest) ProtoMessage()
func (*NonParamsRequest) Reset ¶ added in v1.0.0
func (m *NonParamsRequest) Reset()
func (*NonParamsRequest) String ¶ added in v1.0.0
func (m *NonParamsRequest) String() string
type PprofRequest ¶ added in v1.0.0
type PprofRequest struct {
Listen string `protobuf:"bytes,1,opt,name=listen,proto3" json:"listen,omitempty"`
}
func (*PprofRequest) Descriptor ¶ added in v1.0.0
func (*PprofRequest) Descriptor() ([]byte, []int)
func (*PprofRequest) GetListen ¶ added in v1.0.0
func (m *PprofRequest) GetListen() string
func (*PprofRequest) ProtoMessage ¶ added in v1.0.0
func (*PprofRequest) ProtoMessage()
func (*PprofRequest) Reset ¶ added in v1.0.0
func (m *PprofRequest) Reset()
func (*PprofRequest) String ¶ added in v1.0.0
func (m *PprofRequest) String() string
type PprofResponse ¶ added in v1.0.0
type PprofResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (*PprofResponse) Descriptor ¶ added in v1.0.0
func (*PprofResponse) Descriptor() ([]byte, []int)
func (*PprofResponse) GetResult ¶ added in v1.0.0
func (m *PprofResponse) GetResult() bool
func (*PprofResponse) ProtoMessage ¶ added in v1.0.0
func (*PprofResponse) ProtoMessage()
func (*PprofResponse) Reset ¶ added in v1.0.0
func (m *PprofResponse) Reset()
func (*PprofResponse) String ¶ added in v1.0.0
func (m *PprofResponse) String() string
type RouteTable ¶ added in v1.0.0
type RouteTable struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Address []string `protobuf:"bytes,2,rep,name=address" json:"address,omitempty"` }
func (*RouteTable) Descriptor ¶ added in v1.0.0
func (*RouteTable) Descriptor() ([]byte, []int)
func (*RouteTable) GetAddress ¶ added in v1.0.0
func (m *RouteTable) GetAddress() []string
func (*RouteTable) GetId ¶ added in v1.0.0
func (m *RouteTable) GetId() string
func (*RouteTable) ProtoMessage ¶ added in v1.0.0
func (*RouteTable) ProtoMessage()
func (*RouteTable) Reset ¶ added in v1.0.0
func (m *RouteTable) Reset()
func (*RouteTable) String ¶ added in v1.0.0
func (m *RouteTable) String() string
type SendRawTransactionRequest ¶ added in v0.3.0
type SendRawTransactionRequest struct { // Signed data of transaction Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` }
Request message of SendRawTransactionRequest rpc.
func (*SendRawTransactionRequest) Descriptor ¶ added in v0.3.0
func (*SendRawTransactionRequest) Descriptor() ([]byte, []int)
func (*SendRawTransactionRequest) GetData ¶ added in v0.3.0
func (m *SendRawTransactionRequest) GetData() []byte
func (*SendRawTransactionRequest) ProtoMessage ¶ added in v0.3.0
func (*SendRawTransactionRequest) ProtoMessage()
func (*SendRawTransactionRequest) Reset ¶ added in v0.3.0
func (m *SendRawTransactionRequest) Reset()
func (*SendRawTransactionRequest) String ¶ added in v0.3.0
func (m *SendRawTransactionRequest) String() string
type SendTransactionPassphraseRequest ¶ added in v0.3.0
type SendTransactionPassphraseRequest struct { // transaction struct Transaction *TransactionRequest `protobuf:"bytes,1,opt,name=transaction" json:"transaction,omitempty"` // from account passphrase Passphrase string `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"` }
func (*SendTransactionPassphraseRequest) Descriptor ¶ added in v0.3.0
func (*SendTransactionPassphraseRequest) Descriptor() ([]byte, []int)
func (*SendTransactionPassphraseRequest) GetPassphrase ¶ added in v0.3.0
func (m *SendTransactionPassphraseRequest) GetPassphrase() string
func (*SendTransactionPassphraseRequest) GetTransaction ¶ added in v1.0.0
func (m *SendTransactionPassphraseRequest) GetTransaction() *TransactionRequest
func (*SendTransactionPassphraseRequest) ProtoMessage ¶ added in v0.3.0
func (*SendTransactionPassphraseRequest) ProtoMessage()
func (*SendTransactionPassphraseRequest) Reset ¶ added in v0.3.0
func (m *SendTransactionPassphraseRequest) Reset()
func (*SendTransactionPassphraseRequest) String ¶ added in v0.3.0
func (m *SendTransactionPassphraseRequest) String() string
type SendTransactionResponse ¶
type SendTransactionResponse struct { // Hex string of transaction hash. Txhash string `protobuf:"bytes,1,opt,name=txhash,proto3" json:"txhash,omitempty"` // Hex string of contract address if transaction is deploy type ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` }
Response message of SendTransaction rpc.
func (*SendTransactionResponse) Descriptor ¶
func (*SendTransactionResponse) Descriptor() ([]byte, []int)
func (*SendTransactionResponse) GetContractAddress ¶ added in v1.0.0
func (m *SendTransactionResponse) GetContractAddress() string
func (*SendTransactionResponse) GetTxhash ¶ added in v1.0.0
func (m *SendTransactionResponse) GetTxhash() string
func (*SendTransactionResponse) ProtoMessage ¶
func (*SendTransactionResponse) ProtoMessage()
func (*SendTransactionResponse) Reset ¶
func (m *SendTransactionResponse) Reset()
func (*SendTransactionResponse) String ¶
func (m *SendTransactionResponse) String() string
type SignHashRequest ¶ added in v1.0.0
type SignHashRequest struct { // sign address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // sign msg Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // sign algorithm Alg uint32 `protobuf:"varint,3,opt,name=alg,proto3" json:"alg,omitempty"` }
func (*SignHashRequest) Descriptor ¶ added in v1.0.0
func (*SignHashRequest) Descriptor() ([]byte, []int)
func (*SignHashRequest) GetAddress ¶ added in v1.0.0
func (m *SignHashRequest) GetAddress() string
func (*SignHashRequest) GetAlg ¶ added in v1.0.0
func (m *SignHashRequest) GetAlg() uint32
func (*SignHashRequest) GetHash ¶ added in v1.0.0
func (m *SignHashRequest) GetHash() []byte
func (*SignHashRequest) ProtoMessage ¶ added in v1.0.0
func (*SignHashRequest) ProtoMessage()
func (*SignHashRequest) Reset ¶ added in v1.0.0
func (m *SignHashRequest) Reset()
func (*SignHashRequest) String ¶ added in v1.0.0
func (m *SignHashRequest) String() string
type SignHashResponse ¶ added in v1.0.0
type SignHashResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*SignHashResponse) Descriptor ¶ added in v1.0.0
func (*SignHashResponse) Descriptor() ([]byte, []int)
func (*SignHashResponse) GetData ¶ added in v1.0.0
func (m *SignHashResponse) GetData() []byte
func (*SignHashResponse) ProtoMessage ¶ added in v1.0.0
func (*SignHashResponse) ProtoMessage()
func (*SignHashResponse) Reset ¶ added in v1.0.0
func (m *SignHashResponse) Reset()
func (*SignHashResponse) String ¶ added in v1.0.0
func (m *SignHashResponse) String() string
type SignTransactionPassphraseRequest ¶ added in v1.0.0
type SignTransactionPassphraseRequest struct { // transaction struct Transaction *TransactionRequest `protobuf:"bytes,1,opt,name=transaction" json:"transaction,omitempty"` // from account passphrase Passphrase string `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"` }
func (*SignTransactionPassphraseRequest) Descriptor ¶ added in v1.0.0
func (*SignTransactionPassphraseRequest) Descriptor() ([]byte, []int)
func (*SignTransactionPassphraseRequest) GetPassphrase ¶ added in v1.0.0
func (m *SignTransactionPassphraseRequest) GetPassphrase() string
func (*SignTransactionPassphraseRequest) GetTransaction ¶ added in v1.0.0
func (m *SignTransactionPassphraseRequest) GetTransaction() *TransactionRequest
func (*SignTransactionPassphraseRequest) ProtoMessage ¶ added in v1.0.0
func (*SignTransactionPassphraseRequest) ProtoMessage()
func (*SignTransactionPassphraseRequest) Reset ¶ added in v1.0.0
func (m *SignTransactionPassphraseRequest) Reset()
func (*SignTransactionPassphraseRequest) String ¶ added in v1.0.0
func (m *SignTransactionPassphraseRequest) String() string
type SignTransactionPassphraseResponse ¶ added in v1.0.0
type SignTransactionPassphraseResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*SignTransactionPassphraseResponse) Descriptor ¶ added in v1.0.0
func (*SignTransactionPassphraseResponse) Descriptor() ([]byte, []int)
func (*SignTransactionPassphraseResponse) GetData ¶ added in v1.0.0
func (m *SignTransactionPassphraseResponse) GetData() []byte
func (*SignTransactionPassphraseResponse) ProtoMessage ¶ added in v1.0.0
func (*SignTransactionPassphraseResponse) ProtoMessage()
func (*SignTransactionPassphraseResponse) Reset ¶ added in v1.0.0
func (m *SignTransactionPassphraseResponse) Reset()
func (*SignTransactionPassphraseResponse) String ¶ added in v1.0.0
func (m *SignTransactionPassphraseResponse) String() string
type SubscribeRequest ¶ added in v1.0.0
type SubscribeRequest struct {
Topics []string `protobuf:"bytes,1,rep,name=topics" json:"topics,omitempty"`
}
Request message of Subscribe rpc
func (*SubscribeRequest) Descriptor ¶ added in v1.0.0
func (*SubscribeRequest) Descriptor() ([]byte, []int)
func (*SubscribeRequest) GetTopics ¶ added in v1.0.0
func (m *SubscribeRequest) GetTopics() []string
func (*SubscribeRequest) ProtoMessage ¶ added in v1.0.0
func (*SubscribeRequest) ProtoMessage()
func (*SubscribeRequest) Reset ¶ added in v1.0.0
func (m *SubscribeRequest) Reset()
func (*SubscribeRequest) String ¶ added in v1.0.0
func (m *SubscribeRequest) String() string
type SubscribeResponse ¶ added in v1.0.0
type SubscribeResponse struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
Request message of Subscribe rpc
func (*SubscribeResponse) Descriptor ¶ added in v1.0.0
func (*SubscribeResponse) Descriptor() ([]byte, []int)
func (*SubscribeResponse) GetData ¶ added in v1.0.0
func (m *SubscribeResponse) GetData() string
func (*SubscribeResponse) GetTopic ¶ added in v1.0.0
func (m *SubscribeResponse) GetTopic() string
func (*SubscribeResponse) ProtoMessage ¶ added in v1.0.0
func (*SubscribeResponse) ProtoMessage()
func (*SubscribeResponse) Reset ¶ added in v1.0.0
func (m *SubscribeResponse) Reset()
func (*SubscribeResponse) String ¶ added in v1.0.0
func (m *SubscribeResponse) String() string
type TransactionRequest ¶ added in v1.0.0
type TransactionRequest struct { // Hex string of the sender account addresss. From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // Hex string of the receiver account addresss. To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` // Amount of value sending with this transaction. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // Transaction nonce. Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` // gasPrice sending with this transaction. GasPrice string `protobuf:"bytes,5,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` // gasLimit sending with this transaction. GasLimit string `protobuf:"bytes,6,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // contract sending with this transaction Contract *ContractRequest `protobuf:"bytes,7,opt,name=contract" json:"contract,omitempty"` // binary data for transaction Binary []byte `protobuf:"bytes,10,opt,name=binary,proto3" json:"binary,omitempty"` // protocol data for transaction Protocol []byte `protobuf:"bytes,11,opt,name=protocol,proto3" json:"protocol,omitempty"` // transaction payload type, enum:binary, deploy, call, protocol Type string `protobuf:"bytes,20,opt,name=type,proto3" json:"type,omitempty"` }
Request message of SendTransaction rpc.
func (*TransactionRequest) Descriptor ¶ added in v1.0.0
func (*TransactionRequest) Descriptor() ([]byte, []int)
func (*TransactionRequest) GetBinary ¶ added in v1.0.0
func (m *TransactionRequest) GetBinary() []byte
func (*TransactionRequest) GetContract ¶ added in v1.0.0
func (m *TransactionRequest) GetContract() *ContractRequest
func (*TransactionRequest) GetFrom ¶ added in v1.0.0
func (m *TransactionRequest) GetFrom() string
func (*TransactionRequest) GetGasLimit ¶ added in v1.0.0
func (m *TransactionRequest) GetGasLimit() string
func (*TransactionRequest) GetGasPrice ¶ added in v1.0.0
func (m *TransactionRequest) GetGasPrice() string
func (*TransactionRequest) GetNonce ¶ added in v1.0.0
func (m *TransactionRequest) GetNonce() uint64
func (*TransactionRequest) GetProtocol ¶
func (m *TransactionRequest) GetProtocol() []byte
func (*TransactionRequest) GetTo ¶ added in v1.0.0
func (m *TransactionRequest) GetTo() string
func (*TransactionRequest) GetType ¶ added in v1.0.2
func (m *TransactionRequest) GetType() string
func (*TransactionRequest) GetValue ¶ added in v1.0.0
func (m *TransactionRequest) GetValue() string
func (*TransactionRequest) ProtoMessage ¶ added in v1.0.0
func (*TransactionRequest) ProtoMessage()
func (*TransactionRequest) Reset ¶ added in v1.0.0
func (m *TransactionRequest) Reset()
func (*TransactionRequest) String ¶ added in v1.0.0
func (m *TransactionRequest) String() string
type TransactionResponse ¶ added in v1.0.0
type TransactionResponse struct { // Hex string of tx hash. Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` ChainId uint32 `protobuf:"varint,2,opt,name=chainId,proto3" json:"chainId,omitempty"` // Hex string of the sender account addresss. From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` // Hex string of the receiver account addresss. To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // Transaction nonce. Nonce uint64 `protobuf:"varint,6,opt,name=nonce,proto3" json:"nonce,omitempty"` Timestamp int64 `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Type string `protobuf:"bytes,8,opt,name=type,proto3" json:"type,omitempty"` Data []byte `protobuf:"bytes,9,opt,name=data,proto3" json:"data,omitempty"` GasPrice string `protobuf:"bytes,10,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` GasLimit string `protobuf:"bytes,11,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` ContractAddress string `protobuf:"bytes,12,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // transaction status 0 failed, 1 success, 2 pending Status int32 `protobuf:"varint,13,opt,name=status,proto3" json:"status,omitempty"` // transaction gas used GasUsed string `protobuf:"bytes,14,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` // contract execute error ExecuteError string `protobuf:"bytes,15,opt,name=execute_error,json=executeError,proto3" json:"execute_error,omitempty"` // contract execute result ExecuteResult string `protobuf:"bytes,16,opt,name=execute_result,json=executeResult,proto3" json:"execute_result,omitempty"` // transaction's block height BlockHeight uint64 `protobuf:"varint,17,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` }
Response message of TransactionReceipt.
func (*TransactionResponse) Descriptor ¶ added in v1.0.0
func (*TransactionResponse) Descriptor() ([]byte, []int)
func (*TransactionResponse) GetBlockHeight ¶
func (m *TransactionResponse) GetBlockHeight() uint64
func (*TransactionResponse) GetChainId ¶ added in v1.0.0
func (m *TransactionResponse) GetChainId() uint32
func (*TransactionResponse) GetContractAddress ¶ added in v1.0.0
func (m *TransactionResponse) GetContractAddress() string
func (*TransactionResponse) GetData ¶ added in v1.0.0
func (m *TransactionResponse) GetData() []byte
func (*TransactionResponse) GetExecuteError ¶ added in v1.0.2
func (m *TransactionResponse) GetExecuteError() string
func (*TransactionResponse) GetExecuteResult ¶ added in v1.0.2
func (m *TransactionResponse) GetExecuteResult() string
func (*TransactionResponse) GetFrom ¶ added in v1.0.0
func (m *TransactionResponse) GetFrom() string
func (*TransactionResponse) GetGasLimit ¶ added in v1.0.0
func (m *TransactionResponse) GetGasLimit() string
func (*TransactionResponse) GetGasPrice ¶ added in v1.0.0
func (m *TransactionResponse) GetGasPrice() string
func (*TransactionResponse) GetGasUsed ¶ added in v1.0.0
func (m *TransactionResponse) GetGasUsed() string
func (*TransactionResponse) GetHash ¶ added in v1.0.0
func (m *TransactionResponse) GetHash() string
func (*TransactionResponse) GetNonce ¶ added in v1.0.0
func (m *TransactionResponse) GetNonce() uint64
func (*TransactionResponse) GetStatus ¶ added in v1.0.0
func (m *TransactionResponse) GetStatus() int32
func (*TransactionResponse) GetTimestamp ¶ added in v1.0.0
func (m *TransactionResponse) GetTimestamp() int64
func (*TransactionResponse) GetTo ¶ added in v1.0.0
func (m *TransactionResponse) GetTo() string
func (*TransactionResponse) GetType ¶ added in v1.0.0
func (m *TransactionResponse) GetType() string
func (*TransactionResponse) GetValue ¶ added in v1.0.0
func (m *TransactionResponse) GetValue() string
func (*TransactionResponse) ProtoMessage ¶ added in v1.0.0
func (*TransactionResponse) ProtoMessage()
func (*TransactionResponse) Reset ¶ added in v1.0.0
func (m *TransactionResponse) Reset()
func (*TransactionResponse) String ¶ added in v1.0.0
func (m *TransactionResponse) String() string
type UnlockAccountRequest ¶ added in v0.3.0
type UnlockAccountRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Passphrase string `protobuf:"bytes,2,opt,name=passphrase,proto3" json:"passphrase,omitempty"` Duration uint64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` }
func (*UnlockAccountRequest) Descriptor ¶ added in v0.3.0
func (*UnlockAccountRequest) Descriptor() ([]byte, []int)
func (*UnlockAccountRequest) GetAddress ¶ added in v0.3.0
func (m *UnlockAccountRequest) GetAddress() string
func (*UnlockAccountRequest) GetDuration ¶ added in v1.0.0
func (m *UnlockAccountRequest) GetDuration() uint64
func (*UnlockAccountRequest) GetPassphrase ¶ added in v0.3.0
func (m *UnlockAccountRequest) GetPassphrase() string
func (*UnlockAccountRequest) ProtoMessage ¶ added in v0.3.0
func (*UnlockAccountRequest) ProtoMessage()
func (*UnlockAccountRequest) Reset ¶ added in v0.3.0
func (m *UnlockAccountRequest) Reset()
func (*UnlockAccountRequest) String ¶ added in v0.3.0
func (m *UnlockAccountRequest) String() string
type UnlockAccountResponse ¶ added in v0.3.0
type UnlockAccountResponse struct {
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
}
func (*UnlockAccountResponse) Descriptor ¶ added in v0.3.0
func (*UnlockAccountResponse) Descriptor() ([]byte, []int)
func (*UnlockAccountResponse) GetResult ¶ added in v0.3.0
func (m *UnlockAccountResponse) GetResult() bool
func (*UnlockAccountResponse) ProtoMessage ¶ added in v0.3.0
func (*UnlockAccountResponse) ProtoMessage()
func (*UnlockAccountResponse) Reset ¶ added in v0.3.0
func (m *UnlockAccountResponse) Reset()
func (*UnlockAccountResponse) String ¶ added in v0.3.0
func (m *UnlockAccountResponse) String() string
type VerifySignatureRequest ¶
type VerifySignatureRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Alg uint32 `protobuf:"varint,4,opt,name=alg,proto3" json:"alg,omitempty"` }
func (*VerifySignatureRequest) Descriptor ¶
func (*VerifySignatureRequest) Descriptor() ([]byte, []int)
func (*VerifySignatureRequest) GetAddress ¶
func (m *VerifySignatureRequest) GetAddress() string
func (*VerifySignatureRequest) GetAlg ¶
func (m *VerifySignatureRequest) GetAlg() uint32
func (*VerifySignatureRequest) GetMsg ¶
func (m *VerifySignatureRequest) GetMsg() string
func (*VerifySignatureRequest) GetSignature ¶
func (m *VerifySignatureRequest) GetSignature() string
func (*VerifySignatureRequest) ProtoMessage ¶
func (*VerifySignatureRequest) ProtoMessage()
func (*VerifySignatureRequest) Reset ¶
func (m *VerifySignatureRequest) Reset()
func (*VerifySignatureRequest) String ¶
func (m *VerifySignatureRequest) String() string
type VerifySignatureResponse ¶
type VerifySignatureResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
func (*VerifySignatureResponse) Descriptor ¶
func (*VerifySignatureResponse) Descriptor() ([]byte, []int)
func (*VerifySignatureResponse) GetAddress ¶
func (m *VerifySignatureResponse) GetAddress() string
func (*VerifySignatureResponse) GetResult ¶
func (m *VerifySignatureResponse) GetResult() bool
func (*VerifySignatureResponse) ProtoMessage ¶
func (*VerifySignatureResponse) ProtoMessage()
func (*VerifySignatureResponse) Reset ¶
func (m *VerifySignatureResponse) Reset()
func (*VerifySignatureResponse) String ¶
func (m *VerifySignatureResponse) String() string