Function exchangeOrderWithConnection

  • Executes an exchange with Solana connection Takes a connection to fetch necessary accounts - it is preferred to use exchangeAccount

    Returns

    InstructionReturn

    Parameters

    • connection: Connection

      Connection

    • orderAccount: Order

      Order Account

    • orderTaker: AsyncSigner<unknown>

      Order taker Account

    • orderTakerDepositTokenAccount: PublicKey

      Taker deposit Token Account

    • purchaseQty: number

      Purchase quantity

    • expectedPrice: BN

      Expected Price

    • saVault: PublicKey

      Star Atlas vault account

    • stakingProgramId: PublicKey

      Staking program ID

    • registeredStake: PublicKey

      Registered Stake key

    • stakingAccount: PublicKey

      Staking Account

    • program: GalacticMarketplaceIDLProgram

      GalacticMarketplace Program

    • extraAccounts: AccountMeta[] = []

      Extra accounts, used for buddy link

    Returns Promise<InstructionReturn[]>

Generated using TypeDoc