Versions in this module Expand all Collapse all v0 v0.15.10001 Jan 16, 2023 v0.15.101 Jan 16, 2023 Changes in this version + var ChainKit_ServiceDesc = grpc.ServiceDesc + var ChainNotifier_ServiceDesc = grpc.ServiceDesc + var File_chainrpc_chainkit_proto protoreflect.FileDescriptor + var File_chainrpc_chainnotifier_proto protoreflect.FileDescriptor + func DisableLog() + func RegisterChainKitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterChainKitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChainKitClient) error + func RegisterChainKitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterChainKitHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChainKitServer) error + func RegisterChainKitJSONCallbacks(...) + func RegisterChainKitServer(s grpc.ServiceRegistrar, srv ChainKitServer) + func RegisterChainNotifierHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterChainNotifierHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChainNotifierClient) error + func RegisterChainNotifierHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterChainNotifierHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChainNotifierServer) error + func RegisterChainNotifierJSONCallbacks(...) + func RegisterChainNotifierServer(s grpc.ServiceRegistrar, srv ChainNotifierServer) + func UseLogger(logger btclog.Logger) + type BlockEpoch struct + Hash []byte + Height uint32 + func (*BlockEpoch) Descriptor() ([]byte, []int) + func (*BlockEpoch) ProtoMessage() + func (x *BlockEpoch) GetHash() []byte + func (x *BlockEpoch) GetHeight() uint32 + func (x *BlockEpoch) ProtoReflect() protoreflect.Message + func (x *BlockEpoch) Reset() + func (x *BlockEpoch) String() string + type ChainKitClient interface + GetBestBlock func(ctx context.Context, in *GetBestBlockRequest, opts ...grpc.CallOption) (*GetBestBlockResponse, error) + GetBlock func(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (*GetBlockResponse, error) + GetBlockHash func(ctx context.Context, in *GetBlockHashRequest, opts ...grpc.CallOption) (*GetBlockHashResponse, error) + func NewChainKitClient(cc grpc.ClientConnInterface) ChainKitClient + type ChainKitServer interface + GetBestBlock func(context.Context, *GetBestBlockRequest) (*GetBestBlockResponse, error) + GetBlock func(context.Context, *GetBlockRequest) (*GetBlockResponse, error) + GetBlockHash func(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error) + type ChainNotifierClient interface + RegisterBlockEpochNtfn func(ctx context.Context, in *BlockEpoch, opts ...grpc.CallOption) (ChainNotifier_RegisterBlockEpochNtfnClient, error) + RegisterConfirmationsNtfn func(ctx context.Context, in *ConfRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterConfirmationsNtfnClient, error) + RegisterSpendNtfn func(ctx context.Context, in *SpendRequest, opts ...grpc.CallOption) (ChainNotifier_RegisterSpendNtfnClient, error) + func NewChainNotifierClient(cc grpc.ClientConnInterface) ChainNotifierClient + type ChainNotifierServer interface + RegisterBlockEpochNtfn func(*BlockEpoch, ChainNotifier_RegisterBlockEpochNtfnServer) error + RegisterConfirmationsNtfn func(*ConfRequest, ChainNotifier_RegisterConfirmationsNtfnServer) error + RegisterSpendNtfn func(*SpendRequest, ChainNotifier_RegisterSpendNtfnServer) error + type ChainNotifier_RegisterBlockEpochNtfnClient interface + Recv func() (*BlockEpoch, error) + type ChainNotifier_RegisterBlockEpochNtfnServer interface + Send func(*BlockEpoch) error + type ChainNotifier_RegisterConfirmationsNtfnClient interface + Recv func() (*ConfEvent, error) + type ChainNotifier_RegisterConfirmationsNtfnServer interface + Send func(*ConfEvent) error + type ChainNotifier_RegisterSpendNtfnClient interface + Recv func() (*SpendEvent, error) + type ChainNotifier_RegisterSpendNtfnServer interface + Send func(*SpendEvent) error + type ConfDetails struct + BlockHash []byte + BlockHeight uint32 + RawBlock []byte + RawTx []byte + TxIndex uint32 + func (*ConfDetails) Descriptor() ([]byte, []int) + func (*ConfDetails) ProtoMessage() + func (x *ConfDetails) GetBlockHash() []byte + func (x *ConfDetails) GetBlockHeight() uint32 + func (x *ConfDetails) GetRawBlock() []byte + func (x *ConfDetails) GetRawTx() []byte + func (x *ConfDetails) GetTxIndex() uint32 + func (x *ConfDetails) ProtoReflect() protoreflect.Message + func (x *ConfDetails) Reset() + func (x *ConfDetails) String() string + type ConfEvent struct + Event isConfEvent_Event + func (*ConfEvent) Descriptor() ([]byte, []int) + func (*ConfEvent) ProtoMessage() + func (m *ConfEvent) GetEvent() isConfEvent_Event + func (x *ConfEvent) GetConf() *ConfDetails + func (x *ConfEvent) GetReorg() *Reorg + func (x *ConfEvent) ProtoReflect() protoreflect.Message + func (x *ConfEvent) Reset() + func (x *ConfEvent) String() string + type ConfEvent_Conf struct + Conf *ConfDetails + type ConfEvent_Reorg struct + Reorg *Reorg + type ConfRequest struct + HeightHint uint32 + IncludeBlock bool + NumConfs uint32 + Script []byte + Txid []byte + func (*ConfRequest) Descriptor() ([]byte, []int) + func (*ConfRequest) ProtoMessage() + func (x *ConfRequest) GetHeightHint() uint32 + func (x *ConfRequest) GetIncludeBlock() bool + func (x *ConfRequest) GetNumConfs() uint32 + func (x *ConfRequest) GetScript() []byte + func (x *ConfRequest) GetTxid() []byte + func (x *ConfRequest) ProtoReflect() protoreflect.Message + func (x *ConfRequest) Reset() + func (x *ConfRequest) String() string + type Config struct + type GetBestBlockRequest struct + func (*GetBestBlockRequest) Descriptor() ([]byte, []int) + func (*GetBestBlockRequest) ProtoMessage() + func (x *GetBestBlockRequest) ProtoReflect() protoreflect.Message + func (x *GetBestBlockRequest) Reset() + func (x *GetBestBlockRequest) String() string + type GetBestBlockResponse struct + BlockHash []byte + BlockHeight int32 + func (*GetBestBlockResponse) Descriptor() ([]byte, []int) + func (*GetBestBlockResponse) ProtoMessage() + func (x *GetBestBlockResponse) GetBlockHash() []byte + func (x *GetBestBlockResponse) GetBlockHeight() int32 + func (x *GetBestBlockResponse) ProtoReflect() protoreflect.Message + func (x *GetBestBlockResponse) Reset() + func (x *GetBestBlockResponse) String() string + type GetBlockHashRequest struct + BlockHeight int64 + func (*GetBlockHashRequest) Descriptor() ([]byte, []int) + func (*GetBlockHashRequest) ProtoMessage() + func (x *GetBlockHashRequest) GetBlockHeight() int64 + func (x *GetBlockHashRequest) ProtoReflect() protoreflect.Message + func (x *GetBlockHashRequest) Reset() + func (x *GetBlockHashRequest) String() string + type GetBlockHashResponse struct + BlockHash []byte + func (*GetBlockHashResponse) Descriptor() ([]byte, []int) + func (*GetBlockHashResponse) ProtoMessage() + func (x *GetBlockHashResponse) GetBlockHash() []byte + func (x *GetBlockHashResponse) ProtoReflect() protoreflect.Message + func (x *GetBlockHashResponse) Reset() + func (x *GetBlockHashResponse) String() string + type GetBlockRequest struct + BlockHash []byte + func (*GetBlockRequest) Descriptor() ([]byte, []int) + func (*GetBlockRequest) ProtoMessage() + func (x *GetBlockRequest) GetBlockHash() []byte + func (x *GetBlockRequest) ProtoReflect() protoreflect.Message + func (x *GetBlockRequest) Reset() + func (x *GetBlockRequest) String() string + type GetBlockResponse struct + RawBlock []byte + func (*GetBlockResponse) Descriptor() ([]byte, []int) + func (*GetBlockResponse) ProtoMessage() + func (x *GetBlockResponse) GetRawBlock() []byte + func (x *GetBlockResponse) ProtoReflect() protoreflect.Message + func (x *GetBlockResponse) Reset() + func (x *GetBlockResponse) String() string + type Outpoint struct + Hash []byte + Index uint32 + func (*Outpoint) Descriptor() ([]byte, []int) + func (*Outpoint) ProtoMessage() + func (x *Outpoint) GetHash() []byte + func (x *Outpoint) GetIndex() uint32 + func (x *Outpoint) ProtoReflect() protoreflect.Message + func (x *Outpoint) Reset() + func (x *Outpoint) String() string + type Reorg struct + func (*Reorg) Descriptor() ([]byte, []int) + func (*Reorg) ProtoMessage() + func (x *Reorg) ProtoReflect() protoreflect.Message + func (x *Reorg) Reset() + func (x *Reorg) String() string + type SpendDetails struct + RawSpendingTx []byte + SpendingHeight uint32 + SpendingInputIndex uint32 + SpendingOutpoint *Outpoint + SpendingTxHash []byte + func (*SpendDetails) Descriptor() ([]byte, []int) + func (*SpendDetails) ProtoMessage() + func (x *SpendDetails) GetRawSpendingTx() []byte + func (x *SpendDetails) GetSpendingHeight() uint32 + func (x *SpendDetails) GetSpendingInputIndex() uint32 + func (x *SpendDetails) GetSpendingOutpoint() *Outpoint + func (x *SpendDetails) GetSpendingTxHash() []byte + func (x *SpendDetails) ProtoReflect() protoreflect.Message + func (x *SpendDetails) Reset() + func (x *SpendDetails) String() string + type SpendEvent struct + Event isSpendEvent_Event + func (*SpendEvent) Descriptor() ([]byte, []int) + func (*SpendEvent) ProtoMessage() + func (m *SpendEvent) GetEvent() isSpendEvent_Event + func (x *SpendEvent) GetReorg() *Reorg + func (x *SpendEvent) GetSpend() *SpendDetails + func (x *SpendEvent) ProtoReflect() protoreflect.Message + func (x *SpendEvent) Reset() + func (x *SpendEvent) String() string + type SpendEvent_Reorg struct + Reorg *Reorg + type SpendEvent_Spend struct + Spend *SpendDetails + type SpendRequest struct + HeightHint uint32 + Outpoint *Outpoint + Script []byte + func (*SpendRequest) Descriptor() ([]byte, []int) + func (*SpendRequest) ProtoMessage() + func (x *SpendRequest) GetHeightHint() uint32 + func (x *SpendRequest) GetOutpoint() *Outpoint + func (x *SpendRequest) GetScript() []byte + func (x *SpendRequest) ProtoReflect() protoreflect.Message + func (x *SpendRequest) Reset() + func (x *SpendRequest) String() string + type UnimplementedChainKitServer struct + func (UnimplementedChainKitServer) GetBestBlock(context.Context, *GetBestBlockRequest) (*GetBestBlockResponse, error) + func (UnimplementedChainKitServer) GetBlock(context.Context, *GetBlockRequest) (*GetBlockResponse, error) + func (UnimplementedChainKitServer) GetBlockHash(context.Context, *GetBlockHashRequest) (*GetBlockHashResponse, error) + type UnimplementedChainNotifierServer struct + func (UnimplementedChainNotifierServer) RegisterBlockEpochNtfn(*BlockEpoch, ChainNotifier_RegisterBlockEpochNtfnServer) error + func (UnimplementedChainNotifierServer) RegisterConfirmationsNtfn(*ConfRequest, ChainNotifier_RegisterConfirmationsNtfnServer) error + func (UnimplementedChainNotifierServer) RegisterSpendNtfn(*SpendRequest, ChainNotifier_RegisterSpendNtfnServer) error + type UnsafeChainKitServer interface + type UnsafeChainNotifierServer interface