UNPKG

@deserialize/auction-sdk

Version:

An SDK for Auction on SVMs

12 lines (11 loc) 527 B
import { BlockhashWithExpiryBlockHeight, Connection, Keypair, PublicKey } from "@solana/web3.js"; import { Program } from "@project-serum/anchor"; import { Auction } from "../types/auction"; export default class ProgramLoader { connection: Connection; program: Program<Auction>; wallet: Keypair; applicationState: PublicKey | null; constructor(programId: PublicKey, cluster: string, applicationState?: PublicKey, ownerKeypair?: Keypair); getRecentBlockHash(): Promise<BlockhashWithExpiryBlockHeight>; }