メインコンテンツへスキップ
POST
Withdraw SPL Tokens

承認

Authorization
string
header
必須

Token obtained from the /v1/spl/login flow.

ボディ

application/json
owner
string
必須
例:

"3rXKwQ1kpjBd5tdcco32qsvqUh1BnZjcYnS5kYrP7AYE"

mint
string
必須

SPL mint on Solana.

例:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

amount
integer
必須

Base-unit amount as an integer JSON value with minimum 1.

必須範囲: x >= 1
例:

1000000

cluster

Optional, defaults to mainnet. mainnet and devnet route to the public ephemeral RPC for that network; mainnet-private and devnet-private route to the TEE-backed Private Ephemeral Rollup and are required for auth and bearer-token-gated reads. A custom http(s) RPC URL overrides only the base RPC while keeping the configured ephemeral RPC.

利用可能なオプション:
mainnet,
devnet,
mainnet-private,
devnet-private
例:

"mainnet"

validator
string

Optional. Defaults to the selected ephemeral RPC identity resolved via getIdentity.

例:

"MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57"

initIfMissing
boolean

Optional. Defaults to true. Adds the instruction that initializes the owner's ephemeral ATA (eATA) if it does not exist. The transfer queue is initialized by /v1/spl/initialize-mint.

initAtasIfMissing
boolean

Optional. Initialize associated token accounts if missing.

escrowIndex
integer

Optional. Escrow index for the withdrawal.

必須範囲: x >= 0
idempotent
boolean

Optional. Defaults to true. Selects the withdrawal builder. true uses the shuttle flow, which withdraws from a delegated eATA without a separate undelegate. false uses the legacy direct withdrawal, which needs the eATA undelegated first (/v1/spl/undelegate-ephemeral-ata) and otherwise fails with InvalidAccountOwner.

gasless
boolean

Optional. Defaults to false. Uses the configured sponsor as payer and charges 0.2 USDC/USDT from the owner's existing base-chain ATA, in addition to amount. Requires an existing sponsor ATA, an on-curve owner, mainnet USDC/USDT or devnet USDC (including private clusters), and amount of at least 0.5 tokens. Custom clusters are unsupported. The returned transaction includes the sponsor signature; the owner must still sign.

例:

true

feeBalance
enum<string>

Optional. Defaults to base. With gasless=true and ephemeral, the 0.2 USDC/USDT relay fee is deducted from amount inside the ephemeral rollup instead of the base-chain ATA, so the owner needs no base-chain funds and receives amount minus the fee. The fee goes to the transfer-queue vault. Requires the idempotent flow.

利用可能なオプション:
base,
ephemeral
例:

"ephemeral"

レスポンス

Unsigned serialized transaction

kind
enum<string>
必須
利用可能なオプション:
withdraw
version
enum<string>
必須
利用可能なオプション:
legacy,
v0
transactionBase64
string
必須
sendTo
enum<string>
必須
利用可能なオプション:
base,
ephemeral
recentBlockhash
string
必須
lastValidBlockHeight
integer
必須
instructionCount
integer
必須
必須範囲: x >= 0
requiredSigners
string[]
必須
validator
string