Function createAccountTransaction

  • Creates a transaction to initialize an order account which can be passed into an initialize order instruction.

    Can '.add()' additional instructions to this transaction.

    Must call '.partialsign(orderAccount)' before sending this transaction or you will receive signature verification errors.

    Parameters

    • connection: Connection
    • payer: PublicKey

      Public key of order initializer

    • orderAccount: Keypair

      Keypair for order account, can be obtained with 'anchor.web3.Keypair.generate()'

    • programId: PublicKey

      Deployed program ID for GM program

    Returns Promise<Transaction>