Skip to main content
POST
/
withdraw
/
ix
Generate withdraw instructions
curl --request POST \
  --url https://api.breeze.baby/withdraw/ix \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "params": {
    "all": true,
    "amount": 1,
    "base_asset": "<string>",
    "fund_id": "<string>",
    "payer_key": "<string>",
    "strategy_id": "<string>",
    "user_key": "<string>",
    "user_token_account": "<string>"
  }
}
'
{
  "withdraw_instructions": [
    {
      "program_id": [
        127
      ],
      "accounts": [
        {
          "pubkey": [
            127
          ],
          "is_signer": true,
          "is_writable": true
        }
      ],
      "data": [
        127
      ]
    }
  ],
  "lookup_table": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
params
object
required

Response

Withdraw instruction prepared successfully

withdraw_instructions
object[]
required

Array of Solana instructions for the withdraw operation

lookup_table
string
required

Address of the lookup table for the transaction