# Functions
NewCodec creates a new RPC server codec with support for JSON-RPC 2.0 based on explicitly given encoding and decoding methods.
NewID generates a identifier that can be used as an identifier in the RPC interface.
NewJSONCodec creates a new RPC server codec with support for JSON-RPC 2.0.
No description provided by the author
newRPCServer returns a new instance of the rpcServer struct.
NotifierFromContext returns the Notifier value stored in ctx, if any.
RpcAddressKeyError is a convenience function to convert an address/key error to an RPC error.
LL(getblocktemplate RPC) 2018-10-28client errors.
RpcDecodeHexError is a convenience function for returning a nicely formatted RPC error which indicates the provided hex string failed to decode.
RpcDeserializetionError is a convenience function to convert a deserialization error to an RPC error.
RpcDuplicateTxError is a convenience function to convert a rejected duplicate tx error to an RPC error.
No description provided by the author
RpcInvalidError is a convenience function to convert an invalid parameter error to an RPC error with the appropriate code set.
RpcNoTxInfoError is a convenience function for returning a nicely formatted RPC error which indicates there is no information available for the provided transaction hash.
RpcRuleError is a convenience function to convert a rule error to an RPC error.
# Constants
These are all service namespace in node.
These are all service namespace in node.
These are all service namespace in node.
OptionMethodInvocation is an indication that the codec supports RPC method calls.
support pub sub.
These are all service namespace in node.
# Variables
ErrNotificationsUnsupported is returned when the connection doesn't support notifications.
ErrNotificationNotFound is returned when the notification for the given id is not found.
# Structs
API describes the set of methods offered over the RPC interface.
No description provided by the author
Notifier is tight to a RPC connection that supports subscriptions.
No description provided by the author
RpcServer provides a concurrent safe RPC server to a chain server.
a Subscription is created by a notifier and tight to that notifier.
# Interfaces
Error wraps RPC errors, which contain an error code in addition to the message.
ServerCodec implements reading, parsing and writing RPC messages for the server side of a RPC session.
# Type aliases
CodecOption specifies which type of messages this codec supports.
ID defines a pseudo random number that is used to identify RPC subscriptions.