Integrate deliberately.
Reconcile the result.
Wallet integration, contract calls, and transaction results.
Connect the user’s wallet
JPEG Markets uses Privy for user wallets and sponsored transactions. Keep each user’s actions scoped to their own wallet. Review the target network, collection, amounts, and recipient before requesting a signature.
Integrations use the deployed contracts and their compiled ABIs. Read the launch receipt to verify the collection, FLOOR, converter, minter, router, and pool bindings.
Read collection state
Read publicRemaining() and mintEconomics() from the minter, conversionOpensAt from the converter, and current wallet balances. For a selected vault piece, verify inventory(id) and NFT ownership.
Public minting and NFT deposits open after the configured activation delay. Token trading is available while the pool bootstraps. Display minted, revealed artwork; keep unminted assignments out of public galleries and payloads.
Choose a contract action
| Intent | CollectionRouter method |
|---|---|
| Mint using FLOOR | mintWithFloor |
| Mint using the paired token | mintWithQuote |
| Redeem a selected vault NFT | redeemWithFloor or redeemWithQuote |
| Deposit an NFT for FLOOR | depositForFloor |
| Deposit and sell FLOOR | sellForQuote |
| Swap an NFT for a vault piece | exchangeNFTs |
Use the compiled ABI for exact arguments and units. Quote means the collection’s paired token. FLOOR uses 18 decimals; verify the paired token’s decimals separately. Supply explicit deadlines, spend limits, and minimum outputs where the method requires them.
Vault redemption and NFT deposits have no conversion fees. Public minting requires one FLOOR plus the fixed mint fee in the paired token. Pool swaps have separate trading costs.
Confirm the result
Save the transaction hash, wait for its chain receipt, and refresh balances, ownership, supply, and vault inventory. Keep pending and confirmed states distinct.
If submission is interrupted, reconcile the known hash and canonical receipt before retrying. Never treat an unknown outcome as a failed transaction.