post
https://api.figment.io/solana/withdraw
Returns an unsigned transaction to withdraw SOL from a stake account
Use cases
a) Withdrawal of the complete account balance and closure of the account
- the stake account needs to be deactivated
- amount equals to the total account balance:
amount = account.lamports
b) Withdrawal of only the inactive balance, i.e. Accumulated Jito MV rewards, while keeping the stake account active
- amount equals the withdrawable balance,
i.e. amount = account.lamports − effective_stake − rent_exempt_reserve
Please note that the amount always needs to be smaller or equal to the withdrawable amount.
