request Withdraw Stake
suspend fun requestWithdrawStake(signer: SuiAddress, stakedSui: ObjectId, gas: ObjectId? = null, gasBudget: Long): TransactionBlockBytes
Withdraw stake from a validator's staking pool.
Return
TransactionBlockBytes The transaction block bytes after the withdrawal request is completed.
Parameters
signer
The transaction signer's Sui address.
staked Sui
Staked Sui object ID.
gas
The gas object to be used in this transaction, node will pick one from the signer's possession if not provided.
gas Budget
The gas budget, the transaction will fail if the gas cost exceed the budget.
Throws
if there is an error during the withdrawal request.