Docs/Reference
API reference
Every SDK call, grouped by area.
All calls are available from @provenapp/sdk. The tables below list each function and what it does.
#Proven App · Launches
| Function | Description |
|---|---|
createLaunch(params) | Deploys a token together with its sealed-bid auction. Returns { auction, token }. |
bid(auction, { maxPrice, quantity, deposit? }) | Seals and commits a bid (tlock-encrypted, bucketed deposit). Returns the bid secret. |
revealAll(auction) | Decrypts every sealed bid whose drand round has elapsed and reveals them in batches. |
settle(auction) · claimAll(auction) | Calculates the clearing price and seeds the pool, then sends tokens and refunds to bidders. |
payOut(auction) | Withdraws a settled launch's funds: the creator's proceeds, and the launch fee to the treasury. |
getAuction · demandCurve · bidsOf · listLaunches | Reads state: phase, clearing price, revealed demand at each price level, and a bidder's bids. |
#PrivateBalance · Private balances
| Function | Description |
|---|---|
PrivateBalance.unlock(wallet, config) | Opens the private account from a single EIP-712 signature bound to this chain only, on every vault. The same wallet always restores it. |
claimPrivately(wallet, auction, bidId) | Claims a winning sealed bid to the wallet and shields it, so later activity with the tokens cannot be linked to the bid. |
bidPrivately(auction, …) · finishPrivateBids(auction) | Places a sealed bid funded from the private balance, then returns the tokens and any refund to it once the launch settles. |
shieldHype · shieldToken(wallet, …, amount) | Converts public HYPE or a token into a private note. |
buy · sell(token, amount) | Performs an instant private swap through the launch's Uniswap v4 pool, submitted by the relayer. |
trade(tokenIn, tokenOut, amount) · tradePlan(…) | Swaps between any two markets in one private trade, routed through HYPE (for example USDC to a launch token). Amounts above a vault's per-deposit cap are split into parts, and tradePlan shows how many beforehand. |
depositCaps(token) | Returns a vault's current limits: the largest single deposit and the remaining capacity. Shields, trades and bids are split automatically to fit. |
receiveAddress(n) · collectReceived() | Provides a regular address anyone can pay (a wallet, an exchange or a bridge), and moves whatever arrives into the private balance. |
batch(token, side, amount) | Splits an order into standard sizes and enters sealed orders in the current round. |
send(token, address, amount) | Transfers privately within the vault, with no sender, recipient or amount visible on-chain. |
unshieldHype · unshieldToken(…, to, amount) · planSplitWithdraw | Withdraws to any address, either at once or in pieces over time. |
balance(pool) · address() · roundInfo() | Returns your private balance, your proven: address and the batch round timing. |
#Payment links
| Function | Description |
|---|---|
newLinkSecret() · linkKeys(secret, passcode?) · linkAddress(keys) | Creates a link's disposable private account: funds are sent to its address, and whoever holds the secret (and passcode) controls them. |
buildClaimLink({ secret, block, token, amount, message, locked, hint, shares }) · parseClaimLink(url) | Builds a claim link and parses it back. All data sits after the #, so servers never see it. |
priv.sweep(token, to, onStatus?, { one? }) | Empties a balance in a single relayed call to a proven: or 0x address (no gas required). one claims just one share of a split link. |
buildRequestLink({ to, token, amount?, note?, name? }) · parseRequestLink(url) | Builds a link requesting payment in HYPE or USDC to a proven: or 0x address. |
#Helpers
| Function | Description |
|---|---|
provers() · holderProver("funds") | Provers for the circuits (final keys, hash-verified) that run on the user's device. |
relaySubmitter(url) · walletCoreSubmitter(…) | Defines how private calls are submitted: through the relay (private) or a wallet (for testing). |
sealBid · unsealBid · drandRoundAt | drand timelock primitives that power sealed bids. |
relayQuote · relayStatus | Bridges into Elysium through Relay, from 20 chains or an exchange, to a receive address. |
standardSizesFor(amount, notes, max) · budgetBuckets(cost) | Calculates standard batch sizes and deposit buckets for bids. |
i
Signatures are summarised. See the TypeScript types shipped with the package for exact parameters.