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.


Body Params
string
required
string
required
number
required
string
enum
required
Allowed:
string | null

Pubkey of the on-chain nonce account. Enables offline signing without the 60–90s blockhash expiry.

string | null

Pubkey of the account authorized to advance the nonce. Defaults to the fee payer if omitted.

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json