Solana

Prepare Solana Delegate

Prepares a delegation transaction for Solana token transfers. You can either provide a quote_id (recommended) to automatically use the correct token amount and address from the quote, or manually provide owner_address, token_address, and amount.

post/v1/instances/{instance_id}/prepare-delegate-solana

Path parameters

instance_idstring required
Example:in_000000000000

Headers

Idempotency-Keystring

Optional key to safely retry this request without performing the action twice. Retrying with the same key and an identical body replays the original response; reusing a key with a different body returns an error. Keys are kept for 24 hours.

Example:a1b2c3d4-e5f6-7890-abcd-ef1234567890

Request body

owner_addressstring required

The Solana wallet address that owns the tokens

quote_idstring

The quote ID. When provided, the API will automatically use the sender_amount and token_address from the quote. This is the recommended approach.

token_addressstring

The SPL token mint address. Required if quote_id is not provided.

amountstring

The token amount to delegate in USDC/USDT units (e.g., "10.5" for 10.5 USDC). Required if quote_id is not provided. Note: This should be the TOKEN amount, not the local currency amount.

Example request

{
  "owner_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "quote_id": "qu_000000000000",
  "token_address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "10.5"
}

Response

Prepare delegation transaction

successboolean required
transactionstring
{"stackTrail":"paths:/v1/instances/{instance_id}/prepare-delegate-solana:post:responses:200:content:application/json:schema:properties:debug","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.