interface ValidationErrorDto {
    code: "SOURCE_IN_USE" | "TARGET_AS_SOURCE" | "MAX_BALANCE_EXCEEDED" | "VALIDATOR_NOT_FOUND" | "INVALID_CUSTOMER";
    currentBalanceGwei?: string;
    existingConsolidation?: ExistingConsolidationDto;
    maxBalanceGwei?: string;
    message: string;
    pendingIncomingGwei?: string;
    pubkey?: string;
    requestedAmountGwei?: string;
    targetPubkey?: string;
}

Properties

code: "SOURCE_IN_USE" | "TARGET_AS_SOURCE" | "MAX_BALANCE_EXCEEDED" | "VALIDATOR_NOT_FOUND" | "INVALID_CUSTOMER"

Error code indicating the type of validation failure

Example

"SOURCE_IN_USE"
currentBalanceGwei?: string

Current balance of the target validator in Gwei

Example

"32000000000"
existingConsolidation?: ExistingConsolidationDto

Details of the existing consolidation (when SOURCE_IN_USE error)

maxBalanceGwei?: string

Maximum allowed balance for a validator in Gwei

Example

"2048000000000"
message: string

Human-readable error message

Example

"Source validator is already being used in another consolidation"
pendingIncomingGwei?: string

Pending incoming balance to the target validator in Gwei

Example

"1000000000"
pubkey?: string

Public key of the validator that caused the error

Example

"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
requestedAmountGwei?: string

Requested consolidation amount in Gwei

Example

"32000000000"
targetPubkey?: string

Target public key (when TARGET_AS_SOURCE error)

Example

"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"