Module Reference
Core Modules
The SDK consists of four main modules:
Clusters Module: Manage validator clusters, handle deposits, and register validators
Operator Module: Interact with network operators and manage operator relationships
API Module: Access network data, query states, and retrieve operational information
Utils Module: Helper functions for keyshare validation, share generation, and other utilities
Contract Calls
The majority of the functions within the cluster and operator modules are smart contract calls, this means that the return value of these will be the transaction receipt. As shown in the examples, this receipt can be stored to a variable and accessed to get values such as the transaction hash.
Transaction Parameters
For each function that performs a contract call, we can include additional custom arguments alongside the function parameters. This allows us to modify the transaction details in the same way we would customize any Ethereum transaction before sending it.
An example of this can be seen here where we update the gas limit like so:
Parameter List
Below is a list of parameters that can be included within the transaction, for more details you can check Viem's page on transaction parameters.
Last updated