Skip to main content
These examples show the SDK flow shape. They return unsigned transactions that your app should sign, simulate, submit, and confirm through its own wallet or backend signer flow.

Create A Fixed-price Presale

Use Presale.createProrataPresale or Presale.createFcfsPresale with the same common presale params when you do not need fixed-price price and disableWithdraw inputs.

Create A Client

Permissionless Deposit

deposit automatically creates the permissionless escrow if it does not exist.

Permissioned Merkle Deposit

For Merkle proof presales, create the Merkle root config and proof responses off-chain, then build deposits with the proof data. The SDK also has an auto-fetch path that reads PermissionedServerMetadata.server_url.
After the escrow exists, call deposit with the same owner and registry index:

Permissioned Authority Deposit

Authority-permissioned presales use an operator account. If the escrow is missing, the SDK deposit flow requests a partially signed escrow creation and deposit transaction from the creator-managed server URL stored in PermissionedServerMetadata.

Claim

Withdraw During Presale

Withdrawals are available in prorata mode and in fixed-price mode unless the creator disabled them. FCFS does not allow withdrawals.

Withdraw Remaining Quote

Use this for failed presales or completed prorata presales with refundable oversubscription.

Creator Actions

Read State