protowire

package
v0.0.0-...-5ed304f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownMessage        = fmt.Errorf("message could not be casted as *KaspadMessage")
	ErrRouteClosed           = fmt.Errorf("route is closed")
	ErrRouteAtCapacity       = fmt.Errorf("route at capacity")
	ErrRouteTimedOut         = fmt.Errorf("route timed out")
	ErrRouteNotFound         = fmt.Errorf("route not found")
	ErrClientNotConnected    = fmt.Errorf("client not connected")
	ErrRequestTimedOut       = fmt.Errorf("request timed out")
	ErrClientClosedOnRequest = fmt.Errorf("client closed on request")

	CmdSubmitBlock                            = "SubmitBlock"
	CmdGetBlockTemplate                       = "GetBlockTemplate"
	CmdGetSelectedTipHash                     = "GetSelectedTipHash"
	CmdSubmitTransaction                      = "SubmitTransaction"
	CmdGetBlock                               = "GetBlock"
	CmdGetVirtualSelectedParentChainFromBlock = "GetVirtualSelectedParentChainFromBlock"
	CmdGetBlocks                              = "GetBlocks"
	CmdGetUtxosByAddresses                    = "GetUtxosByAddresses"
	CmdGetInfo                                = "GetInfo"
	CmdGetBalanceByAddress                    = "GetBalanceByAddress"
	CmdUnknown                                = "Unknown"

	Cmds = []string{
		CmdSubmitBlock,
		CmdGetBlockTemplate,
		CmdGetSelectedTipHash,
		CmdSubmitTransaction,
		CmdGetBlock,
		CmdGetVirtualSelectedParentChainFromBlock,
		CmdGetBlocks,
		CmdGetUtxosByAddresses,
		CmdGetInfo,
		CmdGetBalanceByAddress,
		CmdUnknown,
	}
)
View Source
var (
	SubmitBlockResponseMessage_RejectReason_name = map[int32]string{
		0: "NONE",
		1: "BLOCK_INVALID",
		2: "IS_IN_IBD",
	}
	SubmitBlockResponseMessage_RejectReason_value = map[string]int32{
		"NONE":          0,
		"BLOCK_INVALID": 1,
		"IS_IN_IBD":     2,
	}
)

Enum value maps for SubmitBlockResponseMessage_RejectReason.

View Source
var File_messages_proto protoreflect.FileDescriptor
View Source
var RPC_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protowire.RPC",
	HandlerType: (*RPCServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "MessageStream",
			Handler:       _RPC_MessageStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "messages.proto",
}

RPC_ServiceDesc is the grpc.ServiceDesc for RPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRPCServer

func RegisterRPCServer(s grpc.ServiceRegistrar, srv RPCServer)

Types

type AcceptedTransactionIds

type AcceptedTransactionIds struct {
	AcceptingBlockHash     string   `protobuf:"bytes,1,opt,name=acceptingBlockHash,proto3" json:"acceptingBlockHash,omitempty"`
	AcceptedTransactionIds []string `protobuf:"bytes,2,rep,name=acceptedTransactionIds,proto3" json:"acceptedTransactionIds,omitempty"`
	// contains filtered or unexported fields
}

func (*AcceptedTransactionIds) Descriptor deprecated

func (*AcceptedTransactionIds) Descriptor() ([]byte, []int)

Deprecated: Use AcceptedTransactionIds.ProtoReflect.Descriptor instead.

func (*AcceptedTransactionIds) GetAcceptedTransactionIds

func (x *AcceptedTransactionIds) GetAcceptedTransactionIds() []string

func (*AcceptedTransactionIds) GetAcceptingBlockHash

func (x *AcceptedTransactionIds) GetAcceptingBlockHash() string

func (*AcceptedTransactionIds) ProtoMessage

func (*AcceptedTransactionIds) ProtoMessage()

func (*AcceptedTransactionIds) ProtoReflect

func (x *AcceptedTransactionIds) ProtoReflect() protoreflect.Message

func (*AcceptedTransactionIds) Reset

func (x *AcceptedTransactionIds) Reset()

func (*AcceptedTransactionIds) String

func (x *AcceptedTransactionIds) String() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string, timeout time.Duration, logger *log.Logger) (*Client, error)

func (*Client) Reconnect

func (c *Client) Reconnect() error

func (*Client) Send

func (c *Client) Send(raw interface{}) (interface{}, error)

func (*Client) URL

func (c *Client) URL() string

type GetBalanceByAddressRequestMessage

type GetBalanceByAddressRequestMessage struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

GetBalanceByAddressRequest returns the total balance in unspent transactions towards a given address

This call is only available when this kaspad was started with `--utxoindex`

func (*GetBalanceByAddressRequestMessage) Descriptor deprecated

func (*GetBalanceByAddressRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBalanceByAddressRequestMessage.ProtoReflect.Descriptor instead.

func (*GetBalanceByAddressRequestMessage) GetAddress

func (x *GetBalanceByAddressRequestMessage) GetAddress() string

func (*GetBalanceByAddressRequestMessage) ProtoMessage

func (*GetBalanceByAddressRequestMessage) ProtoMessage()

func (*GetBalanceByAddressRequestMessage) ProtoReflect

func (*GetBalanceByAddressRequestMessage) Reset

func (*GetBalanceByAddressRequestMessage) String

type GetBalanceByAddressResponseMessage

type GetBalanceByAddressResponseMessage struct {
	Balance uint64    `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
	Error   *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBalanceByAddressResponseMessage) Descriptor deprecated

func (*GetBalanceByAddressResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBalanceByAddressResponseMessage.ProtoReflect.Descriptor instead.

func (*GetBalanceByAddressResponseMessage) GetBalance

func (*GetBalanceByAddressResponseMessage) GetError

func (*GetBalanceByAddressResponseMessage) ProtoMessage

func (*GetBalanceByAddressResponseMessage) ProtoMessage()

func (*GetBalanceByAddressResponseMessage) ProtoReflect

func (*GetBalanceByAddressResponseMessage) Reset

func (*GetBalanceByAddressResponseMessage) String

type GetBlockRequestMessage

type GetBlockRequestMessage struct {

	// The hash of the requested block
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	// Whether to include transaction data in the response
	IncludeTransactions bool `protobuf:"varint,3,opt,name=includeTransactions,proto3" json:"includeTransactions,omitempty"`
	// contains filtered or unexported fields
}

GetBlockRequestMessage requests information about a specific block

func (*GetBlockRequestMessage) Descriptor deprecated

func (*GetBlockRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockRequestMessage.ProtoReflect.Descriptor instead.

func (*GetBlockRequestMessage) GetHash

func (x *GetBlockRequestMessage) GetHash() string

func (*GetBlockRequestMessage) GetIncludeTransactions

func (x *GetBlockRequestMessage) GetIncludeTransactions() bool

func (*GetBlockRequestMessage) ProtoMessage

func (*GetBlockRequestMessage) ProtoMessage()

func (*GetBlockRequestMessage) ProtoReflect

func (x *GetBlockRequestMessage) ProtoReflect() protoreflect.Message

func (*GetBlockRequestMessage) Reset

func (x *GetBlockRequestMessage) Reset()

func (*GetBlockRequestMessage) String

func (x *GetBlockRequestMessage) String() string

type GetBlockResponseMessage

type GetBlockResponseMessage struct {
	Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`
	Error *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockResponseMessage) Descriptor deprecated

func (*GetBlockResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockResponseMessage.ProtoReflect.Descriptor instead.

func (*GetBlockResponseMessage) GetBlock

func (x *GetBlockResponseMessage) GetBlock() *RpcBlock

func (*GetBlockResponseMessage) GetError

func (x *GetBlockResponseMessage) GetError() *RPCError

func (*GetBlockResponseMessage) ProtoMessage

func (*GetBlockResponseMessage) ProtoMessage()

func (*GetBlockResponseMessage) ProtoReflect

func (x *GetBlockResponseMessage) ProtoReflect() protoreflect.Message

func (*GetBlockResponseMessage) Reset

func (x *GetBlockResponseMessage) Reset()

func (*GetBlockResponseMessage) String

func (x *GetBlockResponseMessage) String() string

type GetBlockTemplateRequestMessage

type GetBlockTemplateRequestMessage struct {

	// Which kaspa address should the coinbase block reward transaction pay into
	PayAddress string `protobuf:"bytes,1,opt,name=payAddress,proto3" json:"payAddress,omitempty"`
	ExtraData  string `protobuf:"bytes,2,opt,name=extraData,proto3" json:"extraData,omitempty"`
	// contains filtered or unexported fields
}

GetBlockTemplateRequestMessage requests a current block template. Callers are expected to solve the block template and submit it using the submitBlock call

See: SubmitBlockRequestMessage

func (*GetBlockTemplateRequestMessage) Descriptor deprecated

func (*GetBlockTemplateRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockTemplateRequestMessage.ProtoReflect.Descriptor instead.

func (*GetBlockTemplateRequestMessage) GetExtraData

func (x *GetBlockTemplateRequestMessage) GetExtraData() string

func (*GetBlockTemplateRequestMessage) GetPayAddress

func (x *GetBlockTemplateRequestMessage) GetPayAddress() string

func (*GetBlockTemplateRequestMessage) ProtoMessage

func (*GetBlockTemplateRequestMessage) ProtoMessage()

func (*GetBlockTemplateRequestMessage) ProtoReflect

func (*GetBlockTemplateRequestMessage) Reset

func (x *GetBlockTemplateRequestMessage) Reset()

func (*GetBlockTemplateRequestMessage) String

type GetBlockTemplateResponseMessage

type GetBlockTemplateResponseMessage struct {
	Block *RpcBlock `protobuf:"bytes,3,opt,name=block,proto3" json:"block,omitempty"`
	// Whether kaspad thinks that it's synced.
	// Callers are discouraged (but not forbidden) from solving blocks when kaspad is not synced.
	// That is because when kaspad isn't in sync with the rest of the network there's a high
	// chance the block will never be accepted, thus the solving effort would have been wasted.
	IsSynced bool      `protobuf:"varint,2,opt,name=isSynced,proto3" json:"isSynced,omitempty"`
	Error    *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockTemplateResponseMessage) Descriptor deprecated

func (*GetBlockTemplateResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBlockTemplateResponseMessage.ProtoReflect.Descriptor instead.

func (*GetBlockTemplateResponseMessage) GetBlock

func (*GetBlockTemplateResponseMessage) GetError

func (*GetBlockTemplateResponseMessage) GetIsSynced

func (x *GetBlockTemplateResponseMessage) GetIsSynced() bool

func (*GetBlockTemplateResponseMessage) ProtoMessage

func (*GetBlockTemplateResponseMessage) ProtoMessage()

func (*GetBlockTemplateResponseMessage) ProtoReflect

func (*GetBlockTemplateResponseMessage) Reset

func (*GetBlockTemplateResponseMessage) String

type GetBlocksRequestMessage

type GetBlocksRequestMessage struct {
	LowHash             string `protobuf:"bytes,1,opt,name=lowHash,proto3" json:"lowHash,omitempty"`
	IncludeBlocks       bool   `protobuf:"varint,2,opt,name=includeBlocks,proto3" json:"includeBlocks,omitempty"`
	IncludeTransactions bool   `protobuf:"varint,3,opt,name=includeTransactions,proto3" json:"includeTransactions,omitempty"`
	// contains filtered or unexported fields
}

GetBlocksRequestMessage requests blocks between a certain block lowHash up to this kaspad's current virtual.

func (*GetBlocksRequestMessage) Descriptor deprecated

func (*GetBlocksRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBlocksRequestMessage.ProtoReflect.Descriptor instead.

func (*GetBlocksRequestMessage) GetIncludeBlocks

func (x *GetBlocksRequestMessage) GetIncludeBlocks() bool

func (*GetBlocksRequestMessage) GetIncludeTransactions

func (x *GetBlocksRequestMessage) GetIncludeTransactions() bool

func (*GetBlocksRequestMessage) GetLowHash

func (x *GetBlocksRequestMessage) GetLowHash() string

func (*GetBlocksRequestMessage) ProtoMessage

func (*GetBlocksRequestMessage) ProtoMessage()

func (*GetBlocksRequestMessage) ProtoReflect

func (x *GetBlocksRequestMessage) ProtoReflect() protoreflect.Message

func (*GetBlocksRequestMessage) Reset

func (x *GetBlocksRequestMessage) Reset()

func (*GetBlocksRequestMessage) String

func (x *GetBlocksRequestMessage) String() string

type GetBlocksResponseMessage

type GetBlocksResponseMessage struct {
	BlockHashes []string    `protobuf:"bytes,4,rep,name=blockHashes,proto3" json:"blockHashes,omitempty"`
	Blocks      []*RpcBlock `protobuf:"bytes,3,rep,name=blocks,proto3" json:"blocks,omitempty"`
	Error       *RPCError   `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksResponseMessage) Descriptor deprecated

func (*GetBlocksResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetBlocksResponseMessage.ProtoReflect.Descriptor instead.

func (*GetBlocksResponseMessage) GetBlockHashes

func (x *GetBlocksResponseMessage) GetBlockHashes() []string

func (*GetBlocksResponseMessage) GetBlocks

func (x *GetBlocksResponseMessage) GetBlocks() []*RpcBlock

func (*GetBlocksResponseMessage) GetError

func (x *GetBlocksResponseMessage) GetError() *RPCError

func (*GetBlocksResponseMessage) ProtoMessage

func (*GetBlocksResponseMessage) ProtoMessage()

func (*GetBlocksResponseMessage) ProtoReflect

func (x *GetBlocksResponseMessage) ProtoReflect() protoreflect.Message

func (*GetBlocksResponseMessage) Reset

func (x *GetBlocksResponseMessage) Reset()

func (*GetBlocksResponseMessage) String

func (x *GetBlocksResponseMessage) String() string

type GetInfoRequestMessage

type GetInfoRequestMessage struct {
	// contains filtered or unexported fields
}

GetInfoRequestMessage returns info about the node.

func (*GetInfoRequestMessage) Descriptor deprecated

func (*GetInfoRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoRequestMessage.ProtoReflect.Descriptor instead.

func (*GetInfoRequestMessage) ProtoMessage

func (*GetInfoRequestMessage) ProtoMessage()

func (*GetInfoRequestMessage) ProtoReflect

func (x *GetInfoRequestMessage) ProtoReflect() protoreflect.Message

func (*GetInfoRequestMessage) Reset

func (x *GetInfoRequestMessage) Reset()

func (*GetInfoRequestMessage) String

func (x *GetInfoRequestMessage) String() string

type GetInfoResponseMessage

type GetInfoResponseMessage struct {
	P2PId         string    `protobuf:"bytes,1,opt,name=p2pId,proto3" json:"p2pId,omitempty"`
	MempoolSize   uint64    `protobuf:"varint,2,opt,name=mempoolSize,proto3" json:"mempoolSize,omitempty"`
	ServerVersion string    `protobuf:"bytes,3,opt,name=serverVersion,proto3" json:"serverVersion,omitempty"`
	IsUtxoIndexed bool      `protobuf:"varint,4,opt,name=isUtxoIndexed,proto3" json:"isUtxoIndexed,omitempty"`
	IsSynced      bool      `protobuf:"varint,5,opt,name=isSynced,proto3" json:"isSynced,omitempty"`
	Error         *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetInfoResponseMessage) Descriptor deprecated

func (*GetInfoResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetInfoResponseMessage.ProtoReflect.Descriptor instead.

func (*GetInfoResponseMessage) GetError

func (x *GetInfoResponseMessage) GetError() *RPCError

func (*GetInfoResponseMessage) GetIsSynced

func (x *GetInfoResponseMessage) GetIsSynced() bool

func (*GetInfoResponseMessage) GetIsUtxoIndexed

func (x *GetInfoResponseMessage) GetIsUtxoIndexed() bool

func (*GetInfoResponseMessage) GetMempoolSize

func (x *GetInfoResponseMessage) GetMempoolSize() uint64

func (*GetInfoResponseMessage) GetP2PId

func (x *GetInfoResponseMessage) GetP2PId() string

func (*GetInfoResponseMessage) GetServerVersion

func (x *GetInfoResponseMessage) GetServerVersion() string

func (*GetInfoResponseMessage) ProtoMessage

func (*GetInfoResponseMessage) ProtoMessage()

func (*GetInfoResponseMessage) ProtoReflect

func (x *GetInfoResponseMessage) ProtoReflect() protoreflect.Message

func (*GetInfoResponseMessage) Reset

func (x *GetInfoResponseMessage) Reset()

func (*GetInfoResponseMessage) String

func (x *GetInfoResponseMessage) String() string

type GetSelectedTipHashRequestMessage

type GetSelectedTipHashRequestMessage struct {
	// contains filtered or unexported fields
}

GetSelectedTipHashRequestMessage requests the hash of the current virtual's selected parent.

func (*GetSelectedTipHashRequestMessage) Descriptor deprecated

func (*GetSelectedTipHashRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetSelectedTipHashRequestMessage.ProtoReflect.Descriptor instead.

func (*GetSelectedTipHashRequestMessage) ProtoMessage

func (*GetSelectedTipHashRequestMessage) ProtoMessage()

func (*GetSelectedTipHashRequestMessage) ProtoReflect

func (*GetSelectedTipHashRequestMessage) Reset

func (*GetSelectedTipHashRequestMessage) String

type GetSelectedTipHashResponseMessage

type GetSelectedTipHashResponseMessage struct {
	SelectedTipHash string    `protobuf:"bytes,1,opt,name=selectedTipHash,proto3" json:"selectedTipHash,omitempty"`
	Error           *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSelectedTipHashResponseMessage) Descriptor deprecated

func (*GetSelectedTipHashResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetSelectedTipHashResponseMessage.ProtoReflect.Descriptor instead.

func (*GetSelectedTipHashResponseMessage) GetError

func (*GetSelectedTipHashResponseMessage) GetSelectedTipHash

func (x *GetSelectedTipHashResponseMessage) GetSelectedTipHash() string

func (*GetSelectedTipHashResponseMessage) ProtoMessage

func (*GetSelectedTipHashResponseMessage) ProtoMessage()

func (*GetSelectedTipHashResponseMessage) ProtoReflect

func (*GetSelectedTipHashResponseMessage) Reset

func (*GetSelectedTipHashResponseMessage) String

type GetUtxosByAddressesRequestMessage

type GetUtxosByAddressesRequestMessage struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

GetUtxosByAddressesRequestMessage requests all current UTXOs for the given kaspad addresses

This call is only available when this kaspad was started with `--utxoindex`

func (*GetUtxosByAddressesRequestMessage) Descriptor deprecated

func (*GetUtxosByAddressesRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetUtxosByAddressesRequestMessage.ProtoReflect.Descriptor instead.

func (*GetUtxosByAddressesRequestMessage) GetAddresses

func (x *GetUtxosByAddressesRequestMessage) GetAddresses() []string

func (*GetUtxosByAddressesRequestMessage) ProtoMessage

func (*GetUtxosByAddressesRequestMessage) ProtoMessage()

func (*GetUtxosByAddressesRequestMessage) ProtoReflect

func (*GetUtxosByAddressesRequestMessage) Reset

func (*GetUtxosByAddressesRequestMessage) String

type GetUtxosByAddressesResponseMessage

type GetUtxosByAddressesResponseMessage struct {
	Entries []*UtxosByAddressesEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	Error   *RPCError                `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUtxosByAddressesResponseMessage) Descriptor deprecated

func (*GetUtxosByAddressesResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use GetUtxosByAddressesResponseMessage.ProtoReflect.Descriptor instead.

func (*GetUtxosByAddressesResponseMessage) GetEntries

func (*GetUtxosByAddressesResponseMessage) GetError

func (*GetUtxosByAddressesResponseMessage) ProtoMessage

func (*GetUtxosByAddressesResponseMessage) ProtoMessage()

func (*GetUtxosByAddressesResponseMessage) ProtoReflect

func (*GetUtxosByAddressesResponseMessage) Reset

func (*GetUtxosByAddressesResponseMessage) String

type GetVirtualSelectedParentChainFromBlockRequestMessage

type GetVirtualSelectedParentChainFromBlockRequestMessage struct {
	StartHash                     string `protobuf:"bytes,1,opt,name=startHash,proto3" json:"startHash,omitempty"`
	IncludeAcceptedTransactionIds bool   `protobuf:"varint,2,opt,name=includeAcceptedTransactionIds,proto3" json:"includeAcceptedTransactionIds,omitempty"`
	// contains filtered or unexported fields
}

GetVirtualSelectedParentChainFromBlockRequestMessage requests the virtual selected parent chain from some startHash to this kaspad's current virtual

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) Descriptor deprecated

Deprecated: Use GetVirtualSelectedParentChainFromBlockRequestMessage.ProtoReflect.Descriptor instead.

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) GetIncludeAcceptedTransactionIds

func (x *GetVirtualSelectedParentChainFromBlockRequestMessage) GetIncludeAcceptedTransactionIds() bool

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) GetStartHash

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) ProtoMessage

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) ProtoReflect

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) Reset

func (*GetVirtualSelectedParentChainFromBlockRequestMessage) String

type GetVirtualSelectedParentChainFromBlockResponseMessage

type GetVirtualSelectedParentChainFromBlockResponseMessage struct {

	// The chain blocks that were removed, in high-to-low order
	RemovedChainBlockHashes []string `protobuf:"bytes,1,rep,name=removedChainBlockHashes,proto3" json:"removedChainBlockHashes,omitempty"`
	// The chain blocks that were added, in low-to-high order
	AddedChainBlockHashes []string `protobuf:"bytes,3,rep,name=addedChainBlockHashes,proto3" json:"addedChainBlockHashes,omitempty"`
	// The transactions accepted by each block in addedChainBlockHashes.
	// Will be filled only if `includeAcceptedTransactionIds = true` in the request.
	AcceptedTransactionIds []*AcceptedTransactionIds `protobuf:"bytes,2,rep,name=acceptedTransactionIds,proto3" json:"acceptedTransactionIds,omitempty"`
	Error                  *RPCError                 `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) Descriptor deprecated

Deprecated: Use GetVirtualSelectedParentChainFromBlockResponseMessage.ProtoReflect.Descriptor instead.

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) GetAcceptedTransactionIds

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) GetAddedChainBlockHashes

func (x *GetVirtualSelectedParentChainFromBlockResponseMessage) GetAddedChainBlockHashes() []string

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) GetError

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) GetRemovedChainBlockHashes

func (x *GetVirtualSelectedParentChainFromBlockResponseMessage) GetRemovedChainBlockHashes() []string

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) ProtoMessage

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) ProtoReflect

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) Reset

func (*GetVirtualSelectedParentChainFromBlockResponseMessage) String

type KaspadMessage

type KaspadMessage struct {

	// Types that are assignable to Payload:
	//
	//	*KaspadMessage_SubmitBlockRequest
	//	*KaspadMessage_SubmitBlockResponse
	//	*KaspadMessage_GetBlockTemplateRequest
	//	*KaspadMessage_GetBlockTemplateResponse
	//	*KaspadMessage_GetSelectedTipHashRequest
	//	*KaspadMessage_GetSelectedTipHashResponse
	//	*KaspadMessage_SubmitTransactionRequest
	//	*KaspadMessage_SubmitTransactionResponse
	//	*KaspadMessage_GetBlockRequest
	//	*KaspadMessage_GetBlockResponse
	//	*KaspadMessage_GetVirtualSelectedParentChainFromBlockRequest
	//	*KaspadMessage_GetVirtualSelectedParentChainFromBlockResponse
	//	*KaspadMessage_GetBlocksRequest
	//	*KaspadMessage_GetBlocksResponse
	//	*KaspadMessage_GetUtxosByAddressesRequest
	//	*KaspadMessage_GetUtxosByAddressesResponse
	//	*KaspadMessage_GetInfoRequest
	//	*KaspadMessage_GetInfoResponse
	//	*KaspadMessage_GetBalanceByAddressRequest
	//	*KaspadMessage_GetBalanceByAddressResponse
	Payload isKaspadMessage_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*KaspadMessage) Descriptor deprecated

func (*KaspadMessage) Descriptor() ([]byte, []int)

Deprecated: Use KaspadMessage.ProtoReflect.Descriptor instead.

func (*KaspadMessage) GetGetBalanceByAddressRequest

func (x *KaspadMessage) GetGetBalanceByAddressRequest() *GetBalanceByAddressRequestMessage

func (*KaspadMessage) GetGetBalanceByAddressResponse

func (x *KaspadMessage) GetGetBalanceByAddressResponse() *GetBalanceByAddressResponseMessage

func (*KaspadMessage) GetGetBlockRequest

func (x *KaspadMessage) GetGetBlockRequest() *GetBlockRequestMessage

func (*KaspadMessage) GetGetBlockResponse

func (x *KaspadMessage) GetGetBlockResponse() *GetBlockResponseMessage

func (*KaspadMessage) GetGetBlockTemplateRequest

func (x *KaspadMessage) GetGetBlockTemplateRequest() *GetBlockTemplateRequestMessage

func (*KaspadMessage) GetGetBlockTemplateResponse

func (x *KaspadMessage) GetGetBlockTemplateResponse() *GetBlockTemplateResponseMessage

func (*KaspadMessage) GetGetBlocksRequest

func (x *KaspadMessage) GetGetBlocksRequest() *GetBlocksRequestMessage

func (*KaspadMessage) GetGetBlocksResponse

func (x *KaspadMessage) GetGetBlocksResponse() *GetBlocksResponseMessage

func (*KaspadMessage) GetGetInfoRequest

func (x *KaspadMessage) GetGetInfoRequest() *GetInfoRequestMessage

func (*KaspadMessage) GetGetInfoResponse

func (x *KaspadMessage) GetGetInfoResponse() *GetInfoResponseMessage

func (*KaspadMessage) GetGetSelectedTipHashRequest

func (x *KaspadMessage) GetGetSelectedTipHashRequest() *GetSelectedTipHashRequestMessage

func (*KaspadMessage) GetGetSelectedTipHashResponse

func (x *KaspadMessage) GetGetSelectedTipHashResponse() *GetSelectedTipHashResponseMessage

func (*KaspadMessage) GetGetUtxosByAddressesRequest

func (x *KaspadMessage) GetGetUtxosByAddressesRequest() *GetUtxosByAddressesRequestMessage

func (*KaspadMessage) GetGetUtxosByAddressesResponse

func (x *KaspadMessage) GetGetUtxosByAddressesResponse() *GetUtxosByAddressesResponseMessage

func (*KaspadMessage) GetGetVirtualSelectedParentChainFromBlockRequest

func (x *KaspadMessage) GetGetVirtualSelectedParentChainFromBlockRequest() *GetVirtualSelectedParentChainFromBlockRequestMessage

func (*KaspadMessage) GetGetVirtualSelectedParentChainFromBlockResponse

func (x *KaspadMessage) GetGetVirtualSelectedParentChainFromBlockResponse() *GetVirtualSelectedParentChainFromBlockResponseMessage

func (*KaspadMessage) GetPayload

func (m *KaspadMessage) GetPayload() isKaspadMessage_Payload

func (*KaspadMessage) GetSubmitBlockRequest

func (x *KaspadMessage) GetSubmitBlockRequest() *SubmitBlockRequestMessage

func (*KaspadMessage) GetSubmitBlockResponse

func (x *KaspadMessage) GetSubmitBlockResponse() *SubmitBlockResponseMessage

func (*KaspadMessage) GetSubmitTransactionRequest

func (x *KaspadMessage) GetSubmitTransactionRequest() *SubmitTransactionRequestMessage

func (*KaspadMessage) GetSubmitTransactionResponse

func (x *KaspadMessage) GetSubmitTransactionResponse() *SubmitTransactionResponseMessage

func (*KaspadMessage) ProtoMessage

func (*KaspadMessage) ProtoMessage()

func (*KaspadMessage) ProtoReflect

func (x *KaspadMessage) ProtoReflect() protoreflect.Message

func (*KaspadMessage) Reset

func (x *KaspadMessage) Reset()

func (*KaspadMessage) String

func (x *KaspadMessage) String() string

type KaspadMessage_GetBalanceByAddressRequest

type KaspadMessage_GetBalanceByAddressRequest struct {
	GetBalanceByAddressRequest *GetBalanceByAddressRequestMessage `protobuf:"bytes,1077,opt,name=getBalanceByAddressRequest,proto3,oneof"`
}

type KaspadMessage_GetBalanceByAddressResponse

type KaspadMessage_GetBalanceByAddressResponse struct {
	GetBalanceByAddressResponse *GetBalanceByAddressResponseMessage `protobuf:"bytes,1078,opt,name=getBalanceByAddressResponse,proto3,oneof"`
}

type KaspadMessage_GetBlockRequest

type KaspadMessage_GetBlockRequest struct {
	GetBlockRequest *GetBlockRequestMessage `protobuf:"bytes,1025,opt,name=getBlockRequest,proto3,oneof"`
}

type KaspadMessage_GetBlockResponse

type KaspadMessage_GetBlockResponse struct {
	GetBlockResponse *GetBlockResponseMessage `protobuf:"bytes,1026,opt,name=getBlockResponse,proto3,oneof"`
}

type KaspadMessage_GetBlockTemplateRequest

type KaspadMessage_GetBlockTemplateRequest struct {
	GetBlockTemplateRequest *GetBlockTemplateRequestMessage `protobuf:"bytes,1005,opt,name=getBlockTemplateRequest,proto3,oneof"`
}

type KaspadMessage_GetBlockTemplateResponse

type KaspadMessage_GetBlockTemplateResponse struct {
	GetBlockTemplateResponse *GetBlockTemplateResponseMessage `protobuf:"bytes,1006,opt,name=getBlockTemplateResponse,proto3,oneof"`
}

type KaspadMessage_GetBlocksRequest

type KaspadMessage_GetBlocksRequest struct {
	GetBlocksRequest *GetBlocksRequestMessage `protobuf:"bytes,1031,opt,name=getBlocksRequest,proto3,oneof"`
}

type KaspadMessage_GetBlocksResponse

type KaspadMessage_GetBlocksResponse struct {
	GetBlocksResponse *GetBlocksResponseMessage `protobuf:"bytes,1032,opt,name=getBlocksResponse,proto3,oneof"`
}

type KaspadMessage_GetInfoRequest

type KaspadMessage_GetInfoRequest struct {
	GetInfoRequest *GetInfoRequestMessage `protobuf:"bytes,1063,opt,name=getInfoRequest,proto3,oneof"`
}

type KaspadMessage_GetInfoResponse

type KaspadMessage_GetInfoResponse struct {
	GetInfoResponse *GetInfoResponseMessage `protobuf:"bytes,1064,opt,name=getInfoResponse,proto3,oneof"`
}

type KaspadMessage_GetSelectedTipHashRequest

type KaspadMessage_GetSelectedTipHashRequest struct {
	GetSelectedTipHashRequest *GetSelectedTipHashRequestMessage `protobuf:"bytes,1012,opt,name=getSelectedTipHashRequest,proto3,oneof"`
}

type KaspadMessage_GetSelectedTipHashResponse

type KaspadMessage_GetSelectedTipHashResponse struct {
	GetSelectedTipHashResponse *GetSelectedTipHashResponseMessage `protobuf:"bytes,1013,opt,name=getSelectedTipHashResponse,proto3,oneof"`
}

type KaspadMessage_GetUtxosByAddressesRequest

type KaspadMessage_GetUtxosByAddressesRequest struct {
	GetUtxosByAddressesRequest *GetUtxosByAddressesRequestMessage `protobuf:"bytes,1052,opt,name=getUtxosByAddressesRequest,proto3,oneof"`
}

type KaspadMessage_GetUtxosByAddressesResponse

type KaspadMessage_GetUtxosByAddressesResponse struct {
	GetUtxosByAddressesResponse *GetUtxosByAddressesResponseMessage `protobuf:"bytes,1053,opt,name=getUtxosByAddressesResponse,proto3,oneof"`
}

type KaspadMessage_GetVirtualSelectedParentChainFromBlockRequest

type KaspadMessage_GetVirtualSelectedParentChainFromBlockRequest struct {
	GetVirtualSelectedParentChainFromBlockRequest *GetVirtualSelectedParentChainFromBlockRequestMessage `protobuf:"bytes,1029,opt,name=getVirtualSelectedParentChainFromBlockRequest,proto3,oneof"`
}

type KaspadMessage_GetVirtualSelectedParentChainFromBlockResponse

type KaspadMessage_GetVirtualSelectedParentChainFromBlockResponse struct {
	GetVirtualSelectedParentChainFromBlockResponse *GetVirtualSelectedParentChainFromBlockResponseMessage `protobuf:"bytes,1030,opt,name=getVirtualSelectedParentChainFromBlockResponse,proto3,oneof"`
}

type KaspadMessage_SubmitBlockRequest

type KaspadMessage_SubmitBlockRequest struct {
	SubmitBlockRequest *SubmitBlockRequestMessage `protobuf:"bytes,1003,opt,name=submitBlockRequest,proto3,oneof"`
}

type KaspadMessage_SubmitBlockResponse

type KaspadMessage_SubmitBlockResponse struct {
	SubmitBlockResponse *SubmitBlockResponseMessage `protobuf:"bytes,1004,opt,name=submitBlockResponse,proto3,oneof"`
}

type KaspadMessage_SubmitTransactionRequest

type KaspadMessage_SubmitTransactionRequest struct {
	SubmitTransactionRequest *SubmitTransactionRequestMessage `protobuf:"bytes,1020,opt,name=submitTransactionRequest,proto3,oneof"`
}

type KaspadMessage_SubmitTransactionResponse

type KaspadMessage_SubmitTransactionResponse struct {
	SubmitTransactionResponse *SubmitTransactionResponseMessage `protobuf:"bytes,1021,opt,name=submitTransactionResponse,proto3,oneof"`
}

type RPCClient

type RPCClient interface {
	MessageStream(ctx context.Context, opts ...grpc.CallOption) (RPC_MessageStreamClient, error)
}

RPCClient is the client API for RPC 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 NewRPCClient

func NewRPCClient(cc grpc.ClientConnInterface) RPCClient

type RPCError

type RPCError struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

RPCError represents a generic non-internal error.

Receivers of any ResponseMessage are expected to check whether its error field is not null.

func (*RPCError) Descriptor deprecated

func (*RPCError) Descriptor() ([]byte, []int)

Deprecated: Use RPCError.ProtoReflect.Descriptor instead.

func (*RPCError) GetMessage

func (x *RPCError) GetMessage() string

func (*RPCError) ProtoMessage

func (*RPCError) ProtoMessage()

func (*RPCError) ProtoReflect

func (x *RPCError) ProtoReflect() protoreflect.Message

func (*RPCError) Reset

func (x *RPCError) Reset()

func (*RPCError) String

func (x *RPCError) String() string

type RPCServer

type RPCServer interface {
	MessageStream(RPC_MessageStreamServer) error
	// contains filtered or unexported methods
}

RPCServer is the server API for RPC service. All implementations must embed UnimplementedRPCServer for forward compatibility

type RPC_MessageStreamClient

type RPC_MessageStreamClient interface {
	Send(*KaspadMessage) error
	Recv() (*KaspadMessage, error)
	grpc.ClientStream
}

type RPC_MessageStreamServer

type RPC_MessageStreamServer interface {
	Send(*KaspadMessage) error
	Recv() (*KaspadMessage, error)
	grpc.ServerStream
}

type RpcBlock

type RpcBlock struct {
	Header       *RpcBlockHeader      `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Transactions []*RpcTransaction    `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	VerboseData  *RpcBlockVerboseData `protobuf:"bytes,3,opt,name=verboseData,proto3" json:"verboseData,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcBlock) Descriptor deprecated

func (*RpcBlock) Descriptor() ([]byte, []int)

Deprecated: Use RpcBlock.ProtoReflect.Descriptor instead.

func (*RpcBlock) GetHeader

func (x *RpcBlock) GetHeader() *RpcBlockHeader

func (*RpcBlock) GetTransactions

func (x *RpcBlock) GetTransactions() []*RpcTransaction

func (*RpcBlock) GetVerboseData

func (x *RpcBlock) GetVerboseData() *RpcBlockVerboseData

func (*RpcBlock) ProtoMessage

func (*RpcBlock) ProtoMessage()

func (*RpcBlock) ProtoReflect

func (x *RpcBlock) ProtoReflect() protoreflect.Message

func (*RpcBlock) Reset

func (x *RpcBlock) Reset()

func (*RpcBlock) String

func (x *RpcBlock) String() string

type RpcBlockHeader

type RpcBlockHeader struct {
	Version              uint32                  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Parents              []*RpcBlockLevelParents `protobuf:"bytes,12,rep,name=parents,proto3" json:"parents,omitempty"`
	HashMerkleRoot       string                  `protobuf:"bytes,3,opt,name=hashMerkleRoot,proto3" json:"hashMerkleRoot,omitempty"`
	AcceptedIdMerkleRoot string                  `protobuf:"bytes,4,opt,name=acceptedIdMerkleRoot,proto3" json:"acceptedIdMerkleRoot,omitempty"`
	UtxoCommitment       string                  `protobuf:"bytes,5,opt,name=utxoCommitment,proto3" json:"utxoCommitment,omitempty"`
	Timestamp            int64                   `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Bits                 uint32                  `protobuf:"varint,7,opt,name=bits,proto3" json:"bits,omitempty"`
	Nonce                uint64                  `protobuf:"varint,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	DaaScore             uint64                  `protobuf:"varint,9,opt,name=daaScore,proto3" json:"daaScore,omitempty"`
	BlueWork             string                  `protobuf:"bytes,10,opt,name=blueWork,proto3" json:"blueWork,omitempty"`
	PruningPoint         string                  `protobuf:"bytes,14,opt,name=pruningPoint,proto3" json:"pruningPoint,omitempty"`
	BlueScore            uint64                  `protobuf:"varint,13,opt,name=blueScore,proto3" json:"blueScore,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcBlockHeader) Descriptor deprecated

func (*RpcBlockHeader) Descriptor() ([]byte, []int)

Deprecated: Use RpcBlockHeader.ProtoReflect.Descriptor instead.

func (*RpcBlockHeader) GetAcceptedIdMerkleRoot

func (x *RpcBlockHeader) GetAcceptedIdMerkleRoot() string

func (*RpcBlockHeader) GetBits

func (x *RpcBlockHeader) GetBits() uint32

func (*RpcBlockHeader) GetBlueScore

func (x *RpcBlockHeader) GetBlueScore() uint64

func (*RpcBlockHeader) GetBlueWork

func (x *RpcBlockHeader) GetBlueWork() string

func (*RpcBlockHeader) GetDaaScore

func (x *RpcBlockHeader) GetDaaScore() uint64

func (*RpcBlockHeader) GetHashMerkleRoot

func (x *RpcBlockHeader) GetHashMerkleRoot() string

func (*RpcBlockHeader) GetNonce

func (x *RpcBlockHeader) GetNonce() uint64

func (*RpcBlockHeader) GetParents

func (x *RpcBlockHeader) GetParents() []*RpcBlockLevelParents

func (*RpcBlockHeader) GetPruningPoint

func (x *RpcBlockHeader) GetPruningPoint() string

func (*RpcBlockHeader) GetTimestamp

func (x *RpcBlockHeader) GetTimestamp() int64

func (*RpcBlockHeader) GetUtxoCommitment

func (x *RpcBlockHeader) GetUtxoCommitment() string

func (*RpcBlockHeader) GetVersion

func (x *RpcBlockHeader) GetVersion() uint32

func (*RpcBlockHeader) ProtoMessage

func (*RpcBlockHeader) ProtoMessage()

func (*RpcBlockHeader) ProtoReflect

func (x *RpcBlockHeader) ProtoReflect() protoreflect.Message

func (*RpcBlockHeader) Reset

func (x *RpcBlockHeader) Reset()

func (*RpcBlockHeader) String

func (x *RpcBlockHeader) String() string

type RpcBlockLevelParents

type RpcBlockLevelParents struct {
	ParentHashes []string `protobuf:"bytes,1,rep,name=parentHashes,proto3" json:"parentHashes,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcBlockLevelParents) Descriptor deprecated

func (*RpcBlockLevelParents) Descriptor() ([]byte, []int)

Deprecated: Use RpcBlockLevelParents.ProtoReflect.Descriptor instead.

func (*RpcBlockLevelParents) GetParentHashes

func (x *RpcBlockLevelParents) GetParentHashes() []string

func (*RpcBlockLevelParents) ProtoMessage

func (*RpcBlockLevelParents) ProtoMessage()

func (*RpcBlockLevelParents) ProtoReflect

func (x *RpcBlockLevelParents) ProtoReflect() protoreflect.Message

func (*RpcBlockLevelParents) Reset

func (x *RpcBlockLevelParents) Reset()

func (*RpcBlockLevelParents) String

func (x *RpcBlockLevelParents) String() string

type RpcBlockVerboseData

type RpcBlockVerboseData struct {
	Hash                string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Difficulty          float64  `protobuf:"fixed64,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	SelectedParentHash  string   `protobuf:"bytes,13,opt,name=selectedParentHash,proto3" json:"selectedParentHash,omitempty"`
	TransactionIds      []string `protobuf:"bytes,14,rep,name=transactionIds,proto3" json:"transactionIds,omitempty"`
	IsHeaderOnly        bool     `protobuf:"varint,15,opt,name=isHeaderOnly,proto3" json:"isHeaderOnly,omitempty"`
	BlueScore           uint64   `protobuf:"varint,16,opt,name=blueScore,proto3" json:"blueScore,omitempty"`
	ChildrenHashes      []string `protobuf:"bytes,17,rep,name=childrenHashes,proto3" json:"childrenHashes,omitempty"`
	MergeSetBluesHashes []string `protobuf:"bytes,18,rep,name=mergeSetBluesHashes,proto3" json:"mergeSetBluesHashes,omitempty"`
	MergeSetRedsHashes  []string `protobuf:"bytes,19,rep,name=mergeSetRedsHashes,proto3" json:"mergeSetRedsHashes,omitempty"`
	IsChainBlock        bool     `protobuf:"varint,20,opt,name=isChainBlock,proto3" json:"isChainBlock,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcBlockVerboseData) Descriptor deprecated

func (*RpcBlockVerboseData) Descriptor() ([]byte, []int)

Deprecated: Use RpcBlockVerboseData.ProtoReflect.Descriptor instead.

func (*RpcBlockVerboseData) GetBlueScore

func (x *RpcBlockVerboseData) GetBlueScore() uint64

func (*RpcBlockVerboseData) GetChildrenHashes

func (x *RpcBlockVerboseData) GetChildrenHashes() []string

func (*RpcBlockVerboseData) GetDifficulty

func (x *RpcBlockVerboseData) GetDifficulty() float64

func (*RpcBlockVerboseData) GetHash

func (x *RpcBlockVerboseData) GetHash() string

func (*RpcBlockVerboseData) GetIsChainBlock

func (x *RpcBlockVerboseData) GetIsChainBlock() bool

func (*RpcBlockVerboseData) GetIsHeaderOnly

func (x *RpcBlockVerboseData) GetIsHeaderOnly() bool

func (*RpcBlockVerboseData) GetMergeSetBluesHashes

func (x *RpcBlockVerboseData) GetMergeSetBluesHashes() []string

func (*RpcBlockVerboseData) GetMergeSetRedsHashes

func (x *RpcBlockVerboseData) GetMergeSetRedsHashes() []string

func (*RpcBlockVerboseData) GetSelectedParentHash

func (x *RpcBlockVerboseData) GetSelectedParentHash() string

func (*RpcBlockVerboseData) GetTransactionIds

func (x *RpcBlockVerboseData) GetTransactionIds() []string

func (*RpcBlockVerboseData) ProtoMessage

func (*RpcBlockVerboseData) ProtoMessage()

func (*RpcBlockVerboseData) ProtoReflect

func (x *RpcBlockVerboseData) ProtoReflect() protoreflect.Message

func (*RpcBlockVerboseData) Reset

func (x *RpcBlockVerboseData) Reset()

func (*RpcBlockVerboseData) String

func (x *RpcBlockVerboseData) String() string

type RpcOutpoint

type RpcOutpoint struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"`
	Index         uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcOutpoint) Descriptor deprecated

func (*RpcOutpoint) Descriptor() ([]byte, []int)

Deprecated: Use RpcOutpoint.ProtoReflect.Descriptor instead.

func (*RpcOutpoint) GetIndex

func (x *RpcOutpoint) GetIndex() uint32

func (*RpcOutpoint) GetTransactionId

func (x *RpcOutpoint) GetTransactionId() string

func (*RpcOutpoint) ProtoMessage

func (*RpcOutpoint) ProtoMessage()

func (*RpcOutpoint) ProtoReflect

func (x *RpcOutpoint) ProtoReflect() protoreflect.Message

func (*RpcOutpoint) Reset

func (x *RpcOutpoint) Reset()

func (*RpcOutpoint) String

func (x *RpcOutpoint) String() string

type RpcScriptPublicKey

type RpcScriptPublicKey struct {
	Version         uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	ScriptPublicKey string `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcScriptPublicKey) Descriptor deprecated

func (*RpcScriptPublicKey) Descriptor() ([]byte, []int)

Deprecated: Use RpcScriptPublicKey.ProtoReflect.Descriptor instead.

func (*RpcScriptPublicKey) GetScriptPublicKey

func (x *RpcScriptPublicKey) GetScriptPublicKey() string

func (*RpcScriptPublicKey) GetVersion

func (x *RpcScriptPublicKey) GetVersion() uint32

func (*RpcScriptPublicKey) ProtoMessage

func (*RpcScriptPublicKey) ProtoMessage()

func (*RpcScriptPublicKey) ProtoReflect

func (x *RpcScriptPublicKey) ProtoReflect() protoreflect.Message

func (*RpcScriptPublicKey) Reset

func (x *RpcScriptPublicKey) Reset()

func (*RpcScriptPublicKey) String

func (x *RpcScriptPublicKey) String() string

type RpcTransaction

type RpcTransaction struct {
	Version      uint32                     `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Inputs       []*RpcTransactionInput     `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs      []*RpcTransactionOutput    `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"`
	LockTime     uint64                     `protobuf:"varint,4,opt,name=lockTime,proto3" json:"lockTime,omitempty"`
	SubnetworkId string                     `protobuf:"bytes,5,opt,name=subnetworkId,proto3" json:"subnetworkId,omitempty"`
	Gas          uint64                     `protobuf:"varint,6,opt,name=gas,proto3" json:"gas,omitempty"`
	Payload      string                     `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"`
	VerboseData  *RpcTransactionVerboseData `protobuf:"bytes,9,opt,name=verboseData,proto3" json:"verboseData,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcTransaction) Descriptor deprecated

func (*RpcTransaction) Descriptor() ([]byte, []int)

Deprecated: Use RpcTransaction.ProtoReflect.Descriptor instead.

func (*RpcTransaction) GetGas

func (x *RpcTransaction) GetGas() uint64

func (*RpcTransaction) GetInputs

func (x *RpcTransaction) GetInputs() []*RpcTransactionInput

func (*RpcTransaction) GetLockTime

func (x *RpcTransaction) GetLockTime() uint64

func (*RpcTransaction) GetOutputs

func (x *RpcTransaction) GetOutputs() []*RpcTransactionOutput

func (*RpcTransaction) GetPayload

func (x *RpcTransaction) GetPayload() string

func (*RpcTransaction) GetSubnetworkId

func (x *RpcTransaction) GetSubnetworkId() string

func (*RpcTransaction) GetVerboseData

func (x *RpcTransaction) GetVerboseData() *RpcTransactionVerboseData

func (*RpcTransaction) GetVersion

func (x *RpcTransaction) GetVersion() uint32

func (*RpcTransaction) ProtoMessage

func (*RpcTransaction) ProtoMessage()

func (*RpcTransaction) ProtoReflect

func (x *RpcTransaction) ProtoReflect() protoreflect.Message

func (*RpcTransaction) Reset

func (x *RpcTransaction) Reset()

func (*RpcTransaction) String

func (x *RpcTransaction) String() string

type RpcTransactionInput

type RpcTransactionInput struct {
	PreviousOutpoint *RpcOutpoint                    `protobuf:"bytes,1,opt,name=previousOutpoint,proto3" json:"previousOutpoint,omitempty"`
	SignatureScript  string                          `protobuf:"bytes,2,opt,name=signatureScript,proto3" json:"signatureScript,omitempty"`
	Sequence         uint64                          `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	SigOpCount       uint32                          `protobuf:"varint,5,opt,name=sigOpCount,proto3" json:"sigOpCount,omitempty"`
	VerboseData      *RpcTransactionInputVerboseData `protobuf:"bytes,4,opt,name=verboseData,proto3" json:"verboseData,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcTransactionInput) Descriptor deprecated

func (*RpcTransactionInput) Descriptor() ([]byte, []int)

Deprecated: Use RpcTransactionInput.ProtoReflect.Descriptor instead.

func (*RpcTransactionInput) GetPreviousOutpoint

func (x *RpcTransactionInput) GetPreviousOutpoint() *RpcOutpoint

func (*RpcTransactionInput) GetSequence

func (x *RpcTransactionInput) GetSequence() uint64

func (*RpcTransactionInput) GetSigOpCount

func (x *RpcTransactionInput) GetSigOpCount() uint32

func (*RpcTransactionInput) GetSignatureScript

func (x *RpcTransactionInput) GetSignatureScript() string

func (*RpcTransactionInput) GetVerboseData

func (*RpcTransactionInput) ProtoMessage

func (*RpcTransactionInput) ProtoMessage()

func (*RpcTransactionInput) ProtoReflect

func (x *RpcTransactionInput) ProtoReflect() protoreflect.Message

func (*RpcTransactionInput) Reset

func (x *RpcTransactionInput) Reset()

func (*RpcTransactionInput) String

func (x *RpcTransactionInput) String() string

type RpcTransactionInputVerboseData

type RpcTransactionInputVerboseData struct {
	// contains filtered or unexported fields
}

func (*RpcTransactionInputVerboseData) Descriptor deprecated

func (*RpcTransactionInputVerboseData) Descriptor() ([]byte, []int)

Deprecated: Use RpcTransactionInputVerboseData.ProtoReflect.Descriptor instead.

func (*RpcTransactionInputVerboseData) ProtoMessage

func (*RpcTransactionInputVerboseData) ProtoMessage()

func (*RpcTransactionInputVerboseData) ProtoReflect

func (*RpcTransactionInputVerboseData) Reset

func (x *RpcTransactionInputVerboseData) Reset()

func (*RpcTransactionInputVerboseData) String

type RpcTransactionOutput

type RpcTransactionOutput struct {
	Amount          uint64                           `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	ScriptPublicKey *RpcScriptPublicKey              `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"`
	VerboseData     *RpcTransactionOutputVerboseData `protobuf:"bytes,3,opt,name=verboseData,proto3" json:"verboseData,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcTransactionOutput) Descriptor deprecated

func (*RpcTransactionOutput) Descriptor() ([]byte, []int)

Deprecated: Use RpcTransactionOutput.ProtoReflect.Descriptor instead.

func (*RpcTransactionOutput) GetAmount

func (x *RpcTransactionOutput) GetAmount() uint64

func (*RpcTransactionOutput) GetScriptPublicKey

func (x *RpcTransactionOutput) GetScriptPublicKey() *RpcScriptPublicKey

func (*RpcTransactionOutput) GetVerboseData

func (*RpcTransactionOutput) ProtoMessage

func (*RpcTransactionOutput) ProtoMessage()

func (*RpcTransactionOutput) ProtoReflect

func (x *RpcTransactionOutput) ProtoReflect() protoreflect.Message

func (*RpcTransactionOutput) Reset

func (x *RpcTransactionOutput) Reset()

func (*RpcTransactionOutput) String

func (x *RpcTransactionOutput) String() string

type RpcTransactionOutputVerboseData

type RpcTransactionOutputVerboseData struct {
	ScriptPublicKeyType    string `protobuf:"bytes,5,opt,name=scriptPublicKeyType,proto3" json:"scriptPublicKeyType,omitempty"`
	ScriptPublicKeyAddress string `protobuf:"bytes,6,opt,name=scriptPublicKeyAddress,proto3" json:"scriptPublicKeyAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcTransactionOutputVerboseData) Descriptor deprecated

func (*RpcTransactionOutputVerboseData) Descriptor() ([]byte, []int)

Deprecated: Use RpcTransactionOutputVerboseData.ProtoReflect.Descriptor instead.

func (*RpcTransactionOutputVerboseData) GetScriptPublicKeyAddress

func (x *RpcTransactionOutputVerboseData) GetScriptPublicKeyAddress() string

func (*RpcTransactionOutputVerboseData) GetScriptPublicKeyType

func (x *RpcTransactionOutputVerboseData) GetScriptPublicKeyType() string

func (*RpcTransactionOutputVerboseData) ProtoMessage

func (*RpcTransactionOutputVerboseData) ProtoMessage()

func (*RpcTransactionOutputVerboseData) ProtoReflect

func (*RpcTransactionOutputVerboseData) Reset

func (*RpcTransactionOutputVerboseData) String

type RpcTransactionVerboseData

type RpcTransactionVerboseData struct {
	TransactionId string `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"`
	Hash          string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Mass          uint64 `protobuf:"varint,4,opt,name=mass,proto3" json:"mass,omitempty"`
	BlockHash     string `protobuf:"bytes,12,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	BlockTime     uint64 `protobuf:"varint,14,opt,name=blockTime,proto3" json:"blockTime,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcTransactionVerboseData) Descriptor deprecated

func (*RpcTransactionVerboseData) Descriptor() ([]byte, []int)

Deprecated: Use RpcTransactionVerboseData.ProtoReflect.Descriptor instead.

func (*RpcTransactionVerboseData) GetBlockHash

func (x *RpcTransactionVerboseData) GetBlockHash() string

func (*RpcTransactionVerboseData) GetBlockTime

func (x *RpcTransactionVerboseData) GetBlockTime() uint64

func (*RpcTransactionVerboseData) GetHash

func (x *RpcTransactionVerboseData) GetHash() string

func (*RpcTransactionVerboseData) GetMass

func (x *RpcTransactionVerboseData) GetMass() uint64

func (*RpcTransactionVerboseData) GetTransactionId

func (x *RpcTransactionVerboseData) GetTransactionId() string

func (*RpcTransactionVerboseData) ProtoMessage

func (*RpcTransactionVerboseData) ProtoMessage()

func (*RpcTransactionVerboseData) ProtoReflect

func (*RpcTransactionVerboseData) Reset

func (x *RpcTransactionVerboseData) Reset()

func (*RpcTransactionVerboseData) String

func (x *RpcTransactionVerboseData) String() string

type RpcUtxoEntry

type RpcUtxoEntry struct {
	Amount          uint64              `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	ScriptPublicKey *RpcScriptPublicKey `protobuf:"bytes,2,opt,name=scriptPublicKey,proto3" json:"scriptPublicKey,omitempty"`
	BlockDaaScore   uint64              `protobuf:"varint,3,opt,name=blockDaaScore,proto3" json:"blockDaaScore,omitempty"`
	IsCoinbase      bool                `protobuf:"varint,4,opt,name=isCoinbase,proto3" json:"isCoinbase,omitempty"`
	// contains filtered or unexported fields
}

func (*RpcUtxoEntry) Descriptor deprecated

func (*RpcUtxoEntry) Descriptor() ([]byte, []int)

Deprecated: Use RpcUtxoEntry.ProtoReflect.Descriptor instead.

func (*RpcUtxoEntry) GetAmount

func (x *RpcUtxoEntry) GetAmount() uint64

func (*RpcUtxoEntry) GetBlockDaaScore

func (x *RpcUtxoEntry) GetBlockDaaScore() uint64

func (*RpcUtxoEntry) GetIsCoinbase

func (x *RpcUtxoEntry) GetIsCoinbase() bool

func (*RpcUtxoEntry) GetScriptPublicKey

func (x *RpcUtxoEntry) GetScriptPublicKey() *RpcScriptPublicKey

func (*RpcUtxoEntry) ProtoMessage

func (*RpcUtxoEntry) ProtoMessage()

func (*RpcUtxoEntry) ProtoReflect

func (x *RpcUtxoEntry) ProtoReflect() protoreflect.Message

func (*RpcUtxoEntry) Reset

func (x *RpcUtxoEntry) Reset()

func (*RpcUtxoEntry) String

func (x *RpcUtxoEntry) String() string

type SubmitBlockRequestMessage

type SubmitBlockRequestMessage struct {
	Block             *RpcBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	AllowNonDAABlocks bool      `protobuf:"varint,3,opt,name=allowNonDAABlocks,proto3" json:"allowNonDAABlocks,omitempty"`
	// contains filtered or unexported fields
}

SubmitBlockRequestMessage requests to submit a block into the DAG. Blocks are generally expected to have been generated using the getBlockTemplate call.

See: GetBlockTemplateRequestMessage

func (*SubmitBlockRequestMessage) Descriptor deprecated

func (*SubmitBlockRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use SubmitBlockRequestMessage.ProtoReflect.Descriptor instead.

func (*SubmitBlockRequestMessage) GetAllowNonDAABlocks

func (x *SubmitBlockRequestMessage) GetAllowNonDAABlocks() bool

func (*SubmitBlockRequestMessage) GetBlock

func (x *SubmitBlockRequestMessage) GetBlock() *RpcBlock

func (*SubmitBlockRequestMessage) ProtoMessage

func (*SubmitBlockRequestMessage) ProtoMessage()

func (*SubmitBlockRequestMessage) ProtoReflect

func (*SubmitBlockRequestMessage) Reset

func (x *SubmitBlockRequestMessage) Reset()

func (*SubmitBlockRequestMessage) String

func (x *SubmitBlockRequestMessage) String() string

type SubmitBlockResponseMessage

type SubmitBlockResponseMessage struct {
	RejectReason SubmitBlockResponseMessage_RejectReason `` /* 133-byte string literal not displayed */
	Error        *RPCError                               `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitBlockResponseMessage) Descriptor deprecated

func (*SubmitBlockResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use SubmitBlockResponseMessage.ProtoReflect.Descriptor instead.

func (*SubmitBlockResponseMessage) GetError

func (x *SubmitBlockResponseMessage) GetError() *RPCError

func (*SubmitBlockResponseMessage) GetRejectReason

func (*SubmitBlockResponseMessage) ProtoMessage

func (*SubmitBlockResponseMessage) ProtoMessage()

func (*SubmitBlockResponseMessage) ProtoReflect

func (*SubmitBlockResponseMessage) Reset

func (x *SubmitBlockResponseMessage) Reset()

func (*SubmitBlockResponseMessage) String

func (x *SubmitBlockResponseMessage) String() string

type SubmitBlockResponseMessage_RejectReason

type SubmitBlockResponseMessage_RejectReason int32
const (
	SubmitBlockResponseMessage_NONE          SubmitBlockResponseMessage_RejectReason = 0
	SubmitBlockResponseMessage_BLOCK_INVALID SubmitBlockResponseMessage_RejectReason = 1
	SubmitBlockResponseMessage_IS_IN_IBD     SubmitBlockResponseMessage_RejectReason = 2
)

func (SubmitBlockResponseMessage_RejectReason) Descriptor

func (SubmitBlockResponseMessage_RejectReason) Enum

func (SubmitBlockResponseMessage_RejectReason) EnumDescriptor deprecated

func (SubmitBlockResponseMessage_RejectReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use SubmitBlockResponseMessage_RejectReason.Descriptor instead.

func (SubmitBlockResponseMessage_RejectReason) Number

func (SubmitBlockResponseMessage_RejectReason) String

func (SubmitBlockResponseMessage_RejectReason) Type

type SubmitTransactionRequestMessage

type SubmitTransactionRequestMessage struct {
	Transaction *RpcTransaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	AllowOrphan bool            `protobuf:"varint,2,opt,name=allowOrphan,proto3" json:"allowOrphan,omitempty"`
	// contains filtered or unexported fields
}

SubmitTransactionRequestMessage submits a transaction to the mempool

func (*SubmitTransactionRequestMessage) Descriptor deprecated

func (*SubmitTransactionRequestMessage) Descriptor() ([]byte, []int)

Deprecated: Use SubmitTransactionRequestMessage.ProtoReflect.Descriptor instead.

func (*SubmitTransactionRequestMessage) GetAllowOrphan

func (x *SubmitTransactionRequestMessage) GetAllowOrphan() bool

func (*SubmitTransactionRequestMessage) GetTransaction

func (x *SubmitTransactionRequestMessage) GetTransaction() *RpcTransaction

func (*SubmitTransactionRequestMessage) ProtoMessage

func (*SubmitTransactionRequestMessage) ProtoMessage()

func (*SubmitTransactionRequestMessage) ProtoReflect

func (*SubmitTransactionRequestMessage) Reset

func (*SubmitTransactionRequestMessage) String

type SubmitTransactionResponseMessage

type SubmitTransactionResponseMessage struct {

	// The transaction ID of the submitted transaction
	TransactionId string    `protobuf:"bytes,1,opt,name=transactionId,proto3" json:"transactionId,omitempty"`
	Error         *RPCError `protobuf:"bytes,1000,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitTransactionResponseMessage) Descriptor deprecated

func (*SubmitTransactionResponseMessage) Descriptor() ([]byte, []int)

Deprecated: Use SubmitTransactionResponseMessage.ProtoReflect.Descriptor instead.

func (*SubmitTransactionResponseMessage) GetError

func (*SubmitTransactionResponseMessage) GetTransactionId

func (x *SubmitTransactionResponseMessage) GetTransactionId() string

func (*SubmitTransactionResponseMessage) ProtoMessage

func (*SubmitTransactionResponseMessage) ProtoMessage()

func (*SubmitTransactionResponseMessage) ProtoReflect

func (*SubmitTransactionResponseMessage) Reset

func (*SubmitTransactionResponseMessage) String

type UnimplementedRPCServer

type UnimplementedRPCServer struct {
}

UnimplementedRPCServer must be embedded to have forward compatible implementations.

func (UnimplementedRPCServer) MessageStream

type UnsafeRPCServer

type UnsafeRPCServer interface {
	// contains filtered or unexported methods
}

UnsafeRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RPCServer will result in compilation errors.

type UtxosByAddressesEntry

type UtxosByAddressesEntry struct {
	Address   string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Outpoint  *RpcOutpoint  `protobuf:"bytes,2,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
	UtxoEntry *RpcUtxoEntry `protobuf:"bytes,3,opt,name=utxoEntry,proto3" json:"utxoEntry,omitempty"`
	// contains filtered or unexported fields
}

func (*UtxosByAddressesEntry) Descriptor deprecated

func (*UtxosByAddressesEntry) Descriptor() ([]byte, []int)

Deprecated: Use UtxosByAddressesEntry.ProtoReflect.Descriptor instead.

func (*UtxosByAddressesEntry) GetAddress

func (x *UtxosByAddressesEntry) GetAddress() string

func (*UtxosByAddressesEntry) GetOutpoint

func (x *UtxosByAddressesEntry) GetOutpoint() *RpcOutpoint

func (*UtxosByAddressesEntry) GetUtxoEntry

func (x *UtxosByAddressesEntry) GetUtxoEntry() *RpcUtxoEntry

func (*UtxosByAddressesEntry) ProtoMessage

func (*UtxosByAddressesEntry) ProtoMessage()

func (*UtxosByAddressesEntry) ProtoReflect

func (x *UtxosByAddressesEntry) ProtoReflect() protoreflect.Message

func (*UtxosByAddressesEntry) Reset

func (x *UtxosByAddressesEntry) Reset()

func (*UtxosByAddressesEntry) String

func (x *UtxosByAddressesEntry) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL