Programs

Deposit

Last updated August 27, 2026

What You'll Do

Move SPL tokens from your wallet into an MPL-Distro vault:

  • Deposit using human-readable amounts or raw base units
  • Confirm the new totalAmount on the distribution

Summary

The mplx distro deposit command transfers tokens from the current identity's associated token account into the distribution vault.

  • Required argument: distribution public key
  • Required flag: --amount or --basisAmount (mutually exclusive)
  • Deposits are not time-gated: the claim window does not have to be active

The identity must hold enough tokens. The command fetches mint decimals to convert --amount.

Jump to: Basic Usage · Options · Examples · Output · Common Errors · FAQ

Basic Usage

Pass the distribution address and one amount flag.

Deposit 1.0 token
mplx distro deposit <DISTRIBUTION> --amount 1.0
Deposit 1,000,000 base units
mplx distro deposit <DISTRIBUTION> --basisAmount 1000000

Options

Exactly one of --amount or --basisAmount must be set.

FlagShortDescriptionRequired
--amount <number>-aHuman-readable amount using mint decimalsOne of
--basisAmount <integer>-bAmount in token base unitsOne of

For a 6-decimal mint, --amount 1.0 and --basisAmount 1000000 deposit the same quantity.

Examples

Deposit after distro create:

Fund a new distribution
mplx distro deposit <DISTRIBUTION> --amount 1.0

Output

On success the command prints decimal and base-unit amounts.

Expected output
Deposited 1 tokens (1000000 basis) to distribution
Distribution: <DISTRIBUTION>
Mint: <TOKEN_MINT>
Amount deposited: 1 tokens (1000000 basis)
New total deposited: 1 tokens (1000000 basis)
Transaction: <SIGNATURE>

Use this output for decimal-aware totals. distro fetch prints the same token amounts when the mint can be fetched.

Common Errors

These failures happen when the vault cannot be funded.

ErrorCauseFix
Either --amount or --basisAmount must be providedNeither amount flag was setPass one of the two flags
Insufficient balanceIdentity ATA has fewer tokens than requestedMint or transfer tokens first
You do not have a token account for this mintNo ATA for this mintReceive or mint the token first
InvalidPublicKeyErrorThe distribution argument is not a base58 public keyPass the PDA printed by distro create
Distribution not foundWrong PDA or clusterRun distro fetch on the same RPC

Notes

Deposit does not check that the vault covers the sum of Merkle allocations.

FAQ

Must the claim window be active to deposit? No. Deposits are allowed before, during, and after the claim window.

What is the difference between --amount and --basisAmount? --amount is a decimal using the mint's decimals (1.0 is one token). --basisAmount is raw base units (1000000 is one token when decimals are 6).

Previous
Create