cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server

Contents

Synopsis

Documentation

runRpcServer Source #

Arguments

:: Tracer IO TraceRpc

Tracer for RPC lifecycle and error events

-> RpcConfig

Server configuration

-> NetworkMagic

Network discriminant

-> IORef (Maybe NodeKernelAccess)

Node kernel access, populated when the kernel is ready

-> IO () 

Start the gRPC server, registering all RPC service handlers. Does nothing when the RPC server is disabled in configuration.

data NodeKernelAccess Source #

In-process access to the node kernel. Constructed by cardano-node once consensus initialisation completes.

Instances

Instances details
Has (IORef (Maybe NodeKernelAccess)) RpcEnv Source # 
Instance details

Defined in Cardano.Rpc.Server.Internal.Monad

mkNodeKernelAccess Source #

Arguments

:: Monad m 
=> Tracer m Text

Tracer for unsupported block type warnings

-> BlockType blk

Block type witness

-> TopLevelConfig blk

Top-level consensus config (for system start and era history)

-> NodeKernel IO addrNTN addrNTC blk

Consensus node kernel

-> m (Maybe NodeKernelAccess) 

Construct NodeKernelAccess from a consensus NodeKernel. Returns Nothing and traces the block type for non-Cardano block types.

Traces

data TraceRpcSubmit Source #

Traces used in SubmitTx service

Constructors

TraceRpcSubmitN2cConnectionError SomeException

Node-to-client connection error during submission

TraceRpcSubmitTxDecodingError DecoderError

Transaction deserialisation error

TraceRpcSubmitTxValidationError TxValidationErrorInCardanoMode

Transaction submission error

TraceRpcSubmitSpan TraceSpanEvent

Transaction submission span

TraceRpcEvalTxDecodingError SerialiseAsRawBytesError

Transaction evaluation deserialisation error

TraceRpcEvalTxSpan TraceSpanEvent

Transaction evaluation span

data TraceRpcQuery Source #

Traces used in Query service

Constructors

TraceRpcQueryParamsSpan TraceSpanEvent

Span trace marking ReadParams query

TraceRpcQueryReadUtxosSpan TraceSpanEvent

Span trace marking ReadUtxos query

TraceRpcQuerySearchUtxosSpan TraceSpanEvent

Span trace marking SearchUtxos query

data TraceRpcSync Source #

Traces used in SyncService (FetchBlock, FollowTip)

Constructors

TraceRpcFetchBlockSpan TraceSpanEvent

FetchBlock span

TraceRpcFetchBlockNotFound SlotNo

Requested block was not found

TraceRpcNodeKernelAccessUnavailable

Node kernel access is not yet available

TraceRpcForkerError String

Ledger forker error

data TraceSpanEvent Source #

Span type

Constructors

SpanBegin SpanId

Opening span trace

SpanEnd SpanId

Ending span trace