Skip to main content
POST
Create Stealth Pool

授权

Authorization
string
header
必填

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

请求体

application/json
payer
string
必填
示例:

"3rXKwQ1kpjBd5tdcco32qsvqUh1BnZjcYnS5kYrP7AYE"

authority
string
必填

Authority allowed to manage the pool.

示例:

"3rXKwQ1kpjBd5tdcco32qsvqUh1BnZjcYnS5kYrP7AYE"

handle
string
必填

Human-readable handle, up to 255 UTF-8 bytes. Stored as its exact bytes — NOT trimmed, lowercased, or normalized, so John.Doe@… is a different handle than john.doe@….

Required string length: 1 - 255
示例:

"john.doe@magicblock.id"

destinations
string[]
必填

1-10 destination owner pubkeys (owners, not token accounts).

Required array length: 1 - 10 elements
示例:
splitAcrossKeys
boolean

Optional. When true, split payments may resolve independently across the destination keys.

validator
string

Optional. Validator identity to receive the delegated pool.

示例:

"MAS1Dt9qreoRMQ14YQuhg8UTZMMzDdKhmkZMECCzk57"

cluster

Optional. Cluster selector or custom http(s) RPC URL.

可用选项:
mainnet,
devnet,
mainnet-private,
devnet-private
示例:

"mainnet"

响应

Unsigned setup and ER update transactions

kind
enum<string>
必填
可用选项:
stealthPool
version
enum<string>
必填
可用选项:
legacy,
v0
transactionBase64
string
必填

The ER update transaction.

sendTo
enum<string>
必填
可用选项:
base,
ephemeral
recentBlockhash
string
必填
lastValidBlockHeight
integer
必填
instructionCount
integer
必填
必填范围: x >= 0
requiredSigners
string[]
必填
stealthPool
string
必填

Derived stealth-pool PDA.

setupTransaction
object
必填

The base-chain setup transaction. It uses the same transaction response contract as the top-level transaction; sendRpcEndpoint is omitted when sendTo is base.

sendRpcEndpoint
string<uri>