Function createWithdrawFoodInstruction

  • Withdraw Food from Escrow - required before withdrawShip

    Parameters

    • connection: Connection

      web3.Connection object

    • playerPublicKey: PublicKey

      Player's public key

    • foodMint: PublicKey

      Food resource mint address

    • shipMint: PublicKey

      Ship mint address

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<FactoryReturn>