v1

latestOpenAPI 3.1.02026-07-24223580832.9 KB
Solana

Post Withdrawal Intent

Returns an unsigned transaction to withdraw a specified amount of SOL from an deactivated stake account

post/v2/solana/{network}/withdrawal-intent

Path parameters

networkstring required
Example:mainnet

The target Solana network (allowed 'mainnet' or 'testnet').

Request body

amountinteger required

The amount of funds you want to withdraw (in Lamports).

delegator_addressstring required

Wallet that will pay the transaction fee.

networkstring

The target Solana network (allowed 'mainnet' or 'testnet').

stake_account_pubkeystring required

The address of the stake account.

Example request

{
  "amount": 621,
  "delegator_address": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79",
  "network": "mainnet",
  "stake_account_pubkey": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79"
}

Response

OK

estimated_feeinteger required

The estimated fee for the transaction.

instruction_countinteger required

The number of instructions in the transaction.

networkstring

The target Solana network (allowed 'mainnet' or 'testnet').

stake_account_pubkeystring required

The address of the stake account.

unsigned_transactionstring required

Base64-encoded, serialized Solana transaction to be signed and submitted.

withdraw_authority_pubkeystring required

Address of the account authorized to withdraw stake and receive withdrawn funds.

Example response

{
  "estimated_fee": 1000000000,
  "instruction_count": 1,
  "metadata": {
    "available_withdraw_amount": 621,
    "will_close_account": true
  },
  "network": "mainnet",
  "stake_account_pubkey": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79",
  "withdraw_authority_pubkey": "75q6kcecNQhawj1dCmPWhfootfQBnZh7iWnNjoXTJv79"
}