Functions
createBuyTransaction
- 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
- createCancelListingTransaction(mint: PublicKey, currentListingPrice: number, sellerPublicKey: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>, connection: Connection): Promise<readonly [Transaction, PublicKey]>
Parameters
mint: PublicKey
currentListingPrice: number
sellerPublicKey: PublicKey
auctionHouse: PublicKey
program: Program<AuctionHouseIDL>
connection: Connection
Returns Promise<readonly [Transaction, PublicKey]>
createListingTransaction
- createListingTransaction(mint: PublicKey, listingPrice: number, sellerPublicKey: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>): Promise<readonly [Transaction, PublicKey]>
Parameters
mint: PublicKey
listingPrice: number
sellerPublicKey: PublicKey
auctionHouse: PublicKey
program: Program<AuctionHouseIDL>
Returns Promise<readonly [Transaction, PublicKey]>
createRawTransferInstructions
- 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
- 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
- createUpdateListingTransaction(mint: PublicKey, currentListingPrice: number, newListingPrice: number, sellerPublicKey: PublicKey, auctionHouse: PublicKey, program: Program<AuctionHouseIDL>, connection: Connection): Promise<readonly [Transaction, PublicKey]>
Parameters
mint: PublicKey
currentListingPrice: number
newListingPrice: number
sellerPublicKey: PublicKey
auctionHouse: PublicKey
program: Program<AuctionHouseIDL>
connection: Connection
Returns Promise<readonly [Transaction, PublicKey]>
Create Cancel Listing Transaction