跳转到主要内容
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