DEVELOPERS / DEVNET LIVE

stealthX in any transaction.

stealthX is a public program: every wallet can call it. Its instructions are ordinary Solana instructions. Put them in your own transaction, next to your other instructions (a memo, more payouts), sign once, and submit the bytes with sendTransaction. No SDK: here is every instruction as JSON, a composed transaction, every RPC call, and a builder that fills in live values.

Program ID · devnet
st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp
Config PDA · seeds ["config"]
CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6
LIVE BUILDER

Your transaction, as JSON.

SOL and token payments, with real devnet data: treasury, fee, blockhash.

Built and simulated here. Nothing is signed or sent. When mainnet is live, only the blockhash and the RPC differ.

Reads devnet state and simulates; never signs or sends. Memos are public on-chain.

00 / INSTRUCTIONS

Public payment and vault instructions.

Any wallet can call them on devnet; mainnet is not live yet.
Each one is shown below as JSON.

Public instructions
InstructionUse it whenAccounts · data
sendXYou pay from your own wallet. One instruction: the recipient is paid by your vault, not by a System Program transfer from you, and the vault opens itself on the first payment.The usual way to pay; nothing to prepare6 · 16 bytes
transferXA bot pays many times. Fund the vault once, then every payment is a direct balance change with no System Program call at all.The fewest compute units per payment (about 250)5 · 16 bytes
sendTokenXPay SPL or Token-2022 tokens from your wallet: the recipient receives a new token account.9 · 58 bytes
transferTokenXPay SPL or Token-2022 tokens from a token account your vault holds.9 · 58 bytes
closeAuthorityXReclaim the deposits of emptied payment accounts and vault token accounts.3 + accounts · 9 bytes
createVaultXYou want the vault ready before funding it for transferX.Optional: a first sendX opens it too3 · 8 bytes
closeVaultXYou are done paying: the vault’s rent and any balance come back to you.Always available; also right after a one-off sendX2 · 8 bytes
DepositYou fund a vault for transferX: an ordinary SOL transfer to the vault address, from any wallet.A System Program transfer, not a stealthX instruction2 · 12 bytes
01 / SENDX

sendX: one instruction, six accounts.

The authority pays amount from its wallet. The program takes the 10,000 lamports fee out of it and the recipient gets the rest. The first payment also opens the authority’s vault. Values in angle brackets are yours to fill in.

Accounts, in this order
#AccountFlags
0VaultPDA of ["vault", authority] under the program. Pass it even before it exists.writable
1AuthorityPays the amount and signswritable, signer
2RecipientAny wallet; a new one is created by the paymentwritable
3ConfigThe PDA above; read it for the treasury listread-only
4TreasuryA wallet in config.feeRecipients slots 0–2; pick one at random. Never slot 3: a wallet there is being replacedwritable
5System Program11111111111111111111111111111111read-only
Data: 16 bytes
BytesFieldExample
0–7DiscriminatorFixed3ced56b476c8b5e9
8–15amount · u64 little-endianLamports leaving the authority, fee included0065cd1d000000000.5 SOL
SENDX INSTRUCTION · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<authority: the wallet that pays and signs>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "<recipient wallet>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<treasury: a wallet in config.feeRecipients slots 0-2>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "11111111111111111111111111111111",
      "isSigner": false,
      "isWritable": false
    }
  ],
  "data": "PO1WtHbItekAZc0dAAAAAA=="
}

This is the instruction shape SDKs and APIs exchange (programId, accounts with pubkey / isSigner / isWritable, base64 data). In @solana/web3.js it is a TransactionInstruction; in @solana/kit an Instruction.

02 / FROM A FUNDED VAULT

transferX: no System Program call.

If you fund your vault in advance (an ordinary SOL transfer to it), transferX pays out of it with no System Program call at all. The accounts are sendX’s first five, with no System Program; the vault keeps its rent-exempt minimum. It composes and sends exactly like sendX below.

Data: 16 bytes
BytesFieldExample
0–7DiscriminatorFixedfc7c3e538d362fd9
8–15amount · u64 little-endianLamports leaving the vault, fee included0065cd1d000000000.5 SOL
TRANSFERX INSTRUCTION · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<authority: the wallet that pays and signs>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "<recipient wallet>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<treasury: a wallet in config.feeRecipients slots 0-2>",
      "isSigner": false,
      "isWritable": true
    }
  ],
  "data": "/Hw+U402L9kAZc0dAAAAAA=="
}

transferX needs an open, funded vault: open it with createVaultX (or a first sendX), then deposit with an ordinary SOL transfer. A vault you no longer use is closed with closeVaultX, which returns its rent and any balance.

02B / OPEN AND FUND A VAULT

createVaultX, then deposit.

For transferX, the vault must exist and hold SOL. createVaultX opens it and pays its rent-exempt minimum, without paying anyone. A deposit is a plain System Program transfer to the vault address, from any wallet. Both are needed only for transferX: sendX opens the vault on its own and pays straight from your wallet.

createVaultX · accounts, in this order · data: 8 bytes
#AccountFlags
0VaultPDA of ["vault", authority]writable
1AuthorityOwns the vault; pays its rentwritable, signer
2System Program—

Data: b70d158d43214c0b, the discriminator only. It fails with 6008 when the vault address is not the authority’s PDA, and when the vault is already open.

CREATEVAULTX INSTRUCTION · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<authority: the wallet that owns the vault; pays its rent>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "11111111111111111111111111111111",
      "isSigner": false,
      "isWritable": false
    }
  ],
  "data": "tw0VjUMhTAs="
}
DEPOSIT · SYSTEM PROGRAM TRANSFER (2 SOL) · JSON
{
  "programId": "11111111111111111111111111111111",
  "accounts": [
    {
      "pubkey": "<any wallet: pays the deposit>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    }
  ],
  "data": "AgAAAACUNXcAAAAA"
}

In the devnet app, “Create vault” sends createVaultX, “Review deposit” sends the deposit, and paying “From your vault” sends transferX.

03 / CLOSE THE VAULT

closeVaultX: reclaim the vault rent.

A wallet’s first sendX opens its vault, which holds the rent-exempt minimum: 0.00085344 SOL on mainnet, 0.0004326 SOL on devnet. That is a deposit, not a fee. closeVaultX returns it to the authority, together with any balance still in the vault, and closes the account. To see exactly what comes back, read the SOL vault’s balance first. Token accounts the vault owns stay open; closeAuthorityX closes them once empty.

Accounts, in this order · data: 8 bytes
#AccountFlags
0VaultPDA of ["vault", authority]writable
1AuthorityThe wallet that owns the vault; receives everythingwritable, signer
When to call it
On its ownIn its own transaction, any time the wallet is done paying. The next sendX opens the vault again and charges the rent again, so a wallet that pays often keeps its vault.About 150 compute units, no System Program call
After a one-off sendXPut closeVaultX right after sendX in the same transaction. The vault opens, pays and closes, so the rent comes straight back and the wallet pays only the amount and the network fee.Reserve 250 more compute units in the limit
Any timeThe program has no pause, so closeVaultX always works: SOL in a vault can always be taken back.
Errors6008 when the address holds no vault; 6007 when the vault belongs to another wallet
CLOSEVAULTX INSTRUCTION · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<authority: the wallet that owns the vault; receives the refund>",
      "isSigner": true,
      "isWritable": true
    }
  ],
  "data": "61DnbJbx8ZQ="
}
WHAT COMES BACK · THE VAULT'S BALANCE
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBalance",
  "params": [
    "<vault: PDA of [\"vault\", authority]>",
    {
      "commitment": "confirmed"
    }
  ]
}

The result’s value is the refund in lamports. In the devnet app, “Close vault and refund” sends this instruction.

03B / TOKENS

sendTokenX: tokens, through an authority handoff.

sendTokenX pays from the sender’s token account; transferTokenX pays from a token account the vault holds. Each payment creates a new token account, fills it while the sender’s vault owns it, then makes the recipient its owner. The recipient needs no token account beforehand, and explorers show it as the new account’s owner, as with SOL.

Both work for classic SPL Token and Token-2022 mints, including pump.fun’s coins. Put the mint’s Token Program in account 6. Mints with transfer fees, a transfer hook, pausable or non-transferable tokens, or accounts that start frozen cannot be paid.

Costs

  • Fee: 10,000 lamports, taken in SOL from the vault. The recipient gets every token. The vault must hold the fee on top of its rent-exempt minimum; top it up with a deposit in the same transaction. Keeping at least 0.01 SOL in the vault saves a rent check (about 130 compute units) on every payment.
  • Deposit: the authority pays the new account’s rent, about 0.00149 SOL on mainnet. The vault stays the account’s close authority, so once the recipient empties it, closeAuthorityX returns the deposit.
  • Compute units (without compute-budget instructions): sendTokenX about 6,300 for SPL Token and 11,300 for Token-2022; transferTokenX about 6,000 and 11,000.
  • Loaded data: 192 KiB for SPL Token, 1.75 MiB for Token-2022 (its program is about 1.4 MB).

Before you send

  • The recipient must be a wallet address. It travels as data, so the program cannot check it. Tokens paid to a token account’s address, a program or an address nobody holds the key for are lost.
  • Use a fresh random seed per payment, and keep it for retries. The seed names the payment account. A retry with the same seed cannot pay twice: if the first transaction landed, the account exists and the retry fails.
  • CPI Guard. If the sender’s Token-2022 account has CPI Guard on, sendTokenX fails. Move the tokens to the vault’s token account first and pay with transferTokenX.

Transaction order

  1. Open the vault with createVaultX if it is not open.
  2. Deposit SOL into the vault if it holds less than its rent plus the fee.
  3. Add sendTokenX or transferTokenX.
  4. Later, in another transaction, reclaim deposits with closeAuthorityX.
Data: 58 bytes
BytesField
0–7DiscriminatorsendTokenX 2f6c0d9145049a65, transferTokenX 63ae7682989fe938
8–15amount · u64 little-endianIn the mint’s base units; more than 0
16Vault bumpFrom the PDA ["vault", authority]
17–24Seed8 random bytes that name the payment account
25Account bumpFrom the PDA ["pay", vault, seed] under the stealthX program; pass that PDA as account 2
26–57RecipientThe wallet that will own the account

The examples encode 1,250,000 base units, vault bump 255, seed 0102030405060708, account bump 254 and zeros for the recipient. The live builder fills in real values.

closeAuthorityX

Closes empty token accounts and returns their deposits to the authority: payment accounts whose owners emptied them, and the vault’s own empty token accounts. Accounts it cannot close are skipped, so one bad account never fails the batch. About 20 accounts of one Token Program fit in a transaction. Compute units: about 1,200 for one SPL Token account, 2,350 for Token-2022.

Accounts: the vault, the authority (signer, writable), the Token Program, then the token accounts (writable). Data: the discriminator 2b4891af6eaaedb5 and the 1-byte vault bump.

To find your payment accounts, call getProgramAccounts on each Token Program with dataSize 165 and a memcmp at offset 129 for 01000000 followed by the vault address; keep those with amount 0 (offset 64). Tokens still in a vault token account leave first with a transferTokenX to the authority.

SENDTOKENX · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<authority: the wallet that pays and signs>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "<new token account: PDA of [\"pay\", vault, seed]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<token mint>",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<treasury: a wallet in config.feeRecipients slots 0-2>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<the mint's Token Program: Tokenkeg… or Tokenz…>",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "11111111111111111111111111111111",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<sender token account for this mint>",
      "isSigner": false,
      "isWritable": true
    }
  ],
  "data": "L2wNkUUEmmXQEhMAAAAAAP8BAgMEBQYHCP4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
}
TRANSFERTOKENX · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<authority: the wallet that pays and signs>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "<new token account: PDA of [\"pay\", vault, seed]>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<token mint>",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<treasury: a wallet in config.feeRecipients slots 0-2>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<the mint's Token Program: Tokenkeg… or Tokenz…>",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "11111111111111111111111111111111",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<vault token account for this mint>",
      "isSigner": false,
      "isWritable": true
    }
  ],
  "data": "Y652gpif6TjQEhMAAAAAAP8BAgMEBQYHCP4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="
}
CLOSEAUTHORITYX · JSON · DATA IN BASE64
{
  "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
  "accounts": [
    {
      "pubkey": "<vault: PDA of [\"vault\", authority]>",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<authority: the wallet that pays and signs>",
      "isSigner": true,
      "isWritable": true
    },
    {
      "pubkey": "<the mint's Token Program: Tokenkeg… or Tokenz…>",
      "isSigner": false,
      "isWritable": false
    },
    {
      "pubkey": "<emptied token account 1>",
      "isSigner": false,
      "isWritable": true
    },
    {
      "pubkey": "<emptied token account 2, …>",
      "isSigner": false,
      "isWritable": true
    }
  ],
  "data": "K0iRr26q7bX/"
}
04 / COMPOSE

Next to your own instructions.

A transaction is a list of instructions that succeed or fail together. This one sets its compute budget, records a memo, and pays with sendX, all under the authority’s one signature.

  • Anywhere in the list, any number of times. Several sendX instructions from one authority pay several recipients in one transaction; the vault is shared.
  • Compute units add up. sendX about 1,410 (3,130 on the first payment, which opens the vault), transferX about 250, sendTokenX about 6,300 (SPL Token) or 11,300 (Token-2022). Each compute-budget instruction adds about 150, the Memo program about 2,000 + 360 per byte. Simplest: simulate, then set the limit to what was used plus 10%.
  • Loaded data covers every program. sendX alone loads about 52 KB on devnet and less on mainnet, so 64 KiB is enough. The Memo program’s binary alone is 74,800 bytes: with it, a 64 KiB limit fails with MaxLoadedAccountsDataSizeExceeded. Raise the limit to cover each program you add (here 147,456 bytes), or leave the instruction out.
  • The fee never changes. Every payment pays 10,000 lamports, written into the program. Nothing in your transaction or the config can change it.
  • Separate fee payer. A relayer can pay the network fee: make it the transaction’s first signer. The authority still signs and still pays the amount.
INSTRUCTIONS OF ONE TRANSACTION · IN ORDER
[
  {
    "programId": "ComputeBudget111111111111111111111111111111",
    "accounts": [],
    "data": "AhYhAAA="
  },
  {
    "programId": "ComputeBudget111111111111111111111111111111",
    "accounts": [],
    "data": "BABAAgA="
  },
  {
    "programId": "ComputeBudget111111111111111111111111111111",
    "accounts": [],
    "data": "AwEAAAAAAAAA"
  },
  {
    "programId": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr",
    "accounts": [],
    "data": "aW52b2ljZSAxMDQy"
  },
  {
    "programId": "st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp",
    "accounts": [
      {
        "pubkey": "<vault: PDA of [\"vault\", authority]>",
        "isSigner": false,
        "isWritable": true
      },
      {
        "pubkey": "<authority: the wallet that pays and signs>",
        "isSigner": true,
        "isWritable": true
      },
      {
        "pubkey": "<recipient wallet>",
        "isSigner": false,
        "isWritable": true
      },
      {
        "pubkey": "CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6",
        "isSigner": false,
        "isWritable": false
      },
      {
        "pubkey": "<treasury: a wallet in config.feeRecipients slots 0-2>",
        "isSigner": false,
        "isWritable": true
      },
      {
        "pubkey": "11111111111111111111111111111111",
        "isSigner": false,
        "isWritable": false
      }
    ],
    "data": "PO1WtHbItekAZc0dAAAAAA=="
  }
]

Instructions 0–2 are the Compute Budget program (unit limit 8,470, loaded data limit, a price of 1 micro-lamport per unit), 3 is the SPL Memo “invoice 1042”, 4 is sendX. A transaction with sendX alone uses a 65,536-byte data limit.

05 / SEND

sendTransaction, as JSON-RPC.

  1. Read state. One getMultipleAccounts call returns the config (for the treasury list), the vault (does it exist yet?) and the recipient (is it a plain wallet?).
  2. Get a blockhash. getLatestBlockhash. It is valid for about a minute, until lastValidBlockHeight.
  3. Build and sign locally. Compile the instructions into a transaction with the authority as fee payer, sign it, and serialize it. Keys never go to the RPC.
  4. Submit the bytes. sendTransaction with base64 encoding. Preflight simulates first and returns an error instead of sending a transaction that would fail.
  5. Confirm. Poll getSignatureStatuses until confirmed. Retry by re-sending the same signed bytes, never by signing again: a new signature is a new payment (see retries).
1 · READ STATE
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getMultipleAccounts",
  "params": [
    [
      "CaZHz24d6yC7VJgCJqehpjrVo61fzas5uTPaHbsxoSM6",
      "<vault: PDA of [\"vault\", authority]>",
      "<recipient wallet>"
    ],
    {
      "encoding": "base64",
      "commitment": "confirmed"
    }
  ]
}
2 · BLOCKHASH
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getLatestBlockhash",
  "params": [
    {
      "commitment": "confirmed"
    }
  ]
}
4 · SENDTRANSACTION REQUEST
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "sendTransaction",
  "params": [
    "<base64 of the signed transaction>",
    {
      "encoding": "base64",
      "skipPreflight": false,
      "preflightCommitment": "confirmed",
      "maxRetries": 0
    }
  ]
}
RESPONSE · ACCEPTED (NOT YET CONFIRMED)
{
  "jsonrpc": "2.0",
  "result": "<signature: base58, the transaction id>",
  "id": 1
}
5 · GETSIGNATURESTATUSES · REQUEST
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSignatureStatuses",
  "params": [
    [
      "<signature>"
    ],
    {
      "searchTransactionHistory": false
    }
  ]
}
RESPONSE · CONFIRMED
{
  "jsonrpc": "2.0",
  "result": {
    "context": {
      "slot": 525091043
    },
    "value": [
      {
        "confirmationStatus": "confirmed",
        "confirmations": 0,
        "err": null,
        "slot": 525091035,
        "status": {
          "Ok": null
        }
      }
    ]
  },
  "id": 1
}
RESPONSE · PREFLIGHT FAILED (AMOUNT NOT ABOVE THE FEE, TRIMMED)
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32002,
    "message": "Transaction simulation failed: Error processing Instruction 3: custom program error: 0x1771",
    "data": {
      "err": {
        "InstructionError": [
          3,
          {
            "Custom": 6001
          }
        ]
      },
      "logs": [
        "Program st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp invoke [1]",
        "Program st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp consumed 180 of 1600 compute units",
        "Program st1xzLgd1h8SZW3kyMG4so4ESZpkxGXmhShhqCq8tAp failed: custom program error: 0x1771"
      ],
      "unitsConsumed": 630
    }
  },
  "id": 1
}

The first number in InstructionError is the failing instruction’s position in your transaction; Custom is the stealthX error code (0x1771 = 6001). Real responses carry more fields.

06 / RETRIES AND CHECKS

Pay once, then check it.

stealthX keeps no nonce, counter or payout ID, like most Solana programs: each signed transaction is a payment. These rules keep a retry from paying twice.

  1. Re-send the same signed bytes. Always safe, as often as needed: Solana executes a signature at most once.
  2. Sign a new transaction only once the first cannot land. That is when the block height at finalized is above the first transaction’s lastValidBlockHeight, and getSignatureStatuses with searchTransactionHistory: true still does not find it. If it is found, the payment happened.
  3. Token payments: keep the seed. Rebuild a token payment with the first attempt’s seed. It names the same payment account, so if the first attempt landed, the retry fails and pays nothing. Check with getAccountInfo on the payment account: if it exists, the payment happened.
  4. Check what landed. getTransaction returns the balances before and after. With meta.err null, the recipient gained amount − fee and the treasury wallet fee. sendX takes amount from the authority (plus the vault rent on a first payment); transferX takes it from the vault. The fee payer also pays meta.fee.
1 · BLOCK HEIGHT AT FINALIZED
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getBlockHeight",
  "params": [
    {
      "commitment": "finalized"
    }
  ]
}
2 · SEARCH THE HISTORY FOR THE SIGNATURE
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSignatureStatuses",
  "params": [
    [
      "<signature>"
    ],
    {
      "searchTransactionHistory": true
    }
  ]
}
3 · WHAT LANDED · BALANCES BEFORE AND AFTER
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTransaction",
  "params": [
    "<signature>",
    {
      "encoding": "json",
      "commitment": "confirmed",
      "maxSupportedTransactionVersion": 0
    }
  ]
}

In the result, meta.preBalances and meta.postBalances follow the order of transaction.message.accountKeys.

07 / REFERENCE

Accounts, fees, errors.

Config account: 209 bytes
BytesField
0–7Discriminator 9b0caae01efacc82
8–39Fee admin
40–47ReservedAlways zero; not read by payments
48–175feeRecipients · 4 × 32 bytesTreasury wallets; all-zero slots are empty. Pay into slots 0–2. Slot 3 holds a wallet only while it is replaced: still accepted, so signed payments land, but never chosen
176Bump
177–208Pending adminAll zeros when no rotation is in progress
Operator fee
Flat fee10,000 lamports (0.00001 SOL) per paymentWhatever the amount; fixed in the program
Rulesamount must exceed the fee; a new recipient must receive at least the rent-exempt minimum
closeVaultX: refund the vault
Accounts0 vault (writable) · 1 authority (writable, signer)
Dataeb50e76c96f1f1948 bytes; returns the rent and any balance
Errors: custom program error codes
CodeMeaning
60000x1770The vault holds too little SOL
60010x1771amount is not above the fee
60020x1772Treasury is not in config.feeRecipients
60040x1774Config has no treasury wallets
60050x1775Signer not authorized
60060x1776Arithmetic overflow
60070x1777Vault belongs to a different authority
60080x1778An account is not what the program expects (wrong vault, config, token program or payment account)
60110x177bRecipient holds data (a program, token or nonce account, a vault); pay a plain wallet
Compute units · measured with mainnet’s feature set
sendX~1,410; ~3,130 when it opens the vaultLimits the site sets: 2,000 / 4,000 (+1,650 per skipped vault bump), plus 150 per compute-budget instruction
transferX~250; ~380 when the vault keeps less than 0.01 SOLLimit: 800, plus 150 per compute-budget instruction
sendTokenX~6,300 SPL Token · ~11,300 Token-2022
transferTokenX~6,000 SPL Token · ~11,000 Token-2022
closeAuthorityX~1,200 SPL Token · ~2,350 Token-2022, one account
createVaultX~3,000 (+1,500 per skipped vault bump)
closeVaultX~150
SPL Memo~2,000 + 360 per byte

Try the same calls from a wallet in the devnet app. The documented mainnet address is reserved, but the program is not live there yet.