auco-sdk
v0.1.1
Published
Auco — sealed-bid auctions on Solana, powered by Arcium MPC. Spin up a Vickrey or first-price auction in ~10 lines.
Maintainers
Readme
auco-sdk
Sealed-bid auctions on Solana, powered by Arcium MPC.
import { createAuction, configure } from 'auco-sdk';
configure({ connection });
const auction = await createAuction({
type: 'vickrey',
asset: nftMint,
reservePrice: 1 * LAMPORTS_PER_SOL,
duration: 86_400,
authority: sellerKeypair,
});
await auction.bid(bidderKeypair, 5 * LAMPORTS_PER_SOL);
await auction.settle(sellerKeypair);Bids are encrypted client-side. MPC reveals only the winner and the winning price. Losing bids stay encrypted forever.
See the monorepo README for the full architecture and demo.
