Obol sdk Client can be used for creating, managing and activating distributed validators.

Hierarchy

  • Base
    • Client

Constructors

  • Parameters

    • config: {
          baseUrl?: string;
          chainId?: number;
      }
      • Optional baseUrl?: string
      • Optional chainId?: number
    • Optional signer: Signer

      ethersJS Signer

    Returns Client

    Obol-SDK Client instance

    An example of how to instantiate obol-sdk Client: obolClient

Methods

  • Creates a cluster definition which contains cluster configuration.

    Parameters

    Returns Promise<string>

    config_hash.

    Throws

    On duplicate entries, missing or wrong cluster keys.

    An example of how to use createClusterDefinition: createObolCluster

  • Parameters

    • configHash: string

    Returns Promise<ClusterLock>

    The matched cluster details (lock) from DB

    Throws

    On not found cluster definition or lock.

    An example of how to use getClusterLock: getObolClusterLock

  • Approves joining a cluster with specific configuration.

    Parameters

    • operatorPayload: OperatorPayload

      The operator data including signatures.

    • configHash: string

      The config hash of the cluster which the operator confirms joining to.

    Returns Promise<ClusterDefintion>

    The cluster definition.

    Throws

    On unauthorized, duplicate entries, missing keys, not found cluster or invalid data.

    An example of how to use updateClusterDefinition: updateClusterDefinition

Generated using TypeDoc