BuildStakingOperation
API, the generated code for a Partial ETH stake of 0.1 ETH
will look like this in some of the common languages:
options
field like so:
BuildStakingOperation
actions: stake
, unstake
and claim_stake
.
See the tabs below for details on the options that can be used with each one.
Field Name | Description |
---|---|
mode required | The mode of staking. For Shared ETH Staking this should be partial . |
amount required | The amount to stake in wei . |
integrator_contract_address optional | The contract address for the staking operation. Defaults to the integrator contract address associated with the CDP account or a shared integrator contract address for that network. |
BuildStakingOperation
actions: stake
and unstake
.
See the tabs below for details on the options that can be used with each one.
Field Name | Description |
---|---|
mode required | The mode of staking. For Dedicated ETH Staking this should be native . |
amount required | The amount to stake in wei and in multiples of 32 ETH . |
funding_address optional | Funding address for the stake operation. Defaults to the address initiating the stake operation. |
withdrawal_address optional | Rewards and withdrawal address. Defaults to the address initiating the stake operation. |
fee_recipient_address optional | Tx fee recipient address. Defaults to the address initiating the stake operation. |
withdrawal_credential_type optional | Prefix indicating the type of withdrawal credentials for the validator. Set to 0x02 for provisioning post Pectra validators.Possible values: 0x01 , 0x02 Defaults to pre Pectra validator prefix of 0x01 . |
BuildStakingOperation
actions: stake
, unstake
and claim_stake
.
See the tabs below for details on the options that can be used with each one.
Field Name | Description |
---|---|
amount required | The amount to stake in lamports . |
validator_address optional | The validator address to which you want to stake. Defaults to the Coinbase Solana validator. See here for validator details. |