package switchrpc

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service Switch

switch.proto:11

Switch is a service that offers advanced interaction with the HTLC fowarding subsystem of the daemon.

message AttemptDeletionResult

switch.proto:358

AttemptDeletionResult reports the outcome of deleting a single attempt.

Used in: DeleteAttemptsResponse

enum AttemptDeletionStatus

switch.proto:367

AttemptDeletionStatus describes the outcome of a single attempt deletion.

Used in: AttemptDeletionResult

message DefiniteFailure

switch.proto:182

DefiniteFailure is a guarantee that the HTLC was not and will not be dispatched. The client should fail the payment attempt and may retry with a new route.

Used in: SendOnionFailureDetails

message FailureDetails

switch.proto:249

FailureDetails provides structured information about why a payment attempt failed on the network. This message is included in a successful TrackOnionResponse when the queried attempt ultimately failed.

Used in: TrackOnionResponse

message ForwardingFailure

switch.proto:289

ForwardingFailure represents an HTLC failure that occurred at a remote node in the payment route. The onion error was successfully decrypted, revealing the failing hop.

Used in: FailureDetails

message IndefiniteFailure

switch.proto:194

IndefiniteFailure indicates that the state of the HTLC dispatch is unknown. This could be due to a transport-level failure or a server-side issue where the idempotency record may or may not have been written. The client MUST retry the exact same request to resolve the ambiguity. Clients can optionally use this code to implement more nuanced behavior, such as logging or emitting more detailed metrics.

Used in: SendOnionFailureDetails

enum IndefiniteFailureCode

switch.proto:200

IndefiniteFailureCode provides the specific reason for an indefinite failure.

Used in: IndefiniteFailure

message LocalFailure

switch.proto:302

LocalFailure represents a failure that originates at the local node. No onion decryption is involved because the failure occurred before the HTLC left our node.

Used in: DefiniteFailure, FailureDetails

message SendOnionFailureDetails

switch.proto:164

SendOnionFailureDetails provides structured details for a dispatch failure and is attached to a FailedPrecondition or Unavailable gRPC status.

message SwitchError

switch.proto:308

SwitchError indicates that an error occurred within the switch subsystem.

Used in: FailureDetails

(message has no fields)

message UnreadableFailure

switch.proto:314

UnreadableFailure indicates that decryption keys were provided and decryption was attempted, but failed. The original failure information cannot be recovered.

Used in: FailureDetails

(message has no fields)