Skip to main content
POST
Withdraw SPL Tokens

请求体

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. Use mainnet for BASE_RPC_URL and EPHEMERAL_RPC_URL, devnet for BASE_DEVNET_RPC_URL and EPHEMERAL_DEVNET_RPC_URL, or provide a custom http(s) RPC URL to override the base RPC while keeping the configured ephemeral RPC.

可用选项:
mainnet,
devnet
示例:

"mainnet"

validator
string

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

示例:

"MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57"

initIfMissing
boolean

Optional. Initialize the transfer queue if missing.

initAtasIfMissing
boolean

Optional. Initialize associated token accounts if missing.

escrowIndex
integer

Optional. Escrow index for the withdrawal.

必填范围: x >= 0
idempotent
boolean

Optional. When true, the API uses idempotent variants for any preparatory init instructions.

响应

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