Function exchangeOrderWithConnection
- exchangeOrderWithConnection(connection: Connection, orderAccount: Order, orderTaker: AsyncSigner<unknown>, orderTakerDepositTokenAccount: PublicKey, purchaseQty: number, expectedPrice: BN, saVault: PublicKey, stakingProgramId: PublicKey, registeredStake: PublicKey, stakingAccount: PublicKey, program: GalacticMarketplaceIDLProgram, extraAccounts?: AccountMeta[]): Promise<InstructionReturn[]>
-
Parameters
-
connection: Connection
-
orderAccount: Order
-
orderTaker: AsyncSigner<unknown>
-
orderTakerDepositTokenAccount: PublicKey
-
purchaseQty: number
-
expectedPrice: BN
-
saVault: PublicKey
-
stakingProgramId: PublicKey
-
registeredStake: PublicKey
-
stakingAccount: PublicKey
-
-
extraAccounts: AccountMeta[] = []
Returns Promise<InstructionReturn[]>
Executes an exchange with Solana connection Takes a connection to fetch necessary accounts - it is preferred to use
exchangeAccount
Returns
InstructionReturn