Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace transactions

Index

Functions

  • createBuyTransaction(tokenMint: PublicKey, price: number, buyer: PublicKey, seller: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>, connection: Connection): Promise<readonly [Transaction, PublicKey, Keypair[]]>
  • Parameters

    • tokenMint: PublicKey
    • price: number
    • buyer: PublicKey
    • seller: PublicKey
    • auctionHouse: PublicKey
    • program: Program<AuctionHouseIDL>
    • connection: Connection

    Returns Promise<readonly [Transaction, PublicKey, Keypair[]]>

  • createCancelListingTransaction(mint: PublicKey, currentListingPrice: number, sellerPublicKey: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>, connection: Connection): Promise<readonly [Transaction, PublicKey]>
  • Create Cancel Listing Transaction

    Parameters

    • mint: PublicKey
    • currentListingPrice: number
    • sellerPublicKey: PublicKey
    • auctionHouse: PublicKey
    • program: Program<AuctionHouseIDL>
    • connection: Connection

    Returns Promise<readonly [Transaction, PublicKey]>

  • createListingTransaction(mint: PublicKey, listingPrice: number, sellerPublicKey: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>): Promise<readonly [Transaction, PublicKey]>
  • Create List Transaction

    Parameters

    • mint: PublicKey
    • listingPrice: number
    • sellerPublicKey: PublicKey
    • auctionHouse: PublicKey
    • program: Program<AuctionHouseIDL>

    Returns Promise<readonly [Transaction, PublicKey]>

  • createRawTransferInstructions(mint: PublicKey, recipient: PublicKey, sender: PublicKey, connection: Connection, amount?: number): Promise<TransactionInstruction[]>
  • Parameters

    • mint: PublicKey
    • recipient: PublicKey
    • sender: PublicKey
    • connection: Connection
    • amount: number = 1

    Returns Promise<TransactionInstruction[]>

  • createTransferInstruction(mint: PublicKey, recipient: PublicKey, sender: PublicKey, connection: Connection, amount?: number): Promise<Transaction>
  • Parameters

    • mint: PublicKey
    • recipient: PublicKey
    • sender: PublicKey
    • connection: Connection
    • amount: number = 1

    Returns Promise<Transaction>

  • createUpdateListingTransaction(mint: PublicKey, currentListingPrice: number, newListingPrice: number, sellerPublicKey: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>, connection: Connection): Promise<readonly [Transaction, PublicKey]>
  • Create Update Listing Transaction

    Parameters

    • mint: PublicKey
    • currentListingPrice: number
    • newListingPrice: number
    • sellerPublicKey: PublicKey
    • auctionHouse: PublicKey
    • program: Program<AuctionHouseIDL>
    • connection: Connection

    Returns Promise<readonly [Transaction, PublicKey]>

Generated using TypeDoc