Defined in: index.ts:67arrow-up-right
Obol sdk Client can be used for creating, managing and activating distributed validators.
new Client (config, signer?, provider?): Client
Defined in: index.ts:113arrow-up-right
Client
Obol-SDK Client instance
An example of how to instantiate obol-sdk Client: obolClientarrow-up-right
Base.constructor
acceptObolLatestTermsAndConditions()
acceptObolLatestTermsAndConditions (): Promise<string>
Defined in: index.ts:143arrow-up-right
Accepts Obol terms and conditions to be able to create or update data.
Promise<string>
terms and conditions acceptance success message.
On unverified signature or wrong hash.
An example of how to use acceptObolLatestTermsAndConditions: acceptObolLatestTermsAndConditionsarrow-up-right
createObolRewardsSplit()
createObolRewardsSplit (rewardsSplitPayload): Promise<ClusterValidator >
Defined in: index.ts:198arrow-up-right
Deploys OWR and Splitter Proxy.
Promise<ClusterValidator >
owr address as withdrawal address and splitter as fee recipient
An example of how to use createObolRewardsSplit: createObolRewardsSplitarrow-up-right
⚠️ Important: If you're storing the private key in an .env file, ensure it is securely managed and not pushed to version control.
createObolTotalSplit()
createObolTotalSplit (totalSplitPayload): Promise<ClusterValidator >
Defined in: index.ts:325arrow-up-right
Deploys Splitter Proxy.
Promise<ClusterValidator >
splitter address as withdrawal address and splitter as fee recipient too
An example of how to use createObolTotalSplit: createObolTotalSplitarrow-up-right
⚠️ Important: If you're storing the private key in an .env file, ensure it is securely managed and not pushed to version control.
getOWRTranches()
getOWRTranches (owrAddress): Promise<OWRTranchesarrow-up-right >
Defined in: index.ts:430arrow-up-right
Read OWR Tranches.
Promise<OWRTranchesarrow-up-right >
owr tranch information about principal and reward reciepient, as well as the principal amount
⚠️ Important: If you're storing the private key in an .env file, ensure it is securely managed and not pushed to version control.
createClusterDefinition()
createClusterDefinition (newCluster): Promise<string>
Defined in: index.ts:448arrow-up-right
Creates a cluster definition which contains cluster configuration.
Promise<string>
config_hash.
On duplicate entries, missing or wrong cluster keys.
An example of how to use createClusterDefinition: createObolClusterarrow-up-right
acceptClusterDefinition()
acceptClusterDefinition (operatorPayload, configHash): Promise<ClusterDefinition >
Defined in: index.ts:513arrow-up-right
Approves joining a cluster with specific configuration.
Promise<ClusterDefinition >
The cluster definition.
On unauthorized, duplicate entries, missing keys, not found cluster or invalid data.
An example of how to use acceptClusterDefinition: acceptClusterDefinitionarrow-up-right
getClusterDefinition()
getClusterDefinition (configHash): Promise<ClusterDefinition >
Defined in: index.ts:570arrow-up-right
Promise<ClusterDefinition >
The cluster definition for config hash
On not found config hash.
An example of how to use getClusterDefinition: getObolClusterDefinitionarrow-up-right
getClusterLock()
getClusterLock (configHash): Promise<ClusterLock >
Defined in: index.ts:589arrow-up-right
Promise<ClusterLock >
The matched cluster details (lock) from DB
On not found cluster definition or lock.
An example of how to use getClusterLock: getObolClusterLockarrow-up-right
getClusterLockByHash()
getClusterLockByHash (lockHash): Promise<ClusterLock >
Defined in: index.ts:605arrow-up-right
Promise<ClusterLock >
The matched cluster details (lock) from DB
On not found cluster definition or lock.