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>